pub struct UserMessage {
pub id: String,
pub session_id: String,
pub time: UserMessageTime,
pub agent: String,
pub model: UserMessageModel,
pub format: Option<OutputFormat>,
pub summary: Option<UserMessageSummary>,
pub system: Option<String>,
pub tools: Option<HashMap<String, bool>>,
pub variant: Option<String>,
}Expand description
A user-sent message.
Fields§
§id: StringUnique message identifier.
session_id: StringThe session this message belongs to.
time: UserMessageTimeTiming information.
agent: StringAgent name.
model: UserMessageModelModel information.
format: Option<OutputFormat>Output format specification.
summary: Option<UserMessageSummary>Summary information.
system: Option<String>System prompt.
tools: Option<HashMap<String, bool>>Map of tool names to enabled state.
variant: Option<String>Variant identifier.
Trait Implementations§
Source§impl Clone for UserMessage
impl Clone for UserMessage
Source§fn clone(&self) -> UserMessage
fn clone(&self) -> UserMessage
Returns a duplicate 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 Debug for UserMessage
impl Debug for UserMessage
Source§impl<'de> Deserialize<'de> for UserMessage
impl<'de> Deserialize<'de> for UserMessage
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 UserMessage
impl PartialEq for UserMessage
Source§impl Serialize for UserMessage
impl Serialize for UserMessage
impl StructuralPartialEq for UserMessage
Auto Trait Implementations§
impl Freeze for UserMessage
impl RefUnwindSafe for UserMessage
impl Send for UserMessage
impl Sync for UserMessage
impl Unpin for UserMessage
impl UnwindSafe for UserMessage
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