pub trait BaseTool:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn schema(&self) -> ToolSchema;
// Provided methods
fn is_available(&self) -> bool { ... }
fn input_schema(&self) -> Option<Value> { ... }
fn output_schema(&self) -> Option<Value> { ... }
}
Expand description
Base trait for all tools
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get the description of the tool
Sourcefn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Get the schema for this tool
Provided Methods§
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the tool is available
Sourcefn input_schema(&self) -> Option<Value>
fn input_schema(&self) -> Option<Value>
Get the input schema for this tool
Sourcefn output_schema(&self) -> Option<Value>
fn output_schema(&self) -> Option<Value>
Get the output schema for this tool