pub struct SystemMessage {
pub content: UserTextField,
pub sections: Option<Sections>,
pub tools_added: Option<Vec<ToolDecl>>,
pub tools_removed: Option<Vec<ToolRef>>,
pub timestamp: TimestampMs,
}Expand description
System prompt and tool loadout.
Fields§
§content: UserTextFieldFree-form prompt text.
sections: Option<Sections>Section patch, order significant.
tools_added: Option<Vec<ToolDecl>>Tools declared (or redeclared) by this message.
tools_removed: Option<Vec<ToolRef>>Tools removed by this message.
timestamp: TimestampMsCreation time.
Trait Implementations§
Source§impl Clone for SystemMessage
impl Clone for SystemMessage
Source§impl Debug for SystemMessage
impl Debug for SystemMessage
Source§impl Default for SystemMessage
impl Default for SystemMessage
Source§impl<'de> Deserialize<'de> for SystemMessage
impl<'de> Deserialize<'de> for SystemMessage
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 SystemMessage
impl PartialEq for SystemMessage
Source§impl Serialize for SystemMessage
impl Serialize for SystemMessage
impl StructuralPartialEq for SystemMessage
Auto Trait Implementations§
impl Freeze for SystemMessage
impl RefUnwindSafe for SystemMessage
impl Send for SystemMessage
impl Sync for SystemMessage
impl Unpin for SystemMessage
impl UnsafeUnpin for SystemMessage
impl UnwindSafe for SystemMessage
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