Interface: Message
Defined in: packages/client/src/types.ts:101
Properties
context?
optionalcontext?: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?
optionalmetadata?:object
Defined in: packages/client/src/types.ts:111
Assistant messages: who answered, when, and what ended the turn.
finishedAt?
optionalfinishedAt?:number
outcome?
optionaloutcome?:unknown
provider?
optionalprovider?: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