@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
21 lines • 627 B
TypeScript
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;
};
/**
* Parses XML tool calls from content (used for non-tool-calling models).
* Only runs on the XML fallback path when native tool calling is disabled.
* Type-preserving: Accepts unknown type, converts to string for processing.
*/
export declare function parseToolCalls(content: unknown): ParseResult;
export {};
//# sourceMappingURL=tool-parser.d.ts.map