pub struct RealtimeConversationItemSystemMessage {
pub content: Vec<RealtimeConversationContent>,
pub role: String,
pub type_: String,
pub id: Option<String>,
pub object: Option<String>,
pub status: Option<RealtimeConversationItemSystemMessageStatus>,
}Expand description
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.
Fields§
§content: Vec<RealtimeConversationContent>The content of the message.
role: StringThe role of the message sender. Always system.
type_: StringThe type of the item. Always message.
id: Option<String>The unique ID of the item.
object: Option<String>Identifier for the API object being returned - always realtime.item.
status: Option<RealtimeConversationItemSystemMessageStatus>The status of the item. Has no effect on the conversation.
Trait Implementations§
Source§impl Clone for RealtimeConversationItemSystemMessage
impl Clone for RealtimeConversationItemSystemMessage
Source§fn clone(&self) -> RealtimeConversationItemSystemMessage
fn clone(&self) -> RealtimeConversationItemSystemMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RealtimeConversationItemSystemMessage
impl<'de> Deserialize<'de> for RealtimeConversationItemSystemMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeConversationItemSystemMessage
impl RefUnwindSafe for RealtimeConversationItemSystemMessage
impl Send for RealtimeConversationItemSystemMessage
impl Sync for RealtimeConversationItemSystemMessage
impl Unpin for RealtimeConversationItemSystemMessage
impl UnsafeUnpin for RealtimeConversationItemSystemMessage
impl UnwindSafe for RealtimeConversationItemSystemMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more