Google Cloud Ces V1 Client - Class ClientFunction (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class ClientFunction.

Represents a client-side function that the agent can invoke. When the tool is chosen by the agent, control is handed off to the client.

The client is responsible for executing the function and returning the result as a ToolResponse to continue the interaction with the agent.

Generated from protobuf message google.cloud.ces.v1.ClientFunction

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The function name.

↳ description string

Optional. The function description.

↳ parameters Schema

Optional. The schema of the function parameters.

↳ response Schema

Optional. The schema of the function response.

getName

Required. The function name.

Returns
Type Description
string

setName

Required. The function name.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Optional. The function description.

Returns
Type Description
string

setDescription

Optional. The function description.

Parameter
Name Description
var string
Returns
Type Description
$this

getParameters

Optional. The schema of the function parameters.

Returns
Type Description
Schema|null

hasParameters

clearParameters

setParameters

Optional. The schema of the function parameters.

Parameter
Name Description
var Schema
Returns
Type Description
$this

getResponse

Optional. The schema of the function response.

Returns
Type Description
Schema|null

hasResponse

clearResponse

setResponse

Optional. The schema of the function response.

Parameter
Name Description
var Schema
Returns
Type Description
$this