pub struct ToolDescriptor {
pub name: String,
pub input_schema: Value,
pub output_schema: Value,
pub supports_parallel_tool_calls: bool,
pub timeout_ms: Option<u64>,
}Expand description
Descriptor that describes a tool available in the registry.
Contains the tool’s name, its JSON input/output schemas, and execution constraints such as timeout and parallelism.
Fields§
§name: StringUnique name used to look up the tool.
input_schema: ValueJSON Schema describing the tool’s expected input parameters.
output_schema: ValueJSON Schema describing the tool’s output format.
supports_parallel_tool_calls: boolWhether multiple invocations of this tool may run concurrently.
timeout_ms: Option<u64>Optional per-call timeout in milliseconds; None means no timeout.
Trait Implementations§
Source§impl Clone for ToolDescriptor
impl Clone for ToolDescriptor
Source§fn clone(&self) -> ToolDescriptor
fn clone(&self) -> ToolDescriptor
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 ToolDescriptor
impl Debug for ToolDescriptor
Source§impl<'de> Deserialize<'de> for ToolDescriptor
impl<'de> Deserialize<'de> for ToolDescriptor
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 ToolDescriptor
impl RefUnwindSafe for ToolDescriptor
impl Send for ToolDescriptor
impl Sync for ToolDescriptor
impl Unpin for ToolDescriptor
impl UnsafeUnpin for ToolDescriptor
impl UnwindSafe for ToolDescriptor
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