- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Evaluation.ScenarioExpectation#SCHEMA_REPRESENTATION)
- [Evaluation.ScenarioExpectation.ToolExpectation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Evaluation.ScenarioExpectation#Evaluation.ScenarioExpectation.ToolExpectation)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Evaluation.ScenarioExpectation#Evaluation.ScenarioExpectation.ToolExpectation.SCHEMA_REPRESENTATION)

The expectation to evaluate the conversation produced by the simulation.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "toolExpectation": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Evaluation.ScenarioExpectation#Evaluation.ScenarioExpectation.ToolExpectation`) }, "agentResponse": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Message`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The expectation to evaluate the conversation produced by the simulation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `toolExpectation` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Evaluation.ScenarioExpectation#Evaluation.ScenarioExpectation.ToolExpectation`)`` Optional. The tool call and response pair to be evaluated. |
| `agentResponse` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Message`)`` Optional. The agent response to be evaluated. |
| End of mutually exclusive fields. ||

## Evaluation.ScenarioExpectation.ToolExpectation

The tool call and response pair to be evaluated.

| JSON representation |
|---|
| ``` { "expectedToolCall": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/ToolCall`) }, "mockToolResponse": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/ToolResponse`) } } ``` |

| Fields ||
|---|---|
| `expectedToolCall` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/ToolCall`)`` Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM. |
| `mockToolResponse` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/ToolResponse`)`` Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM. |