Luigit
repositories / will

will

owned by admin

src/agent/tools-shape.ts

Raw
/** Minimal structural view of a pi tool for test driving. */
export interface Tool {
  name: string
  description?: string
  execute: (
    id: string,
    args: Record<string, unknown>,
    signal?: AbortSignal,
    onUpdate?: unknown,
    ctx?: unknown,
  ) => Promise<{ content: { type: string; text?: string }[] }>
}