pub struct NamespaceToolParam {
pub name: String,
pub description: String,
pub tools: Vec<NamespaceToolParamTool>,
}Available on crate feature
response-types only.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 · 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<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<NamespaceToolParam> for Tool
impl From<NamespaceToolParam> for Tool
Source§fn from(tool: NamespaceToolParam) -> Self
fn from(tool: NamespaceToolParam) -> Self
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
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