/** * Extension System - Tool Types * * Tool definitions re-exported from @earendil-works/pi-agent-core. */ import type { AgentTool, AgentToolResult, AgentToolUpdateCallback } from '@earendil-works/pi-agent-core'; export type { AgentTool, AgentToolResult, AgentToolUpdateCallback }; export interface ToolExecutionStartEvent { toolName: string; toolCallId: string; params: Record; agentId?: string; sessionKey?: string; } export interface ToolExecutionUpdateEvent { toolName: string; toolCallId: string; update: AgentToolResult; agentId?: string; sessionKey?: string; } export interface ToolExecutionEndEvent { toolName: string; toolCallId: string; result?: AgentToolResult; error?: Error; durationMs?: number; agentId?: string; sessionKey?: string; }