public sealed class Callback : IMessage<Callback>, IEquatable<Callback>, IDeepCloneable<Callback>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class Callback.
A callback defines the custom logic to be executed at various stages of agent interaction.
Namespace
Google.Cloud.Ces.V1Assembly
Google.Cloud.Ces.V1.dll
Constructors
Callback()
public Callback()Callback(Callback)
public Callback(Callback other)| Parameter | |
|---|---|
| Name | Description |
other |
Callback |
Properties
CallbackCase
public Callback.CallbackOneofCase CallbackCase { get; }| Property Value | |
|---|---|
| Type | Description |
CallbackCallbackOneofCase |
|
Description
public string Description { get; set; }Optional. Human-readable description of the callback.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Disabled
public bool Disabled { get; set; }Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasPythonCode
public bool HasPythonCode { get; }Gets whether the "python_code" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ProactiveExecutionEnabled
public bool ProactiveExecutionEnabled { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
PythonCode
public string PythonCode { get; set; }Required. The python code to execute for the callback.
| Property Value | |
|---|---|
| Type | Description |
string |
|