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§
- Harmony
Tool Call - A validated function call emitted through the Harmony commentary channel.
- Parsed
Harmony Response - 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.