Table of Contents

Struct FunctionCallingConfigMode

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

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

IReadOnlyList<FunctionCallingConfigMode>

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

FunctionCallingConfigMode

Auto

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

public static FunctionCallingConfigMode Auto { get; }

Property Value

FunctionCallingConfigMode

ModeUnspecified

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

public static FunctionCallingConfigMode ModeUnspecified { get; }

Property Value

FunctionCallingConfigMode

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

FunctionCallingConfigMode

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

FunctionCallingConfigMode

Value

public string Value { get; }

Property Value

string

Methods

Equals(FunctionCallingConfigMode)

public bool Equals(FunctionCallingConfigMode other)

Parameters

other FunctionCallingConfigMode

Returns

bool

FromString(string)

public static FunctionCallingConfigMode FromString(string value)

Parameters

value string

Returns

FunctionCallingConfigMode

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator FunctionCallingConfigMode(string)

public static implicit operator FunctionCallingConfigMode(string value)

Parameters

value string

Returns

FunctionCallingConfigMode