- [Resource: EvaluationExpectation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation.SCHEMA_REPRESENTATION)
- [EvaluationExpectation.LlmCriteria](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation.LlmCriteria)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation.LlmCriteria.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#METHODS_SUMMARY)

## Resource: EvaluationExpectation

An evaluation expectation represents a specific criteria to evaluate against.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "tags": [ string ], "createTime": string, "updateTime": string, "etag": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "llmCriteria": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation.LlmCriteria`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}` |
| `displayName` | `string` Required. User-defined display name. Must be unique within the app. |
| `tags[]` | `string` Optional. User-defined tags for expectations. Can be used to filter expectations. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Timestamp when the evaluation expectation was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Timestamp when the evaluation expectation was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `etag` | `string` Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes. |
| The definition of the criteria used for evaluation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `llmCriteria` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations#EvaluationExpectation.LlmCriteria`)`` Optional. Evaluation criteria based on an LLM prompt. |
| End of mutually exclusive fields. ||

## EvaluationExpectation.LlmCriteria

Configuration for LLM-based evaluation criteria.

| JSON representation |
|---|
| ``` { "prompt": string } ``` |

| Fields ||
|---|---|
| `prompt` | `string` Required. The prompt/instructions provided to the LLM judge. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations/create` | Creates an evaluation expectation. |
| ### `https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations/delete` | Deletes an evaluation expectation. |
| ### `https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations/get` | Gets details of the specified evaluation expectation. |
| ### `https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations/list` | Lists all evaluation expectations in the given app. |
| ### `https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/projects.locations.apps.evaluationExpectations/patch` | Updates an evaluation expectation. |