Skip to main content

Module models

Module models 

Source

Re-exports§

pub use request::GenerateContentRequest;
pub use request::GenerationConfig;
pub use request::ThinkingConfig;
pub use response::Candidate;
pub use response::GenerateContentResponse;

Modules§

request
response

Structs§

Content
FunctionDeclaration
InlineData
ServerToolCall
ServerToolResponse
SystemInstruction
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.