Skip to main content

format_output

Function format_output 

Source
pub fn format_output(
    output: ToolOutput,
    format: Option<&str>,
    _tool_name: Option<&str>,
    config: Option<PipelineConfig>,
) -> Result<FormatResult>
Expand description

Format a ToolOutput to text using the pipeline.

Returns FormatResult with content and metadata (compression stats, token estimates).

§Arguments

  • output — typed result from executor
  • format — output format string (“toon”, “json”), defaults to “toon”
  • tool_name — tool name (reserved for future strategy resolution)
  • config — optional pipeline config override