pub struct NamespaceToolParam {
pub name: String,
pub description: String,
pub tools: Vec<NamespaceToolParamTool>,
}Expand description
Groups function/custom tools under a shared namespace.
Fields§
§name: StringThe namespace name used in tool calls (for example, crm).
description: StringA description of the namespace shown to the model.
tools: Vec<NamespaceToolParamTool>The function/custom tools available inside this namespace.
Trait Implementations§
Source§impl Clone for NamespaceToolParam
impl Clone for NamespaceToolParam
Source§fn clone(&self) -> NamespaceToolParam
fn clone(&self) -> NamespaceToolParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamespaceToolParam
impl Debug for NamespaceToolParam
Source§impl Default for NamespaceToolParam
impl Default for NamespaceToolParam
Source§fn default() -> NamespaceToolParam
fn default() -> NamespaceToolParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NamespaceToolParam
impl<'de> Deserialize<'de> for NamespaceToolParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamespaceToolParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamespaceToolParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NamespaceToolParam> for Tool
impl From<NamespaceToolParam> for Tool
Source§fn from(tool: NamespaceToolParam) -> Tool
fn from(tool: NamespaceToolParam) -> Tool
Converts to this type from the input type.
Source§impl PartialEq for NamespaceToolParam
impl PartialEq for NamespaceToolParam
Source§impl Serialize for NamespaceToolParam
impl Serialize for NamespaceToolParam
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NamespaceToolParam
Auto Trait Implementations§
impl Freeze for NamespaceToolParam
impl RefUnwindSafe for NamespaceToolParam
impl Send for NamespaceToolParam
impl Sync for NamespaceToolParam
impl Unpin for NamespaceToolParam
impl UnsafeUnpin for NamespaceToolParam
impl UnwindSafe for NamespaceToolParam
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