Documentation
¶
Overview ¶
Package output provides format-specific post-processing for agent step outputs. It supports JSON validation/parsing and markdown code fence stripping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessOutputFormat ¶
ProcessOutputFormat applies format-specific processing to agent output. For "json": strips fences then validates/parses JSON. For "text": strips fences only. For "": returns output unchanged with nil parsed data.
func StripCodeFences ¶
StripCodeFences removes outermost markdown code fences from input. Returns the inner content or the original input if no fences found.
func ValidateAndParseJSON ¶
ValidateAndParseJSON validates JSON syntax and parses into map or slice. Returns parsed data as map[string]any or []any, or error if invalid.
Types ¶
This section is empty.