1.1.0 (latest) 1.0.0

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

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API 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\]\[google.cloud.ces.v1.ToolResponse\] to continue the
interaction with the agent.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ClientFunction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ClientFunction.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ClientFunction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ClientFunction.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ClientFunction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ClientFunction.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

### ClientFunction()

    public ClientFunction()

### ClientFunction(ClientFunction)

    public ClientFunction(ClientFunction other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ClientFunction` |

## Properties

### Description

    public string Description { get; set; }

Optional. The function description.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

Required. The function name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Parameters

    public Schema Parameters { get; set; }

Optional. The schema of the function parameters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Schema` |   |

### Response

    public Schema Response { get; set; }

Optional. The schema of the function response.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Schema` |   |