A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages.
Constructors
new(id :
String |
Nil = nil, object :
RealtimeConversationItemMessageSystemObject |
Nil = nil, type_value :
RealtimeConversationItemMessageSystemType =
RealtimeConversationItemMessageSystemType::Message, status :
RealtimeConversationItemMessageSystemStatus |
Nil = nil, role :
RealtimeConversationItemMessageSystemRole =
RealtimeConversationItemMessageSystemRole::System, content :
Array(
RealtimeConversationItemMessageSystemContentItem) = [] of
RealtimeConversationItemMessageSystemContentItem)
SourceInstance methods
content
The content of the message.
Sourcecontent=(content :
Array(
RealtimeConversationItemMessageSystemContentItem))
The content of the message.
Sourceid
The unique ID of the item. This may be provided by the client or generated by the server.
SourceThe unique ID of the item. This may be provided by the client or generated by the server.
Sourceobject
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
Sourceobject=(object : RealtimeConversationItemMessageSystemObject | Nil)
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
Sourcerole
The role of the message sender. Always system.
Sourcerole=(role : RealtimeConversationItemMessageSystemRole)
The role of the message sender. Always system.
Sourcestatus
The status of the item. Has no effect on the conversation.
Sourcestatus=(status : RealtimeConversationItemMessageSystemStatus | Nil)
The status of the item. Has no effect on the conversation.
Sourcetype_value
The type of the item. Always message.
Sourcetype_value=(type_value : RealtimeConversationItemMessageSystemType)
The type of the item. Always message.
Source