pub struct DelegateTool { /* private fields */ }Expand description
Tool wrapper around a delegate executor.
Implementations§
Source§impl DelegateTool
impl DelegateTool
pub fn new( name: impl Into<String>, description: impl Into<String>, executor: Arc<dyn DelegateExecutor>, ) -> Self
pub fn with_schema( schema: ToolSchema, executor: Arc<dyn DelegateExecutor>, ) -> Self
Trait Implementations§
Source§impl Tool for DelegateTool
impl Tool for DelegateTool
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Return this tool’s JSON-Schema-compatible contract.
Auto Trait Implementations§
impl Freeze for DelegateTool
impl !RefUnwindSafe for DelegateTool
impl Send for DelegateTool
impl Sync for DelegateTool
impl Unpin for DelegateTool
impl UnsafeUnpin for DelegateTool
impl !UnwindSafe for DelegateTool
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