import type { Tool } from './tool'; import type { Tracer } from '../tracing'; /** * Handoff input type * * Note: context is a JSON string for OpenAI strict-mode compatibility. * The execute function will parse it back to an object. */ interface HandoffInput { agentId: string; message?: string; context?: string; } /** * Handoff result indicating a message should be transferred to another agent */ export interface HandoffResult { type: 'handoff'; agentId: string; message: string; context?: Record; } /** * Create a handoff tool that allows agents to transfer conversations to other agents * @param agentManager - Function to get an agent by ID * @param availableAgents - Function to get list of available agent IDs * @param tracer - Optional tracer for tracing handoff operations */ export declare function createHandoffTool(getAgent: (id: string) => any, getAvailableAgents: () => string[], tracer?: Tracer): Tool; export {}; //# sourceMappingURL=handoff.d.ts.map