pub trait Tool {
// Required methods
fn name(&self) -> &'static str;
fn display_name(&self) -> &'static str;
fn executable(&self) -> &'static str;
fn supports_json_output(&self) -> bool;
fn supports_json_input(&self) -> bool;
fn supports_system_prompt(&self) -> bool;
fn supports_resume(&self) -> bool;
fn default_model(&self) -> &'static str;
}Expand description
Generic tool trait
Required Methods§
fn name(&self) -> &'static str
fn display_name(&self) -> &'static str
fn executable(&self) -> &'static str
fn supports_json_output(&self) -> bool
fn supports_json_input(&self) -> bool
fn supports_system_prompt(&self) -> bool
fn supports_resume(&self) -> bool
fn default_model(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".