Class FunctionCallingConfig
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Configuration for specifying function calling behavior.
public class FunctionCallingConfig
- Inheritance
-
FunctionCallingConfig
- Inherited Members
- Extension Methods
Properties
AllowedFunctionNames
Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
[JsonPropertyName("allowedFunctionNames")]
public List<string>? AllowedFunctionNames { get; set; }
Property Value
Mode
Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.
[JsonPropertyName("mode")]
public FunctionCallingMode? Mode { get; set; }
Property Value
StreamFunctionCallArguments
Stream function call arguments as PartialArg chunks while they are generated. Vertex AI only.
[JsonPropertyName("streamFunctionCallArguments")]
public bool? StreamFunctionCallArguments { get; set; }
Property Value
- bool?