Expand description
§gemini-rust
A Rust client library for Google’s Gemini 2.0 API.
Structs§
- Batch
Builder - Builder for synchronous batch content generation requests
- Batch
Config - Batch configuration
- Batch
Metadata - Metadata for the batch operation
- Batch
Request Item - Individual batch request item
- Batch
Stats - Statistics for the batch
- Blob
- Blob for a message part
- Candidate
- A candidate response
- Citation
Metadata - Citation metadata for content
- Content
- Content of a message
- Content
Builder - Builder for content generation requests
- Function
Call - A function call made by the model
- Function
Declaration - Declaration of a function that can be called by the model
- Function
Parameters - Parameters for a function
- Gemini
- Client for the Gemini API
- Generate
Content Request - Request to generate content
- Generation
Config - Configuration for generation
- Generation
Response - Response from the Gemini API for content generation
- Input
Config - Input configuration for batch requests
- Message
- Message in a conversation
- Prompt
Token Details - Details about prompt tokens by modality
- Property
Details - Details about a property
- Request
Metadata - Metadata for batch request
- Requests
Container - Container for requests
- Safety
Rating - Safety rating for content
- Thinking
Config - Configuration for thinking (Gemini 2.5 series only)
- Usage
Metadata - Metadata about token usage
Enums§
- Error
- Errors that can occur when using the Gemini API
- Function
Calling Mode - Mode for function calling
- Part
- Content part that can be included in a message
- Role
- Role of a message in a conversation
- Task
Type - Embedding Task types
- Tool
- Tool that can be used by the model
Type Aliases§
- Result
- Result type for this crate