pub trait AgentTool: Default {
type Arguments: DeserializeOwned + JsonSchema;
type Error: Serialize;
const NAME: &'static str;
const DESCRIPTION: &'static str;
// Required method
fn execute(&self, arguments: Self::Arguments) -> Result<String, Self::Error>;
}Expand description
A typed Agent Tool exposed through lenso.agent.tool-provider@2.
Required Associated Constants§
Sourceconst DESCRIPTION: &'static str
const DESCRIPTION: &'static str
Human-readable Tool description presented to the model.
Required Associated Types§
Sourcetype Arguments: DeserializeOwned + JsonSchema
type Arguments: DeserializeOwned + JsonSchema
JSON arguments accepted by the Tool.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".