pub trait ToolErrorContext<T, E> {
// Required method
fn with_tool_context(
self,
tool_name: &str,
operation: &str,
) -> Result<T, String>;
}Expand description
Extension trait for adding tool context to errors
This trait provides a convenient way to add context when propagating errors through the ? operator.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".