Crate gemini_rust

Source
Expand description

§gemini-rust

A Rust client library for Google’s Gemini 2.0 API.

Structs§

Candidate
A candidate response
CitationMetadata
Citation metadata for content
Content
Content of a message
FunctionCall
A function call made by the model
FunctionDeclaration
Declaration of a function that can be called by the model
FunctionParameters
Parameters for a function
Gemini
Client for the Gemini API
GenerationConfig
Configuration for generation
GenerationResponse
Response from the Gemini API for content generation
Message
Message in a conversation
PropertyDetails
Details about a property
SafetyRating
Safety rating for content

Enums§

Error
Errors that can occur when using the Gemini API
FunctionCallingMode
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