pub struct SystemMessage {
pub content: Content,
pub sections: Option<IndexMap<String, Option<String>>>,
pub timestamp: u64,
pub tools_added: Option<Vec<ToolDeclaration>>,
pub tools_removed: Option<Vec<ToolReference>>,
}Expand description
System prompt state at one point in the transcript. The first system message is the prompt; later ones patch it.
Fields§
§content: Content§sections: Option<IndexMap<String, Option<String>>>Named prompt sections in render order; None removes a section.
timestamp: u64Unix time in milliseconds.
tools_added: Option<Vec<ToolDeclaration>>§tools_removed: Option<Vec<ToolReference>>Implementations§
Source§impl SystemMessage
impl SystemMessage
Trait Implementations§
Source§impl Clone for SystemMessage
impl Clone for SystemMessage
Source§impl Debug for SystemMessage
impl Debug 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