gemini_bridge 0.1.7

Types and functions to interact with Gemini AI API
Documentation

Gemini Bridge

Gemini Bridge is a Rust crate designed to interact with the Gemini API. This crate aims to provide a seamless and efficient way to communicate with Gemini API.

Features

  • Easy-to-use interface for interacting with the Gemini API
  • Asynchronous support for non-blocking operations
  • Comprehensive error handling

Installation

Add gemini_bridge to your Cargo.toml:

[dependencies]
gemini_bridge = "0.1.4"
# example version

Usage

extern crate gemini_rs;

async fn main() {
    let gen = GeminiRs::new_text_generator("gemini-1.5-flash-latest".to_owned());
        let res = gen
            .generate_content(RequestBody {
                contents: vec![Content {
                    parts: vec![Part {
                        text: "send me a test response".to_owned(),
                    }],
                }],
                safety_settings: None,
                generation_config: None,
            })
            .await;
}

TODO

[x] Implement Content Generation Method [] Implement Conversation [] Implement Embeddings [] Add examples and documentation [] Write tests