Expand description
Contains every type used in the library
Structs§
- ApiError
- Candidate
- A response candidate generated from the model
- Code
Execution Result - Result of executing the ExecutableCode
- Code
Execution Tool - 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
- Error
Detail - Error
Info - Executable
Code - Code generated by the model that is meant to be executed, and the result returned to the model
- File
Data - URI based data
- Function
Call - Function
Calling Config - Configuration for specifying function calling behavior
- Function
Declaration - Structured representation of a function declaration
- Function
Response - The result output from a FunctionCall
- Generate
Content - Request to generate content from the model
- Generation
Config - Configuration options for model generation and outputs.
- Google
Search Tool - GoogleSearch tool type.
- Inline
Data - 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
- Prompt
Feedback - A set of the feedback metadata the prompt specified in [GenerateContentRequest.content].
- Response
- Response from the model supporting multiple candidate responses
- Safety
Rating - Safety rating for a piece of content
- Safety
Settings - Safety setting, affecting the safety-blocking behavior
- Schema
- The Schema object allows the definition of input and output data types.
- Start
Offset - System
Instruction Content - System instructions are used to provide the model with additional context or instructions
- System
Instruction Part - A part of the system instruction content
- Thinking
Config - Config for thinking features
- Tool
Config - The Tool configuration containing parameters for specifying Tools use in the request
- Tools
- Tool details that the model may use to generate response
- Usage
Metadata - Metadata on the generation request’s token usage
- Video
Metadata - Metadata for a video File
Enums§
- ApiResponse
- Finish
Reason - Defines the reason why the model stopped generating tokens
- Function
Calling Mode - Defines the execution behavior for function calling by defining the execution mode
- Harm
Block Threshold - Block at and beyond a specified harm probability
- Harm
Category - The category of a rating
- Harm
Probability - The probability that a piece of content is harmful
- Outcome
- Enumeration of possible outcomes of the CodeExecutionTool
- Programming
Language - 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