RealtimeConversationItemMessageAssistant interface
An assistant message item in a Realtime conversation.
- Extends
Properties
| content | The content of the message. |
| created_at | The Unix timestamp (in seconds) for when the item was persisted. |
| id | The unique ID of the item. This may be provided by the client or generated by the server. |
| object | Identifier for the API object being returned - always |
| response_id | The id of the response that produced this item, when applicable. |
| role | The role of the message sender. Always |
| status | The status of the item. Has no effect on the conversation. |
| type | The type of the item. Always |
Property Details
content
The content of the message.
content: RealtimeConversationItemMessageAssistantContent[]
Property Value
created_at
The Unix timestamp (in seconds) for when the item was persisted.
created_at?: Date
Property Value
Date
id
The unique ID of the item. This may be provided by the client or generated by the server.
id?: string
Property Value
string
object
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
object?: "realtime.item"
Property Value
"realtime.item"
response_id
The id of the response that produced this item, when applicable.
response_id?: string
Property Value
string
role
The role of the message sender. Always assistant.
role: "assistant"
Property Value
"assistant"
status
The status of the item. Has no effect on the conversation.
status?: "in_progress" | "completed" | "incomplete"
Property Value
"in_progress" | "completed" | "incomplete"
type
The type of the item. Always message.
type: "message"
Property Value
"message"