pub trait FileTool: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn parameters_schema(&self) -> Value;
fn call<'life0, 'async_trait>(
&'life0 self,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, NikaError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for file tools that can be called by agents
Implements the rig::ToolDyn pattern for integration with RigAgentLoop.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Tool description for LLM
Sourcefn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON Schema for parameters