1.1.0 (latest) 1.0.0

    public sealed class Callback : IMessage<Callback>, IEquatable<Callback>, IDeepCloneable<Callback>, IBufferMessage, IMessage

Reference 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Callback

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Callback](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.Callback.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Callback](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.Callback.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Callback](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.Callback.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

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` |   |