# STILL A WIP
A library to use Google Gemini's API directly in Rust!
Made because the current options weren't very capable and didn't support 100% of the official API.
# Example
```rs
// main.rs
use gemini_rs::Conversation;
#[tokio::main]
async fn main() {
let mut convo = Conversation::new(
std::env::var("GEMINI_API_KEY").unwrap(), // Replace with however you want to get your API key
"gemini-1.5-flash".to_string() // Replace with the desired model from https://ai.google.dev/gemini-api/docs/models/gemini
);
let a = convo.generate_content("If you had to describe Risk of Rain 2 in one word, what word would it be?").await.unwrap();
println!("{0:?}", a.text);
let b = convo.generate_content("Now explain your reasoning").await.unwrap();
println!("{0:?}", b.text);
}
```
# Roadmap
- [x] Error handling
- [x] Conversation history
- [x] Useless refactor for no good reason (*cry for help*)
- [ ] Make more operations for conversations (saving, loading, etc.)
- [ ] Image support