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 a final answer or a function call on the commentary channel, optionally preceded by one analysis message.

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_harmony_response_for_finish_reason
Parse decoded Harmony output using the engine’s actual completion reason.
parse_length_truncated_harmony_response
Parse a Harmony response that the engine stopped at its token limit.