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.