elizaos_plugin_google_genai/
lib.rs1#![warn(missing_docs)]
7#![deny(unsafe_code)]
8
9pub mod client;
10pub mod config;
11pub mod error;
12pub mod models;
13pub mod types;
14
15#[cfg(feature = "wasm")]
16pub mod wasm;
17
18pub use client::GoogleGenAIClient;
19pub use config::GoogleGenAIConfig;
20pub use error::{GoogleGenAIError, Result};
21pub use models::{Model, ModelSize};
22pub use types::{
23 EmbeddingParams, EmbeddingResponse, ObjectGenerationParams, TextGenerationParams,
24 TextGenerationResponse,
25};
26
27pub fn create_client_from_env() -> Result<GoogleGenAIClient> {
36 let config = GoogleGenAIConfig::from_env()?;
37 GoogleGenAIClient::new(config)
38}
39
40pub const PLUGIN_NAME: &str = "google-genai";
42
43pub const PLUGIN_DESCRIPTION: &str =
45 "Google GenAI Gemini API client with text generation, embeddings, and image analysis support";
46
47pub const PLUGIN_VERSION: &str = env!("CARGO_PKG_VERSION");