/** * Tool Call Relay — bridges models that emit XML tool calls * (like Big Pickle / MiniMax format) with the Handrails MCP API. * * Parses XML tool calls from model output, executes them via the * Handrails API, and returns results for re-prompting. */ export interface ParsedToolCall { name: string; parameters: Record; raw: string; } /** * Parse XML tool calls from model output. * Handles both and generic / formats. */ export declare function parseToolCalls(output: string): ParsedToolCall[]; /** * Execute a tool call via the Handrails MCP HTTP endpoint. */ export declare function executeToolCall(toolCall: ParsedToolCall, apiUrl: string, apiKey: string): Promise<{ success: boolean; result: string; }>; /** * Execute all parsed tool calls and format results for re-prompting. */ export declare function executeAndFormatToolCalls(toolCalls: ParsedToolCall[], apiUrl: string, apiKey: string): Promise; /** * Check if output contains unexecuted XML tool calls. */ export declare function hasToolCalls(output: string): boolean;