Module prelude

Module prelude 

Source
Expand description

Convenient re-exports of commonly used types

§Gemini Rust SDK Prelude

This module provides convenient imports for the most commonly used types in the Gemini Rust SDK. Import everything with:

use gemini_rust::prelude::*;

This prelude includes only the essential types that most users will need. For more specialized types, import them directly from the crate root or their respective modules.

Re-exports§

pub use crate::ClientError;
pub use crate::Gemini;
pub use crate::Model;
pub use crate::ContentBuilder;
pub use crate::EmbedBuilder;
pub use crate::Content;
pub use crate::Message;
pub use crate::Role;
pub use crate::ContentEmbeddingResponse;
pub use crate::GenerationResponse;
pub use crate::GenerationConfig;
pub use crate::TaskType;
pub use crate::HarmBlockThreshold;
pub use crate::HarmCategory;
pub use crate::SafetySetting;
pub use crate::FunctionDeclaration;
pub use crate::FunctionResponse;
pub use crate::Tool;
pub use crate::Batch;
pub use crate::FileHandle;