Interface FunctionCallingConfigOrBuilder (3.42.0)

public interface FunctionCallingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedFunctionNames(int index)

public abstract String getAllowedFunctionNames(int index)

Function names to call. Only 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.

repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedFunctionNames at the given index.

getAllowedFunctionNamesBytes(int index)

public abstract ByteString getAllowedFunctionNamesBytes(int index)

Function names to call. Only 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.

repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedFunctionNames at the given index.

getAllowedFunctionNamesCount()

public abstract int getAllowedFunctionNamesCount()

Function names to call. Only 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.

repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of allowedFunctionNames.

getAllowedFunctionNamesList()

public abstract List<String> getAllowedFunctionNamesList()

Function names to call. Only 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.

repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<String>

A list containing the allowedFunctionNames.

getMode()

public abstract FunctionCallingConfig.Mode getMode()

Function calling mode.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FunctionCallingConfig.Mode

The mode.

getModeValue()

public abstract int getModeValue()

Function calling mode.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for mode.