format_error_with_context

Function format_error_with_context 

Source
pub fn format_error_with_context(
    tool_name: &str,
    category: ErrorCategory,
    message: &str,
    context: &[(&str, Value)],
) -> String
Expand 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 error
  • category - The error category
  • message - Human-readable error message
  • context - Additional context as key-value pairs