@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
15 lines • 571 B
TypeScript
import type { ToolManager } from '../../../tools/tool-manager.js';
import type { ToolCall, ToolResult } from '../../../types/core.js';
/**
* Filters out invalid tool calls.
* Returns valid tool calls and error results for invalid ones.
*
* Handles:
* - Empty tool calls (missing id or function name)
* - Tools that don't exist in the tool manager
*/
export declare const filterValidToolCalls: (toolCalls: ToolCall[], toolManager: ToolManager | null) => {
validToolCalls: ToolCall[];
errorResults: ToolResult[];
};
//# sourceMappingURL=tool-filters.d.ts.map