pub struct CloseTabTool;Expand description
Tool for closing the current active tab
Trait Implementations§
Source§impl Default for CloseTabTool
impl Default for CloseTabTool
Source§fn default() -> CloseTabTool
fn default() -> CloseTabTool
Returns the “default value” for a type. Read more
Source§impl Tool for CloseTabTool
impl Tool for CloseTabTool
Source§type Params = CloseTabParams
type Params = CloseTabParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
_params: CloseTabParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, _params: CloseTabParams, 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 CloseTabTool
impl RefUnwindSafe for CloseTabTool
impl Send for CloseTabTool
impl Sync for CloseTabTool
impl Unpin for CloseTabTool
impl UnwindSafe for CloseTabTool
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