Skip to main content

Module wire

Module wire 

Source
Expand description

Gemini wire types and transport helpers owned by the provider tree.

Modules§

client
function_calling
interactions
models
streaming

Structs§

Candidate
Client
ClientConfig
Configuration for HTTP client optimization
Content
FunctionCall
FunctionCallingConfig
FunctionDeclaration
FunctionResponse
GenerateContentRequest
GenerateContentResponse
GenerationConfig
InlineData
RetryConfig
Retry configuration for streaming operations
ServerToolCall
ServerToolResponse
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
SystemInstruction
ThinkingConfig
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