Initial commit

Co-authored-by: scott-oai <142930063+scott-oai@users.noreply.github.com>
Co-authored-by: Zhuohan Li <zhuohan@openai.com>
This commit is contained in:
Dominik Kundel 2025-08-05 08:25:17 -07:00 committed by Scott Lessans
commit 253cdca537
70 changed files with 15013 additions and 0 deletions

9
AGENTS.md Normal file
View file

@ -0,0 +1,9 @@
# Harmony renderer
This project provides a structured way to create messages that get rendered into a set of tokens using our harmony prompt format.
The majority of the code is written in Rust inside `src/` and `src/py_module.rs` defines using pyo3 what functions are exposed to the python version of the library with a wrapper in `python/openai_harmony/__init__.py`.
You can build the Rust code along with the Python wrapper using `maturin develop --release`. This will also locally install the library in the venv so you can use it.
To test the library run `pytest`. That's the only way you can test it.