Expand description
§gemini-rust
A Rust client library for Google’s Gemini 2.0 API.
Structs§
- Candidate
- A candidate response
- Citation
Metadata - Citation metadata for content
- Content
- Content of a message
- 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
- Generation
Config - Configuration for generation
- Generation
Response - Response from the Gemini API for content generation
- Message
- Message in a conversation
- Property
Details - Details about a property
- Safety
Rating - Safety rating for content
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
- Tool
- Tool that can be used by the model
Type Aliases§
- Result
- Result type for this crate