Skip to main content

Interface: Message

Defined in: packages/client/src/types.ts:101

Properties​

context?​

optional context?: unknown

Defined in: packages/client/src/types.ts:109

User messages: the turn context, sent to the model apart from the text (see formatContext). Not shown as the visitor's words.


id​

id: string

Defined in: packages/client/src/types.ts:102


metadata?​

optional metadata?: object

Defined in: packages/client/src/types.ts:111

Assistant messages: who answered, when, and what ended the turn.

finishedAt?​

optional finishedAt?: number

outcome?​

optional outcome?: unknown

provider?​

optional provider?: ProviderInfo

startedAt​

startedAt: number

turnId​

turnId: string


parts​

parts: MessagePart[]

Defined in: packages/client/src/types.ts:104


role​

role: Role

Defined in: packages/client/src/types.ts:103