Reference documentation and code samples for the Google Cloud Ces V1 Client class Callback.
A callback defines the custom logic to be executed at various stages of agent interaction.
Generated from protobuf message google.cloud.ces.v1.Callback
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ python_code
string
Required. The python code to execute for the callback.
↳ description
string
Optional. Human-readable description of the callback.
↳ disabled
bool
Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
↳ proactive_execution_enabled
bool
Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. ENABLE WITH CAUTION. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
getPythonCode
Required. The python code to execute for the callback.
string
hasPythonCode
setPythonCode
Required. The python code to execute for the callback.
var
string
$this
getDescription
Optional. Human-readable description of the callback.
string
setDescription
Optional. Human-readable description of the callback.
var
string
$this
getDisabled
Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
bool
setDisabled
Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
var
bool
$this
getProactiveExecutionEnabled
Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback.
ENABLE WITH CAUTION. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
bool
setProactiveExecutionEnabled
Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback.
ENABLE WITH CAUTION. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
var
bool
$this
getCallback
string

