pub enum DynamicToolSpec {
Function {
defer_loading: Option<bool>,
description: String,
input_schema: Value,
name: String,
},
Namespace {
description: String,
name: String,
tools: Vec<DynamicToolNamespaceTool>,
},
}Expand description
DynamicToolSpec
JSON schema
{
"oneOf": [
{
"title": "FunctionDynamicToolSpec",
"type": "object",
"required": [
"description",
"inputSchema",
"name",
"type"
],
"properties": {
"deferLoading": {
"type": "boolean"
},
"description": {
"type": "string"
},
"inputSchema": true,
"name": {
"type": "string"
},
"type": {
"title": "FunctionDynamicToolSpecType",
"type": "string",
"enum": [
"function"
]
}
}
},
{
"title": "NamespaceDynamicToolSpec",
"type": "object",
"required": [
"description",
"name",
"tools",
"type"
],
"properties": {
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"tools": {
"type": "array",
"items": {
"$ref": "#/definitions/DynamicToolNamespaceTool"
}
},
"type": {
"title": "NamespaceDynamicToolSpecType",
"type": "string",
"enum": [
"namespace"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for DynamicToolSpec
impl Clone for DynamicToolSpec
Source§fn clone(&self) -> DynamicToolSpec
fn clone(&self) -> DynamicToolSpec
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 DynamicToolSpec
impl Debug for DynamicToolSpec
Source§impl<'de> Deserialize<'de> for DynamicToolSpec
impl<'de> Deserialize<'de> for DynamicToolSpec
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 DynamicToolSpec
impl RefUnwindSafe for DynamicToolSpec
impl Send for DynamicToolSpec
impl Sync for DynamicToolSpec
impl Unpin for DynamicToolSpec
impl UnsafeUnpin for DynamicToolSpec
impl UnwindSafe for DynamicToolSpec
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