Skip to main content

Module harmony

Module harmony 

Source
Expand description

Strict terminal-output parsing for the GPT-OSS Harmony wire protocol.

This intentionally supports only Ferrum’s first product slice: a direct final answer, one analysis message followed by a final answer, or one analysis message followed by a function call on the commentary channel.

Structs§

HarmonyToolCall
A validated function call emitted through the Harmony commentary channel.
ParsedHarmonyResponse
Product-facing terminal result of a complete Harmony model output.

Functions§

parse_harmony_response
Parse one complete decoded GPT-OSS Harmony response.
parse_length_truncated_harmony_response
Parse a Harmony response that the engine stopped at its token limit.