Structs§
- Candidate
- A candidate response
- Citation
Metadata - Citation metadata for content
- Citation
Source - Citation source
- Count
Tokens Response - Response from the Gemini API for token counting
- Generate
Content Request - Request to generate content
- Generation
Config - Configuration for generation
- Generation
Response - Response from the Gemini API for content generation
- Grounding
Chunk - A chunk of grounding information from a source
- Grounding
Metadata - Grounding metadata for responses that use grounding tools
- Grounding
Segment - A segment of response text
- Grounding
Support - Support information connecting response text to grounding sources
- Image
Config - Config for image generation features.
- Maps
Grounding Chunk - Maps-specific grounding chunk information
- Media
Resolution - Wrapper struct for per-part media resolution. Allows fine-grained control over the resolution used for individual inline images and PDFs.
- Multi
Speaker Voice Config - Multi-speaker voice configuration
- Prebuilt
Voice Config - Prebuilt voice configuration
- Prompt
Feedback - Feedback about the prompt
- Prompt
Token Details - Details about prompt tokens by modality
- Speaker
Voice Config - Configuration for a specific speaker in multi-speaker TTS
- Speech
Config - Configuration for speech generation (text-to-speech)
- Thinking
Config - Configuration for thinking (Gemini 2.5 and Gemini 3 series)
- Usage
Metadata - Metadata about token usage
- Voice
Config - Voice configuration for text-to-speech
- WebGrounding
Chunk - Web-specific grounding chunk information
Enums§
- Block
Reason - Reason why content was blocked
- Finish
Reason - Reason why generation finished
- Media
Resolution Level - Media resolution level for images and PDFs
- Thinking
Level - Thinking level for Gemini 3 Pro models