UNPKG

toto-agent

Version:

Chatbot agent and reusable components for Toto platform

26 lines (25 loc) 755 B
import { AgentType, UserIntent, AgentResponse } from './AgentTypes'; export interface AgentInteractionLog { timestamp: Date; userId?: string; conversationId: string; userMessage: string; intent: UserIntent; agentType: AgentType; agentResponse: AgentResponse; outcome?: 'success' | 'dropoff' | 'confused' | 'repeated'; feedback?: string; } export interface MetaAgentInsight { summary: string; dropOffPoints: Record<string, number>; misclassifications: number; repetitiveResponses: number; suggestions: string[]; } export declare class MetaAgent { /** * Analyze a batch of agent interaction logs and generate insights */ analyzeLogs(logs: AgentInteractionLog[]): MetaAgentInsight; }