Signed in
We value your privacy
This site uses cookies to improve your browsing experience, analyze site traffic, and show personalized content.
| No holders yet. | ||||||||||
use rig::{completion::Prompt, providers::openai}; let openai = openai::Client::from_env(); let agent = openai.agent("gpt-5") .preamble("You are a helpful assistant.") .build(); let response = agent .prompt("What is Rust?") .await?;