| Crates.io | promptune |
| lib.rs | promptune |
| version | 0.1.2 |
| created_at | 2025-12-07 17:55:11.600395+00 |
| updated_at | 2025-12-07 18:02:35.965064+00 |
| description | A tiny tool to auto-augment prompts programmatically |
| homepage | |
| repository | https://github.com/RustSandbox/promptune |
| max_upload_size | |
| id | 1971997 |
| size | 79,872 |
A tiny tool to auto-augment prompts programmatically.
[dependencies]
promptune = "0.1.0"
tokio = { version = "1", features = ["full"] }
use promptune::{Config, Prompter};
#[tokio::main]
async fn main() -> promptune::Result<()> {
let config = Config::from_env()?;
let prompter = Prompter::new("your prompt", "cache_key", &config).await?;
println!("{}", prompter.get());
Ok(())
}
Set GEMINI_API_KEY environment variable.
let config = Config::from_env()?
.with_cache_dir("./cache")
.with_model("gemini-2.0-flash");
MIT