pub struct AgentMessage {
pub id: String,
pub conversation_id: Option<String>,
pub role: String,
pub content: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub created_at: Option<DateTime<FixedOffset>>,
}Fields§
§id: String§conversation_id: Option<String>§role: String§content: Option<String>§metadata: Option<HashMap<String, Value>>§created_at: Option<DateTime<FixedOffset>>Implementations§
Source§impl AgentMessage
impl AgentMessage
pub fn new(id: String, role: String) -> AgentMessage
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§fn clone(&self) -> AgentMessage
fn clone(&self) -> AgentMessage
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 AgentMessage
impl Debug for AgentMessage
Source§impl Default for AgentMessage
impl Default for AgentMessage
Source§fn default() -> AgentMessage
fn default() -> AgentMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentMessage
impl<'de> Deserialize<'de> for AgentMessage
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 AgentMessage
impl PartialEq for AgentMessage
Source§fn eq(&self, other: &AgentMessage) -> bool
fn eq(&self, other: &AgentMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentMessage
impl Serialize for AgentMessage
impl StructuralPartialEq for AgentMessage
Auto Trait Implementations§
impl Freeze for AgentMessage
impl RefUnwindSafe for AgentMessage
impl Send for AgentMessage
impl Sync for AgentMessage
impl Unpin for AgentMessage
impl UnsafeUnpin for AgentMessage
impl UnwindSafe for AgentMessage
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