Skip to main content

Crate rust_genai

Crate rust_genai 

Source
Expand description

Core client crate for the Rust Gemini SDK.

Re-exports§

pub use client::Backend;
pub use client::Client;
pub use client::ClientBuilder;
pub use client::Credentials;
pub use client::HttpOptions;
pub use client::VertexConfig;
pub use error::Error;
pub use error::Result;
pub use rust_genai_types as types;

Modules§

afc
Automatic Function Calling (AFC) helpers.
batches
Batches API surface.
caches
Caches API surface.
chats
Chats API surface.
client
Client configuration and transport layer.
computer_use
Computer Use helpers.
deep_research
Deep Research convenience wrapper (Preview).
documents
Documents API surface.
error
Error definitions for the SDK.
file_search_stores
FileSearchStores API surface.
files
Files API surface.
interactions
Interactions API surface.
live
Live API (WebSocket) support.
live_music
Live Music API surface.
model_capabilities
Model capability checks and feature gating.
models
Models API surface.
operations
Operations API surface.
sse
SSE (Server-Sent Events) stream decoding utilities.
thinking
Thinking support and thought signature validation.
tokenizer
Local token estimation utilities (optional).
tokens
Ephemeral auth tokens API.
tunings
Tunings API surface.
webhooks
Webhooks API surface.