pub struct ToolNodeConfig {
pub tools: Vec<Box<dyn Tool>>,
pub handle_errors: bool,
pub validate_input: bool,
pub call_transformer: Option<Box<dyn ToolCallTransformer>>,
pub interceptor: Option<Arc<dyn ToolInterceptor>>,
pub tools_condition: Option<Arc<dyn Fn(&Message) -> bool + Send + Sync>>,
}Expand description
Tool node configuration
Fields§
§tools: Vec<Box<dyn Tool>>List of tools
handle_errors: boolHandle errors by returning them to LLM (true) or failing (false)
validate_input: boolValidate tool inputs against schema before execution
call_transformer: Option<Box<dyn ToolCallTransformer>>Optional tool call transformer
interceptor: Option<Arc<dyn ToolInterceptor>>Optional tool call interceptor
tools_condition: Option<Arc<dyn Fn(&Message) -> bool + Send + Sync>>Optional tools condition function
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolNodeConfig
impl !UnwindSafe for ToolNodeConfig
impl Freeze for ToolNodeConfig
impl Send for ToolNodeConfig
impl Sync for ToolNodeConfig
impl Unpin for ToolNodeConfig
impl UnsafeUnpin for ToolNodeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more