Skip to main content

Interface: ChatMessage

Defined in: sdk/src/types.ts:88

A single chat message in a conversation.

Properties

chart?

optional chart?: Record<string, unknown>

Defined in: sdk/src/types.ts:101


confidence?

optional confidence?: number

Defined in: sdk/src/types.ts:102


content

content: string

Defined in: sdk/src/types.ts:98


conversationId?

optional conversationId?: 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?

optional data?: Record<string, unknown>

Defined in: sdk/src/types.ts:100


governance?

optional governance?: 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?

optional sources?: Record<string, unknown>

Defined in: sdk/src/types.ts:103


sql?

optional sql?: string

Defined in: sdk/src/types.ts:99


timestamp

timestamp: string

Defined in: sdk/src/types.ts:106