pub struct CloseTool;Expand description
Tool for closing the browser
Trait Implementations§
Source§impl Tool for CloseTool
impl Tool for CloseTool
Source§type Params = CloseParams
type Params = CloseParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
_params: CloseParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, _params: CloseParams, 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 CloseTool
impl RefUnwindSafe for CloseTool
impl Send for CloseTool
impl Sync for CloseTool
impl Unpin for CloseTool
impl UnwindSafe for CloseTool
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