Module types

Source
Expand description

Contains every type used in the library

Structs§

ApiError
Candidate
A response candidate generated from the model
CodeExecutionResult
Result of executing the ExecutableCode
CodeExecutionTool
Tool that executes code generated by the model, and automatically returns the result to the model
Content
The base structured datatype containing multi-part content of a message
EndOffset
ErrorDetail
ErrorInfo
ExecutableCode
Code generated by the model that is meant to be executed, and the result returned to the model
FileData
URI based data
FunctionCall
FunctionCallingConfig
Configuration for specifying function calling behavior
FunctionDeclaration
Structured representation of a function declaration
FunctionResponse
The result output from a FunctionCall
GenerateContent
Request to generate content from the model
GenerationConfig
Configuration options for model generation and outputs.
GoogleSearchTool
GoogleSearch tool type.
InlineData
Inline media bytes (stored as a base64 string for some reason) //todo
Model
Information about a Generative Language Model
Models
Response from crate::Client::models containing a paginated list of Models
Part
A datatype containing media that is part of a multi-part Content message
PromptFeedback
A set of the feedback metadata the prompt specified in [GenerateContentRequest.content].
Response
Response from the model supporting multiple candidate responses
SafetyRating
Safety rating for a piece of content
SafetySettings
Safety setting, affecting the safety-blocking behavior
Schema
The Schema object allows the definition of input and output data types.
StartOffset
SystemInstructionContent
System instructions are used to provide the model with additional context or instructions
SystemInstructionPart
A part of the system instruction content
ThinkingConfig
Config for thinking features
ToolConfig
The Tool configuration containing parameters for specifying Tools use in the request
Tools
Tool details that the model may use to generate response
UsageMetadata
Metadata on the generation request’s token usage
VideoMetadata
Metadata for a video File

Enums§

ApiResponse
FinishReason
Defines the reason why the model stopped generating tokens
FunctionCallingMode
Defines the execution behavior for function calling by defining the execution mode
HarmBlockThreshold
Block at and beyond a specified harm probability
HarmCategory
The category of a rating
HarmProbability
The probability that a piece of content is harmful
Outcome
Enumeration of possible outcomes of the CodeExecutionTool
ProgrammingLanguage
Supported programming languages for the generated code
Role
The producer of the content
Status
Common backend error codes you may encounter
Type
Definitions of the types of data that can be used in Schema