@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
19 lines • 710 B
TypeScript
import type { LanguageModel } from 'ai';
import type { AIProviderConfig, AISDKCoreTool, LLMChatResponse, Message, ModeOverrides, StreamCallbacks } from '../../types/index.js';
export interface ChatHandlerParams {
model: LanguageModel;
currentModel: string;
providerConfig: AIProviderConfig;
messages: Message[];
tools: Record<string, AISDKCoreTool>;
callbacks: StreamCallbacks;
signal?: AbortSignal;
maxRetries: number;
skipTools?: boolean;
modeOverrides?: ModeOverrides;
}
/**
* Main chat handler - orchestrates the entire chat flow
*/
export declare function handleChat(params: ChatHandlerParams): Promise<LLMChatResponse>;
//# sourceMappingURL=chat-handler.d.ts.map