Class GeminiTool
public class GeminiTool
- Inheritance
-
objectGeminiTool
Constructors
GeminiTool()
public GeminiTool()
GeminiTool(params Function[])
public GeminiTool(params Function[] functionDeclarations)
Parameters
functionDeclarationsFunction[]
GeminiTool(IEnumerable<Function>)
public GeminiTool(IEnumerable<Function> selectMany)
Parameters
selectManyIEnumerable<Function>
GeminiTool(params string[])
public GeminiTool(params string[] toolNames)
Parameters
toolNamesstring[]
Properties
FunctionDeclarations
Optional.
A list of FunctionDeclarations available to the model that can be used for function calling.
The model or system does not execute the function. Instead, the defined function may be returned as a [FunctionCall][content.part.function_call] with arguments to the client side for execution.
The model may decide to call a subset of these functions by populating[FunctionCall][content.part.function_call] in the response. The next conversation turn may contain a [FunctionResponse][content.part.function_response] with the [content.role] "function" generation context for the next model turn.
public List<Function> FunctionDeclarations { get; set; }
Property Value
- List<Function>