Skip to main content

Module models

Module models 

Source

Modules§

request
response

Structs§

Candidate
Content
FunctionDeclaration
GenerateContentRequest
GenerateContentResponse
GenerationConfig
InlineData
ServerToolCall
ServerToolResponse
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.