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