Documentation
¶
Overview ¶
Package llmout compresses raw command output before it is returned to the model, using the gortk filter catalog (https://github.com/codefly-dev/gortk).
It is the integration seam for codefly's language agents: a Build/Test/Lint implementation that has captured a command's combined output passes it through Compress, tagged with the command that produced it, so the matching gortk filter strips noise (downloads, progress, "ok" lines) while preserving diagnostics. Commands with no dedicated filter pass through essentially unchanged (only size-bounded), so this is always safe to apply.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress runs the gortk catalog over a command's output and returns the compact, model-facing text. name/args identify the command so the right filter applies, e.g. ("go","vet") -> go-vet, ("ruff","check") -> ruff, ("cargo","build") -> cargo. The combined output goes in as stdout; gortk filters read both streams, so a single combined string is fine.
Types ¶
This section is empty.