openai/harmony
A Rust library for parsing and rendering the harmony response format used by OpenAI's gpt-oss open-weight language models.

This repository provides a Rust implementation of the harmony response format, a structured output schema designed for OpenAI’s gpt-oss model series. It handles multi-channel model output including chain-of-thought reasoning, function/tool calls, and structured responses. The format mimics the OpenAI Responses API, enabling proper handling of model-generated content across analysis, commentary, and final channels, as well as tool namespaces and structured outputs.