pub struct CustomTool<'a> { /* private fields */ }
Implementations§
Source§impl<'a> CustomTool<'a>
impl<'a> CustomTool<'a>
pub fn text<T, O>(tool: &'a T) -> Self
pub fn structured<T>(tool: &'a T) -> Self
pub fn async_text<T, O>(tool: &'a T) -> Self
pub fn async_structured<T>(tool: &'a T) -> Self
pub async fn call(&self) -> Result<CallToolResult, CallToolError>
Auto Trait Implementations§
impl<'a> Freeze for CustomTool<'a>
impl<'a> !RefUnwindSafe for CustomTool<'a>
impl<'a> Send for CustomTool<'a>
impl<'a> Sync for CustomTool<'a>
impl<'a> Unpin for CustomTool<'a>
impl<'a> !UnwindSafe for CustomTool<'a>
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