Skip to main content
Version: 0.8

Interface: ChatMessage

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

A single chat message in a conversation.

Properties

chart?

optional chart?: Record<string, unknown>

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


confidence?

optional confidence?: number

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


content

content: string

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


data?

optional data?: Record<string, unknown>

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


id

id: string

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


role

role: "user" | "assistant"

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


sources?

optional sources?: Record<string, unknown>

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


sql?

optional sql?: string

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


timestamp

timestamp: string

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