UNPKG

toto-agent

Version:

Chatbot agent and reusable components for Toto platform

20 lines (19 loc) 931 B
import { BaseAgent } from './BaseAgent'; import { AgentResponse, UserIntent } from '../../shared/AgentTypes'; export declare class SynthesisAgent extends BaseAgent { constructor(apiKey: string); process(userMessage: string, context: any, intent?: UserIntent): Promise<AgentResponse>; /** * Synthesize multiple agent responses into a single coherent response * Implementation of Google AI Studio's two-pass orchestration recommendation */ synthesizeResponses(userMessage: string, context: any, primaryResponse: AgentResponse, supplementalResponses: AgentResponse[] | undefined, intent: UserIntent, onChunk?: (chunk: string) => void): Promise<AgentResponse>; /** * Enhance a single agent response with additional context */ private enhanceSingleResponse; /** * Combine multiple agent responses into a coherent unified response */ private combineMultipleResponses; }