pub struct ChatContext {
pub history: Vec<ChatMessage>,
pub workspace_id: Option<String>,
}Expand description
Chat context for multi-turn conversations
Fields§
§history: Vec<ChatMessage>Conversation history
workspace_id: Option<String>Optional workspace ID
Trait Implementations§
Source§impl Clone for ChatContext
impl Clone for ChatContext
Source§fn clone(&self) -> ChatContext
fn clone(&self) -> ChatContext
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 Debug for ChatContext
impl Debug for ChatContext
Source§impl<'de> Deserialize<'de> for ChatContext
impl<'de> Deserialize<'de> for ChatContext
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 ChatContext
impl RefUnwindSafe for ChatContext
impl Send for ChatContext
impl Sync for ChatContext
impl Unpin for ChatContext
impl UnsafeUnpin for ChatContext
impl UnwindSafe for ChatContext
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