Skip to main content

Tool

Trait Tool 

Source
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§

Source

fn name(&self) -> &'static str

Source

fn display_name(&self) -> &'static str

Source

fn executable(&self) -> &'static str

Source

fn supports_json_output(&self) -> bool

Source

fn supports_json_input(&self) -> bool

Source

fn supports_system_prompt(&self) -> bool

Source

fn supports_resume(&self) -> bool

Source

fn default_model(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§