pub struct ConfiguredToolDescriptor {
pub spec: ToolDescriptor,
pub supports_parallel_tool_calls: bool,
}Expand description
A ToolDescriptor together with its runtime configuration.
Wraps a ToolDescriptor and exposes the parallelism flag directly so the
dispatcher can check it without digging into the inner spec.
Fields§
§spec: ToolDescriptorThe underlying tool descriptor.
supports_parallel_tool_calls: boolWhether this tool supports concurrent invocations.
Trait Implementations§
Source§impl Clone for ConfiguredToolDescriptor
impl Clone for ConfiguredToolDescriptor
Source§fn clone(&self) -> ConfiguredToolDescriptor
fn clone(&self) -> ConfiguredToolDescriptor
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 ConfiguredToolDescriptor
impl Debug for ConfiguredToolDescriptor
Source§impl<'de> Deserialize<'de> for ConfiguredToolDescriptor
impl<'de> Deserialize<'de> for ConfiguredToolDescriptor
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 ConfiguredToolDescriptor
impl RefUnwindSafe for ConfiguredToolDescriptor
impl Send for ConfiguredToolDescriptor
impl Sync for ConfiguredToolDescriptor
impl Unpin for ConfiguredToolDescriptor
impl UnsafeUnpin for ConfiguredToolDescriptor
impl UnwindSafe for ConfiguredToolDescriptor
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