Files
puaros/packages/ipuaro/src/domain/value-objects/ToolCall.ts
imfozilbek 130a8c4f24 feat(ipuaro): implement v0.1.0 foundation
- Project setup with tsup, vitest, ESM support
- Domain entities: Session, Project
- Value objects: FileData, FileAST, FileMeta, ChatMessage, ToolCall, ToolResult, UndoEntry
- Service interfaces: IStorage, ILLMClient, ITool, IIndexer, IToolRegistry
- Shared: Config (zod), IpuaroError, utils (hash, tokens), Result type
- CLI with placeholder commands (start, init, index)
- 91 unit tests with 100% coverage
- Fix package scope @puaros -> @samiyev in CLAUDE.md
2025-11-29 23:08:38 +05:00

28 lines
512 B
TypeScript

/**
* Represents a tool call from the LLM.
*/
export interface ToolCall {
/** Unique identifier for this call */
id: string
/** Tool name */
name: string
/** Tool parameters */
params: Record<string, unknown>
/** Timestamp when call was made */
timestamp: number
}
export function createToolCall(
id: string,
name: string,
params: Record<string, unknown>,
): ToolCall {
return {
id,
name,
params,
timestamp: Date.now(),
}
}