Rig
Rust `rig-typesafeai` crate with typed Choice, Score, and Noul queries, response validation, examples, and fixtures.
<a href="https://docs.rs/rig/latest/rig/"><img src="https://img.shields.io/badge/docs-API Reference-dca282.svg" /></a> <a href="https://crates.io/crates/rig"><img src="https://img.shields.io/crates/v/rig.svg?color=dca282" /></a> <a href="https://crates.io/crates/rig"><img src="https://img.shields.io/crates/d/rig-core.svg?color=dca282" /></a> <a href="LICENSE"><img src="https://img.shields.io/crates/l/rig.svg?color=dca282" /></a> </br> <a href="https://discord.gg/playgrounds"><img src="https://img.shields.io/discord/511303648119226382?color=%236d82cc&label=Discord&logo=discord&logoColor=white" /></a> <a href=""><img src="https://img.shields.io/badge/built_with-Rust-dca282.svg?logo=rust" /></a> <a href="https://github.com/0xPlaygrounds/rig"><img src="https://img.shields.io/github/stars/0xPlaygrounds/rig?style=social" alt="stars - rig" /></a> <br> <br> </p> <div align="center"> [📑 Docs](https://rig.rs/docs) <span> • </span> [🌐 Website](https://rig.rs) <span> • </span> [🤝 Contribute](https://github.com/0xPlaygrounds/rig/issues/new) <span> • </span> [✍🏽 Blogs](https://rig.rs/docs/guides) <span> • </span> <a href="https://ryzome.ai"><img src="img/ryzome-bg.png" height="32" align="absmiddle" alt="Ryzome" /></a> </div> Rig is a Rust library for building LLM applications, and `rig`, a terminal coding agent built on it that you extend with Bevy plugins. ## The coding agent ```bash cargo install rig-cli rig ``` In the agent, `/login` signs in with a ChatGPT plan or saves a provider's API key, or export the key (such as `OPENAI_API_KEY`) before starting. `/model` picks one of the models those reach, and of a local Ollama or llama.cpp