DisplayMessage
Defined in: react/src/protocol.ts:270
Named apart from core’s ChatMessage, which is provider history and not something to draw.
Properties
Section titled “Properties”clientId?
Section titled “clientId?”optional clientId?: string;Defined in: react/src/protocol.ts:275
The id the client made when it sent this message. A host that echoes it lets the client swap its own copy for the host’s. Set it only on a message a client sent: such a message never streams, so an update replaces it whole.
createdAt?
Section titled “createdAt?”optional createdAt?: number;Defined in: react/src/protocol.ts:280
Epoch milliseconds.
id: string;Defined in: react/src/protocol.ts:271
parts: readonly DisplayPart[];Defined in: react/src/protocol.ts:277
role: MessageRole;Defined in: react/src/protocol.ts:276
state: MessageState;Defined in: react/src/protocol.ts:278