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