UNPKG

contextual-agent-sdk

Version:

SDK for building AI agents with seamless voice-text context switching

26 lines 1.23 kB
import { LLMConversation, ConversationMessage, ToolCall } from '../../types/llm-providers'; import { ToolResult } from '../../types'; export declare class ConversationManager { private conversations; createConversation(systemPrompt?: string): LLMConversation; getConversation(conversationId: string): LLMConversation | undefined; addMessage(conversationId: string, message: Omit<ConversationMessage, 'id' | 'timestamp'>): ConversationMessage; addToolCalls(conversationId: string, toolCalls: ToolCall[]): void; addToolResults(conversationId: string, toolResults: Array<{ callId: string; result: ToolResult; }>): void; getConversationHistory(conversationId: string, includeSystem?: boolean): ConversationMessage[]; clearConversation(conversationId: string): void; deleteConversation(conversationId: string): void; getAllConversationIds(): string[]; getConversationStats(conversationId: string): { messageCount: number; userMessages: number; assistantMessages: number; toolCalls: number; duration: number; }; } export declare const conversationManager: ConversationManager; //# sourceMappingURL=ConversationManager.d.ts.map