pub struct DynamicToolSpec {
pub namespace: Option<String>,
pub name: String,
pub description: String,
pub input_schema: Value,
pub defer_loading: bool,
}Expand description
Specification for a dynamic external tool registered by a runtime client.
Example JSON from the spec:
{
"namespace": "tau_bench",
"name": "get_reservation",
"description": "Look up an airline reservation.",
"input_schema": {
"type": "object",
"properties": {
"reservation_id": { "type": "string" }
},
"required": ["reservation_id"],
"additionalProperties": false
}
}Fields§
§namespace: Option<String>Optional namespace that groups related tools (e.g. "tau_bench").
When present, the runtime may expose the tool as
<namespace>::<name> to the model.
name: StringShort tool name. Combined with namespace it forms a unique tool id.
description: StringHuman-readable description exposed to the model.
input_schema: ValueJSON Schema describing the tool’s input parameters.
defer_loading: boolIf true, the runtime may defer schema validation / tool loading until the model actually calls the tool.
Defaults to false so that older clients omitting this field still
behave the same way.
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
Source§impl PartialEq for DynamicToolSpec
impl PartialEq for DynamicToolSpec
Source§fn eq(&self, other: &DynamicToolSpec) -> bool
fn eq(&self, other: &DynamicToolSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DynamicToolSpec
impl Serialize for DynamicToolSpec
impl StructuralPartialEq for DynamicToolSpec
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