1.0.0-beta10 (latest) 1.0.0-beta09

    public sealed class Evaluation.Types.ScenarioExpectation.Types.ToolExpectation : IMessage<Evaluation.Types.ScenarioExpectation.Types.ToolExpectation>, IEquatable<Evaluation.Types.ScenarioExpectation.Types.ToolExpectation>, IDeepCloneable<Evaluation.Types.ScenarioExpectation.Types.ToolExpectation>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class Evaluation.Types.ScenarioExpectation.Types.ToolExpectation.

The tool call and response pair to be evaluated.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Evaluation.Types.ScenarioExpectation.Types.ToolExpectation

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Evaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types)[ScenarioExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types)[ToolExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types.ToolExpectation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Evaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types)[ScenarioExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types)[ToolExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types.ToolExpectation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Evaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types)[ScenarioExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types)[ToolExpectation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types.ToolExpectation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta)

## Assembly

Google.Cloud.Ces.V1Beta.dll

## Constructors

### ToolExpectation()

    public ToolExpectation()

### ToolExpectation(ToolExpectation)

    public ToolExpectation(Evaluation.Types.ScenarioExpectation.Types.ToolExpectation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.Evaluation.Types.ScenarioExpectation.Types.ToolExpectation` |

## Properties

### ExpectedToolCall

    public ToolCall ExpectedToolCall { get; set; }

Required. The expected tool call, with the parameters of interest
specified. Any parameters not specified will be hallucinated by the
LLM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolCall` |   |

### MockToolResponse

    public ToolResponse MockToolResponse { get; set; }

Required. The tool response to mock, with the parameters of interest
specified. Any parameters not specified will be hallucinated by the
LLM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolResponse` |   |