Resource: EvaluationContext
An evaluation context for an evaluation suite or case.
| JSON representation |
|---|
{
"name": string,
"displayName": string,
"description": string,
"store": string,
"menu": string,
"testSessionStartTime": string,
"mockClientExecutions": [
{
object ( |
| Fields | |
|---|---|
name |
Identifier. The full resource name of the evaluation context. Format: projects/{project}/locations/{location}/brands/{brand}/evaluationContexts/{evaluationContext} |
displayName |
Required. The human-readable name of the evaluation context. |
description |
Optional. The description of the evaluation context. |
store |
Required. The full resource name of the store to use for the evaluation case. Format: projects/{projectId}/locations/{location}/brands/{brandId}/stores/{storeId} |
menu |
Optional. Optional menu to use for the evaluation context. If not provided, it will use the default menu for the store. Format: projects/{projectId}/locations/{location}/brands/{brandId}/menus/{menuId} |
testSessionStartTime |
Optional. Optional injected start time of the Food Ordering session. If set, the evaluation session will assume the test session started at this time. This is for simulating ordering behavior at a specific time of day. If not set, the evaluation session will use the current time as the start time. 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: |
mockClientExecutions[] |
Optional. Optional mocked client execution responses for client execution requests sent by the food ordering service during the evaluation session. |
daypartId |
Optional. Optional daypart ID to use for the evaluation context. If provided, the agent will use this daypart ID when establishing the process order configuration. |
MockClientExecution
Represents a mocked client execution request and response pair. If the requests sent by the food ordering service in an eval run matches the mock request, the mock response will be returned to the service. Note the request.execution_id will be ignored during matching since it's session specific.
| JSON representation |
|---|
{ "rawJsonRequest": { object }, "rawJsonResponse": { object } } |
| Fields | |
|---|---|
rawJsonRequest |
Optional. The request for the mock client execution. |
rawJsonResponse |
Optional. The response for the mock client execution. |
Methods |
|
|---|---|
|
Creates an EvaluationContext. |
|
Deletes the specified EvaluationContext. |
|
Gets an EvaluationContext. |
|
Lists EvaluationContexts. |
|
Updates the specified EvaluationContext. |