pub struct ClientMessageConversationUpdate {
pub type: Type,
pub messages: Option<Vec<ArtifactMessagesInner>>,
pub messages_open_ai_formatted: Vec<OpenAiMessage>,
}Fields§
§type: TypeThis is the type of the message. "conversation-update" is sent when an update is committed to the conversation history.
messages: Option<Vec<ArtifactMessagesInner>>This is the most up-to-date conversation history at the time the message is sent.
messages_open_ai_formatted: Vec<OpenAiMessage>This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI.
Implementations§
Source§impl ClientMessageConversationUpdate
impl ClientMessageConversationUpdate
pub fn new( type: Type, messages_open_ai_formatted: Vec<OpenAiMessage>, ) -> ClientMessageConversationUpdate
Trait Implementations§
Source§impl Clone for ClientMessageConversationUpdate
impl Clone for ClientMessageConversationUpdate
Source§fn clone(&self) -> ClientMessageConversationUpdate
fn clone(&self) -> ClientMessageConversationUpdate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClientMessageConversationUpdate
impl Default for ClientMessageConversationUpdate
Source§fn default() -> ClientMessageConversationUpdate
fn default() -> ClientMessageConversationUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageConversationUpdate
impl<'de> Deserialize<'de> for ClientMessageConversationUpdate
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
Source§impl PartialEq for ClientMessageConversationUpdate
impl PartialEq for ClientMessageConversationUpdate
Source§fn eq(&self, other: &ClientMessageConversationUpdate) -> bool
fn eq(&self, other: &ClientMessageConversationUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientMessageConversationUpdate
Auto Trait Implementations§
impl Freeze for ClientMessageConversationUpdate
impl RefUnwindSafe for ClientMessageConversationUpdate
impl Send for ClientMessageConversationUpdate
impl Sync for ClientMessageConversationUpdate
impl Unpin for ClientMessageConversationUpdate
impl UnwindSafe for ClientMessageConversationUpdate
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