cleaned up the LLM providers.

This commit is contained in:
Xiaohan-Tian
2025-08-16 16:25:45 -07:00
parent cf4f3edb30
commit 429efaf629
6 changed files with 100 additions and 319 deletions
+1 -13
View File
@@ -1,4 +1,4 @@
import type { StreamChunk, LLMResponse } from './StreamingTypes';
import type { StreamChunk } from './StreamingTypes';
import type { Message } from '../core/AgentState';
/**
@@ -18,16 +18,4 @@ export abstract class LLMProvider {
systemPrompt?: string,
tools?: Record<string, unknown>[]
): AsyncIterableIterator<StreamChunk>;
/**
* Generate a complete response from the LLM (non-streaming)
* @param messages The full conversation history with preserved roles
* @param systemPrompt The system prompt (optional, can be included in messages)
* @param tools Available tools (optional for now)
*/
abstract generateCompletion(
messages: Message[],
systemPrompt?: string,
tools?: Record<string, unknown>[]
): Promise<LLMResponse>;
}