Google Cloud Ai Platform V1 Client - Class FunctionCallingConfig (1.47.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class FunctionCallingConfig.

Function calling config.

Generated from protobuf message google.cloud.aiplatform.v1.FunctionCallingConfig

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ mode
int

Optional. Function calling mode.

↳ allowed_function_names
array

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.

↳ stream_function_call_arguments
bool

Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.

getMode

Optional. Function calling mode.

Returns
Type
Description
int
Enum of type Mode .

setMode

Optional. Function calling mode.

Parameter
Name
Description
var
int

Enum of type Mode .

Returns
Type
Description
$this

getAllowedFunctionNames

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.

Returns
Type
Description

setAllowedFunctionNames

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.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getStreamFunctionCallArguments

Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.

Returns
Type
Description
bool

setStreamFunctionCallArguments

Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: