Interface FunctionCallingConfigOrBuilder (1.12.0)

public interface FunctionCallingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedFunctionNames(int index)

public abstract String getAllowedFunctionNames(int index)

Optional. 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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedFunctionNames at the given index.

getAllowedFunctionNamesBytes(int index)

public abstract ByteString getAllowedFunctionNamesBytes(int index)

Optional. 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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedFunctionNames at the given index.

getAllowedFunctionNamesCount()

public abstract int getAllowedFunctionNamesCount()

Optional. 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
Type Description
int

The count of allowedFunctionNames.

getAllowedFunctionNamesList()

public abstract List<String> getAllowedFunctionNamesList()

Optional. 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
Type Description
List<String>

A list containing the allowedFunctionNames.

getMode()

public abstract FunctionCallingConfig.Mode getMode()

Optional. Function calling mode.

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

Returns
Type Description
FunctionCallingConfig.Mode

The mode.

getModeValue()

public abstract int getModeValue()

Optional. Function calling mode.

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

Returns
Type Description
int

The enum numeric value on the wire for mode.