Skip to main content

Module format

Module format 

Source
Expand description

Format ToolOutput to text using the format pipeline.

This module bridges the executor’s typed output with the pipeline’s text formatting. Supports TOON (default) and JSON output formats.

Structs§

FormatMetadata
Metadata about formatting result — compression stats, token estimates.
FormatResult
Result of formatting a tool output — content + metadata.

Functions§

execute_and_format
Convenience: execute a tool and format the output in one call.
format_output
Format a ToolOutput to text using the pipeline.