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