pub struct CallableTool {
pub name: String,
pub description: String,
pub input_schema: Value,
pub result: Option<String>,
}Expand description
A tool another tool can call by name.
Fields§
§name: String§description: String§input_schema: Value§result: Option<String>See ToolSpec::code_result.
Trait Implementations§
Source§impl Clone for CallableTool
impl Clone for CallableTool
Auto Trait Implementations§
impl Forget for CallableTool
impl Freeze for CallableToolwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for CallableTool
impl RefUnwindSafe for CallableTool
impl Send for CallableTool
impl Sync for CallableTool
impl Unpin for CallableTool
impl UnsafeUnpin for CallableToolwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for CallableTool
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