rust_llm 2.0.0

A 1:1 Rust port of RubyLLM 2.0: one API for chat, tools, agents, and embeddings across providers.
Documentation

rust_llm

A 1:1 Rust port of RubyLLM 2.0: one API for chat, tools, agents, structured output, streaming, embeddings, images, audio (speech and transcription), video, moderation, OCR, rerank, tokenization, batches, files, MCP (with OAuth), prompt templates, instrumentation, and judgments across OpenAI, Anthropic, Gemini, DeepSeek, Mistral, OpenRouter, xAI, Perplexity, Ollama, Ollama Cloud, GPUStack, Hetzner, and TypeSafe. Request bodies match the ones RubyLLM recorded, byte for byte as JSON.

# async fn run() -> rust_llm::Result<()> {
// RubyLLM.chat.ask "What's the best way to learn Ruby?"
let answer = rust_llm::chat()?.ask("What's the best way to learn Rust?").await?;
println!("{}", answer.content());
# Ok(()) }

MIT licensed. RustLLM is a port of Carmine Paolino's RubyLLM; see LICENSE.