UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Generation.Tools.Declaration Namespace Reference

Classes

class  GeminiCodeExecution
 Tool that executes code generated by the model, and automatically returns the result to the model. More...
 
class  GeminiFunctionCallingConfiguration
 Configuration for specifying function calling behavior. More...
 
class  GeminiFunctionDeclaration
 Structured representation of a function declaration as defined by the OpenAPI 3.03 specification.
Included in this declaration are the function name and parameters. This FunctionDeclaration is a
representation of a block of code that can be used as a Tool by the model and executed by the client. More...
 
class  GeminiTool
 Tool details that the model may use to generate response. More...
 
class  GeminiToolConfiguration
 The Tool configuration containing parameters for specifying Tool use in the request. More...
 

Enumerations

enum  GeminiFunctionCallingMode { Unspecified , Auto , Any , None }
 Defines the execution behavior for function calling by defining the execution mode. More...
 

Enumeration Type Documentation

◆ GeminiFunctionCallingMode

Defines the execution behavior for function calling by defining the execution mode.

Enumerator
Unspecified 

Unspecified function calling mode. This value should not be used.

Auto 

Default model behavior, model decides to predict either a function call or a natural language response.

Any 

Model is constrained to always predicting a function call only. If GeminiFunctionCallingConfiguration.AllowedFunctionNames is set, the predicted function call will be limited to any one of GeminiFunctionCallingConfiguration.AllowedFunctionNames, else the predicted function call will be any one of the provided GeminiTool.FunctionDeclarations.

None 

Model will not predict any function call. Model behavior is same as when not passing any function declarations.