gemini_bridge library

Classes

Candidate
Response candidate generated from a GenerativeModel.
Content
The base structured datatype containing multi-part content of a message.
CountTokensResponse
Response for Count Tokens
DeveloperSerialization
FunctionCall
A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values.
FunctionCallingConfig
Configuration specifying how the model should use the functions provided as tools.
FunctionDeclaration
Structured representation of a function declaration as defined by the OpenAPI 3.03 specification.
FunctionResponse
The response class for FunctionCall
GeminiClient
GenerateContentResponse
Response from the model; supports multiple candidates.
GenerationConfig
Configuration options for model generation and outputs.
InlineDataPart
A Part with the byte content of a file.
Part
A datatype containing media that is part of a multi-part Content message.
SafetySetting
Safety setting, affecting the safety-blocking behavior.
Schema
The definition of an input or output data types.
TextPart
A Part with the text content.
Tool
Tool details that the model may use to generate a response.
ToolConfig
Config for tools to use with model.
UnknownPart
A Part that contains unparsable data.

Enums

BlockReason
The reason why a prompt was blocked.
FinishReason
Reason why a model stopped generating tokens.
FunctionCallingMode
The mode in which the model should use the functions provided as tools.
HarmBlockThreshold
Probability of harm which causes content to be blocked.
HarmCategory
The category of a rating.
SchemaType
The value type of a Schema.

Functions

parseGeminiError(Map<String, dynamic> errorJson) GeminiBridgeException