Expand description
Google Gemini API client for Miyabi LLM
Provides implementation of the LlmClient trait for Google’s Gemini models.
§Features
- Gemini 1.5 Pro and Flash support
- Streaming responses
- Tool (function) calling
- Multi-turn conversations
§Example
use miyabi_llm_google::GoogleClient;
use miyabi_llm_core::{LlmClient, Message, Role};
let client = GoogleClient::from_env()?;
let messages = vec![
Message::new(Role::User, "What is the capital of France?"),
];
let response = client.chat(messages).await?;
println!("Response: {}", response);Re-exports§
pub use client::GoogleClient;pub use types::GeminiContent;pub use types::GeminiMessage;pub use types::GeminiPart;pub use types::GeminiResponse;pub use types::GeminiTool;