UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

20 lines 550 B
import type { ToolCall } from '../types/index.js'; /** * Result of parsing tool calls from content */ type ParseResult = { success: true; toolCalls: ToolCall[]; cleanedContent: string; } | { success: false; error: string; examples: string; }; /** * Unified tool call parser that tries XML first, then falls back to JSON * Type-preserving: Accepts unknown type, converts to string for processing */ export declare function parseToolCalls(content: unknown): ParseResult; export {}; //# sourceMappingURL=tool-parser.d.ts.map