pub struct WaitTool;Trait Implementations§
Source§impl Tool for WaitTool
impl Tool for WaitTool
Source§type Params = WaitParams
type Params = WaitParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
params: WaitParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, params: WaitParams, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with strongly-typed parameters
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
Get tool parameter schema (JSON Schema)
Source§fn execute(
&self,
params: Value,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute( &self, params: Value, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with JSON parameters (default implementation)
Auto Trait Implementations§
impl Freeze for WaitTool
impl RefUnwindSafe for WaitTool
impl Send for WaitTool
impl Sync for WaitTool
impl Unpin for WaitTool
impl UnwindSafe for WaitTool
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