Skip to main content

ToolFactory

Type Alias ToolFactory 

Source
pub type ToolFactory = Box<dyn Fn(&Config) -> Result<Vec<Box<dyn Tool>>> + Send + Sync>;
Expand description

Factory function type for creating additional tools for the Telegram agent. This allows the caller (e.g., CLI daemon) to inject dangerous tools like bash, file I/O.

Aliased Typeยง

pub struct ToolFactory(/* private fields */);