UNPKG

magnitude-core

Version:
14 lines (13 loc) 506 B
import { Action } from "@/actions/types"; import { ActOptions } from "@/agent"; import { ModelUsage } from "@/ai/types"; export interface AgentEvents { 'start': () => void; 'stop': () => void; 'thought': (thought: string) => void; 'actStarted': (task: string, options: ActOptions) => void; 'actDone': (task: string, options: ActOptions) => void; 'actionStarted': (action: Action) => void; 'actionDone': (action: Action) => void; 'tokensUsed': (usage: ModelUsage) => void; }