plazbot
Version:
Official Plazbot SDK for creating AI agents for WhatsApp, portals, and developers.
24 lines (23 loc) • 532 B
TypeScript
import type { AgentSource, ActionExecuted } from './sdk-types';
export interface ChatMessage {
id: string;
role: 'user' | 'agent';
content: string;
timestamp: Date;
sources?: AgentSource[];
actionsExecuted?: ActionExecuted[];
file?: ChatFile;
isStreaming?: boolean;
error?: string;
}
export interface ChatFile {
name: string;
url: string;
type: string;
size?: number;
}
export interface ChatState {
messages: ChatMessage[];
isLoading: boolean;
error: string | null;
}