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.
Frequently asked
- What is openai/harmony?
- A Rust library for parsing and rendering the harmony response format used by OpenAI's gpt-oss open-weight language models.
- Is harmony open source?
- Yes — openai/harmony is open source, released under the Apache-2.0 license.
- What language is harmony written in?
- openai/harmony is primarily written in Rust.
- How popular is harmony?
- openai/harmony has 4.4k stars on GitHub.
- Where can I find harmony?
- openai/harmony is on GitHub at https://github.com/openai/harmony.