format_success_with_metadata

Function format_success_with_metadata 

Source
pub fn format_success_with_metadata<T: Serialize>(
    tool_name: &str,
    data: &T,
    metadata: ResponseMetadata,
) -> String
Expand description

Format a success response with metadata

Use this when you need to include information about truncation, compression, or item counts.

ยงArguments

  • tool_name - Name of the tool
  • data - The response data
  • metadata - Response metadata