pub struct SystemContent {
pub model_identity: Option<String>,
pub reasoning_effort: Option<ReasoningEffort>,
pub tools: Option<BTreeMap<String, ToolNamespaceConfig>>,
pub conversation_start_date: Option<String>,
pub knowledge_cutoff: Option<String>,
pub channel_config: Option<ChannelConfig>,
}
Expand description
Content specific to system messages, includes model identity and its instructions
Fields§
§model_identity: Option<String>
§reasoning_effort: Option<ReasoningEffort>
§tools: Option<BTreeMap<String, ToolNamespaceConfig>>
§conversation_start_date: Option<String>
Date/Time at which the conversation is taking place. Must be an isoformat date for portability to javascript.
knowledge_cutoff: Option<String>
The date at which the model’s training data ends.
channel_config: Option<ChannelConfig>
Channel configuration for the system message.
Implementations§
Source§impl SystemContent
impl SystemContent
pub fn new() -> Self
pub fn with_model_identity(self, model_identity: impl Into<String>) -> Self
pub fn with_reasoning_effort(self, effort: ReasoningEffort) -> Self
pub fn with_tools(self, ns_config: ToolNamespaceConfig) -> Self
pub fn with_conversation_start_date( self, conversation_start_date: impl Into<String>, ) -> Self
pub fn with_knowledge_cutoff(self, knowledge_cutoff: impl Into<String>) -> Self
pub fn with_channel_config(self, channel_config: ChannelConfig) -> Self
pub fn with_required_channels<I, T>(self, channels: I) -> Self
pub fn with_browser_tool(self) -> Self
pub fn with_python_tool(self) -> Self
Trait Implementations§
Source§impl Clone for SystemContent
impl Clone for SystemContent
Source§fn clone(&self) -> SystemContent
fn clone(&self) -> SystemContent
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 SystemContent
impl Debug for SystemContent
Source§impl Default for SystemContent
impl Default for SystemContent
Source§impl<'de> Deserialize<'de> for SystemContent
impl<'de> Deserialize<'de> for SystemContent
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 From<SystemContent> for Content
impl From<SystemContent> for Content
Source§fn from(sys: SystemContent) -> Self
fn from(sys: SystemContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SystemContent
impl PartialEq for SystemContent
Source§impl Serialize for SystemContent
impl Serialize for SystemContent
impl StructuralPartialEq for SystemContent
Auto Trait Implementations§
impl Freeze for SystemContent
impl RefUnwindSafe for SystemContent
impl Send for SystemContent
impl Sync for SystemContent
impl Unpin for SystemContent
impl UnwindSafe for SystemContent
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