UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

29 lines 777 B
export type SerializedTool = { description?: string; parameters: any; disabled?: boolean; type?: string; }; export type SerializedModelContext = { system?: string; tools?: Record<string, SerializedTool>; }; export type FrameMessageType = "model-context-request" | "model-context-update" | "tool-call" | "tool-result"; export type FrameMessage = { type: "model-context-request"; } | { type: "model-context-update"; context: SerializedModelContext; } | { type: "tool-call"; id: string; toolName: string; args: unknown; } | { type: "tool-result"; id: string; result?: unknown; error?: string; }; export declare const FRAME_MESSAGE_CHANNEL = "assistant-ui-frame"; //# sourceMappingURL=AssistantFrameTypes.d.ts.map