gemini_rust/
prelude.rs

1//! # Gemini Rust SDK Prelude
2//!
3//! This module provides convenient imports for the most commonly used types
4//! in the Gemini Rust SDK. Import everything with:
5//!
6//! ```rust
7//! use gemini_rust::prelude::*;
8//! ```
9//!
10//! This prelude includes only the essential types that most users will need.
11//! For more specialized types, import them directly from the crate root or
12//! their respective modules.
13
14// Core client types
15pub use crate::{ClientError, Gemini, Model};
16
17// Builders for creating requests
18pub use crate::{ContentBuilder, EmbedBuilder};
19
20// Core data types for messages and content
21pub use crate::{Content, Message, Role};
22
23// Main response types
24pub use crate::{ContentEmbeddingResponse, GenerationResponse};
25
26// Configuration types
27pub use crate::{GenerationConfig, TaskType};
28
29// Safety settings
30pub use crate::{HarmBlockThreshold, HarmCategory, SafetySetting};
31
32// Function calling
33pub use crate::{FunctionDeclaration, FunctionResponse, Tool};
34
35// Batch and file handles (commonly used for async operations)
36pub use crate::{Batch, FileHandle};