| Crates.io | promptchine |
| lib.rs | promptchine |
| version | 0.1.0 |
| created_at | 2025-12-07 17:53:23.150287+00 |
| updated_at | 2025-12-07 17:53:23.150287+00 |
| description | A simple prompt refinement and caching library using LLMs |
| homepage | |
| repository | https://github.com/hamzeghalebi/promptchine |
| max_upload_size | |
| id | 1971996 |
| size | 79,334 |
A prompt refinement and caching library for Rust.
[dependencies]
promptchine = { git = "https://github.com/yourusername/promptchine" }
tokio = { version = "1", features = ["full"] }
use promptchine::{Config, Prompter};
#[tokio::main]
async fn main() -> promptchine::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