Interface: ChatMessage
Defined in: sdk/src/types.ts:88
A single chat message in a conversation.
Properties
chart?
optionalchart?:Record<string,unknown>
Defined in: sdk/src/types.ts:101
confidence?
optionalconfidence?:number
Defined in: sdk/src/types.ts:102
content
content:
string
Defined in: sdk/src/types.ts:98
conversationId?
optionalconversationId?:string
Defined in: sdk/src/types.ts:96
The conversation this message belongs to. Threaded back into the next
sendMessage so multi-turn context is preserved. Distinct from id
(the message id) — sending the message id as a conversation id makes the
backend reject the 2nd turn with 400 "Conversation not found".
data?
optionaldata?:Record<string,unknown>
Defined in: sdk/src/types.ts:100
governance?
optionalgovernance?:Governance
Defined in: sdk/src/types.ts:105
Governance attestation for a governed answer (undefined when absent).
id
id:
string
Defined in: sdk/src/types.ts:89
role
role:
"user"|"assistant"
Defined in: sdk/src/types.ts:97
sources?
optionalsources?:Record<string,unknown>
Defined in: sdk/src/types.ts:103
sql?
optionalsql?:string
Defined in: sdk/src/types.ts:99
timestamp
timestamp:
string
Defined in: sdk/src/types.ts:106