Skip to main content

ToolCallTransformer

Trait ToolCallTransformer 

Source
pub trait ToolCallTransformer:
    Send
    + Sync
    + 'static {
    // Required method
    fn transform(&self, tool_call: &mut ToolCall) -> Result<(), ToolError>;
}
Expand description

Tool call transformer trait

Allows transforming tool call parameters before execution.

Note: This trait does not implement Debug as it’s intended for dynamic dispatch via trait objects.

Required Methods§

Source

fn transform(&self, tool_call: &mut ToolCall) -> Result<(), ToolError>

Transform the tool call

§Errors

Returns ToolError if the transformation fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§