Struct FunctionCallingConfigMode
Function calling mode.
[JsonConverter(typeof(FunctionCallingConfigModeConverter))]
public readonly record struct FunctionCallingConfigMode : IEquatable<FunctionCallingConfigMode>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<FunctionCallingConfigMode> AllValues { get; }
Property Value
Any
Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
public static FunctionCallingConfigMode Any { get; }
Property Value
Auto
Default model behavior, model decides to predict either function calls or natural language response.
public static FunctionCallingConfigMode Auto { get; }
Property Value
ModeUnspecified
Unspecified function calling mode. This value should not be used.
public static FunctionCallingConfigMode ModeUnspecified { get; }
Property Value
None
Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
public static FunctionCallingConfigMode None { get; }
Property Value
Validated
Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
public static FunctionCallingConfigMode Validated { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(FunctionCallingConfigMode)
public bool Equals(FunctionCallingConfigMode other)
Parameters
Returns
FromString(string)
public static FunctionCallingConfigMode FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator FunctionCallingConfigMode(string)
public static implicit operator FunctionCallingConfigMode(string value)
Parameters
valuestring