UNPKG

@forbespro/lead-agent

Version:
30 lines (29 loc) 652 B
export interface ToolResult { url?: string; displayText?: string; products?: any[]; bookings?: any[]; [key: string]: any; } export interface ToolInvocation { toolName?: string; toolCallId?: string; state?: "partial-call" | "complete-call"; step?: number; result?: ToolResult; [key: string]: any; } export interface MessagePart { type: string; text?: string; toolInvocation?: ToolInvocation; [key: string]: any; } export interface UIMessage { id?: string; role: string; content?: string; parts?: MessagePart[]; createdAt?: number | string | Date; [key: string]: any; }