Skip to main content

Module gemini

Module gemini 

Source
Expand description

Gemini API compatibility facade for VT Code.

Canonical internal imports live under crate::llm::providers::gemini::wire.

Modules§

client
function_calling
models
streaming

Structs§

Candidate
Client
ClientConfig
Configuration for HTTP client optimization
Content
FunctionCall
FunctionCallingConfig
FunctionDeclaration
FunctionResponse
GenerateContentRequest
GenerateContentResponse
RetryConfig
Retry configuration for streaming operations
StreamingCandidate
Streaming candidate structure
StreamingConfig
Configuration for the streaming processor
StreamingMetrics
Streaming metrics for monitoring and debugging
StreamingProcessor
Streaming processor for handling real-time responses from the Gemini API
StreamingResponse
Streaming response structure
Tool
ToolConfig

Enums§

Part
IMPORTANT: Variant ordering matters for #[serde(untagged)] deserialization. Serde tries variants in declaration order and returns the first successful match. Variants with required fields (FunctionCall, FunctionResponse, InlineData, Text) must come BEFORE CacheControl, which has only optional fields and would otherwise act as a catch-all, matching any JSON object.
StreamingError
Streaming error types for better error classification and handling