Skip to content

Message

Represents a single message within a conversation exchange.

Properties

Property Type Description
contentParts ContentPart[] Contains the message's content parts.
createdTime string Timestamp indicating when the message was created.
id string Unique identifier for the message.
interrupts Interrupt[] Array of interrupts within this message.
messageId string Unique identifier for the message within its exchange.
role MessageRole The role of the message sender.
spanId? string Span identifier for distributed tracing.
toolCalls ToolCall[] Array of tool calls made within this message.
updatedTime string Timestamp indicating when the message was last updated.