pub struct DeveloperContent {
pub instructions: Option<String>,
pub tools: Option<BTreeMap<String, ToolNamespaceConfig>>,
}
Expand description
Content specific to developer messages, includes developer identity and its instructions
Fields§
§instructions: Option<String>
§tools: Option<BTreeMap<String, ToolNamespaceConfig>>
Implementations§
Source§impl DeveloperContent
impl DeveloperContent
pub fn new() -> Self
pub fn with_instructions(self, instructions: impl Into<String>) -> Self
pub fn with_tools(self, ns_config: ToolNamespaceConfig) -> Self
pub fn with_function_tools(self, tools: Vec<ToolDescription>) -> Self
Trait Implementations§
Source§impl Clone for DeveloperContent
impl Clone for DeveloperContent
Source§fn clone(&self) -> DeveloperContent
fn clone(&self) -> DeveloperContent
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 DeveloperContent
impl Debug for DeveloperContent
Source§impl Default for DeveloperContent
impl Default for DeveloperContent
Source§fn default() -> DeveloperContent
fn default() -> DeveloperContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeveloperContent
impl<'de> Deserialize<'de> for DeveloperContent
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<DeveloperContent> for Content
impl From<DeveloperContent> for Content
Source§fn from(dev: DeveloperContent) -> Self
fn from(dev: DeveloperContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeveloperContent
impl PartialEq for DeveloperContent
Source§impl Serialize for DeveloperContent
impl Serialize for DeveloperContent
impl StructuralPartialEq for DeveloperContent
Auto Trait Implementations§
impl Freeze for DeveloperContent
impl RefUnwindSafe for DeveloperContent
impl Send for DeveloperContent
impl Sync for DeveloperContent
impl Unpin for DeveloperContent
impl UnwindSafe for DeveloperContent
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