pub struct NamespaceTool {
pub description: String,
pub name: String,
pub tools: Vec<Tool>,
pub type_: String,
}Expand description
Groups function/custom tools under a shared namespace.
Fields§
§description: StringA description of the namespace shown to the model.
name: StringThe namespace name used in tool calls (for example, crm).
tools: Vec<Tool>The function/custom tools available inside this namespace.
type_: StringThe type of the tool. Always namespace.
Trait Implementations§
Source§impl Clone for NamespaceTool
impl Clone for NamespaceTool
Source§fn clone(&self) -> NamespaceTool
fn clone(&self) -> NamespaceTool
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 NamespaceTool
impl Debug for NamespaceTool
Source§impl<'de> Deserialize<'de> for NamespaceTool
impl<'de> Deserialize<'de> for NamespaceTool
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
Auto Trait Implementations§
impl Freeze for NamespaceTool
impl RefUnwindSafe for NamespaceTool
impl Send for NamespaceTool
impl Sync for NamespaceTool
impl Unpin for NamespaceTool
impl UnsafeUnpin for NamespaceTool
impl UnwindSafe for NamespaceTool
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