pub fn format_error_with_context(
tool_name: &str,
category: ErrorCategory,
message: &str,
context: &[(&str, Value)],
) -> StringExpand description
Format an error with additional context fields
Similar to format_error_for_llm but allows adding arbitrary context.
ยงArguments
tool_name- Name of the tool that produced the errorcategory- The error categorymessage- Human-readable error messagecontext- Additional context as key-value pairs