bodhi-realtime-agent / ConversationItem
Interface: ConversationItem
Defined in: src/types/conversation.ts:7
A single entry in the conversation timeline (message, tool call, or agent transfer).
Properties
content
content:
string
Defined in: src/types/conversation.ts:11
The textual content (or JSON-serialized data for tool_call/tool_result).
id?
optionalid?:string
Defined in: src/types/conversation.ts:20
Stable handle for items whose content is revised after insertion — set only by ConversationContext.reserveUserMessage, which holds an ordered slot for a user turn while its authoritative transcript is still in flight. Absent on ordinary append-only items.
metadata?
optionalmetadata?:Record<string,unknown>
Defined in: src/types/conversation.ts:15
Optional application-specific metadata.
role
role:
ConversationItemRole
Defined in: src/types/conversation.ts:9
Who produced this item.
timestamp
timestamp:
number
Defined in: src/types/conversation.ts:13
Unix timestamp in milliseconds when this item was created.