bodhi-realtime-agent / ReplayItem
Type Alias: ReplayItem
ReplayItem = {
role:"user"|"assistant";text:string;type:"text"; } | {args:Record<string,unknown>;id:string;name:string;type:"tool_call"; } | {error?:string;id:string;name:string;result:unknown;type:"tool_result"; } | {base64Data:string;mimeType:string;role:"user";type:"file"; } | {fromAgent:string;toAgent:string;type:"transfer"; }
Defined in: types/transport.ts:94
Rich replay item for reconnect/transfer recovery. Preserves the full conversation structure — text, tool calls/results, files, and agent transfers — so that recovery is lossless even for multimodal and tool-heavy sessions.