Debian Codegraph @

docs/dyn/ces_v1beta.projects.locations.apps.evaluations.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="ces_v1beta.html">Gemini Enterprise for Customer Experience API</a> . <a href="ces_v1beta.projects.html">projects</a> . <a href="ces_v1beta.projects.locations.html">locations</a> . <a href="ces_v1beta.projects.locations.apps.html">apps</a> . <a href="ces_v1beta.projects.locations.apps.evaluations.html">evaluations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="ces_v1beta.projects.locations.apps.evaluations.results.html">results()</a></code>
79 </p>
80 <p class="firstline">Returns the results Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, evaluationId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates an evaluation.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, etag=None, force=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an evaluation.</p>
91 <p class="toc_element">
92 <code><a href="#export">export(parent, body=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Exports evaluations.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96 <p class="firstline">Gets details of the specified evaluation.</p>
97 <p class="toc_element">
98 <code><a href="#list">list(parent, evaluationFilter=None, evaluationRunFilter=None, filter=None, lastTenResults=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Lists all evaluations in the given app.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Updates an evaluation.</p>
106 <p class="toc_element">
107 <code><a href="#uploadEvaluationAudio">uploadEvaluationAudio(name, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113 </div>
114
115 <div class="method">
116 <code class="details" id="create">create(parent, body=None, evaluationId=None, x__xgafv=None)</code>
117 <pre>Creates an evaluation.
118
119 Args:
120 parent: string, Required. The app to create the evaluation for. Format: `projects/{project}/locations/{location}/apps/{app}` (required)
121 body: object, The request body.
122 The object takes the form of:
123
124 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
125 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
126 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
127 { # Metrics aggregated per app version.
128 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
129 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
130 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
131 { # Metrics for hallucination results.
132 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
133 },
134 ],
135 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
136 { # Metrics aggregated per turn.
137 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
138 { # Metrics for hallucination results.
139 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
140 },
141 ],
142 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
143 { # Metrics for semantic similarity results.
144 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
145 },
146 ],
147 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
148 { # Metrics for tool call latency.
149 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
150 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
151 },
152 ],
153 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
154 { # Metrics for a single tool.
155 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
156 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
157 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
158 },
159 ],
160 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
161 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
162 { # Metrics for turn latency.
163 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
164 },
165 ],
166 },
167 ],
168 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
169 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
170 { # Metrics for semantic similarity results.
171 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
172 },
173 ],
174 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
175 { # Metrics for tool call latency.
176 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
177 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
178 },
179 ],
180 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
181 { # Metrics for a single tool.
182 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
183 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
184 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
185 },
186 ],
187 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
188 { # Metrics for turn latency.
189 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
190 },
191 ],
192 },
193 ],
194 },
195 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
196 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
197 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
198 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
199 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
200 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
201 &quot;A String&quot;,
202 ],
203 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
204 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
205 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
206 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
207 },
208 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
209 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
210 },
211 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
212 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
213 },
214 },
215 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
216 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
217 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
218 },
219 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
220 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
221 },
222 },
223 },
224 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
225 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
226 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
227 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
228 },
229 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
230 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
231 },
232 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
233 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
234 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
235 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
236 },
237 },
238 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
239 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
240 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
241 },
242 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
243 &quot;A String&quot;,
244 ],
245 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
246 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
247 &quot;A String&quot;,
248 ],
249 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
250 { # A golden turn defines a single turn in a golden conversation.
251 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
252 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
253 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
255 },
256 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
257 # Object with schema name: Span
258 ],
259 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
260 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
261 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
262 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
263 },
264 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
265 { # A step defines a singular action to happen during the evaluation.
266 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
267 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
268 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
269 },
270 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
271 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
272 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
273 { # A chunk of content within a message.
274 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
275 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
276 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
277 },
278 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
279 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
280 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
281 },
282 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
283 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
284 },
285 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
286 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
287 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
288 },
289 &quot;payload&quot;: { # Optional. Custom payload data.
290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
291 },
292 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
293 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
294 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
295 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
296 },
297 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
298 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
299 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
300 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
301 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
302 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
303 },
304 },
305 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
306 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
307 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
308 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
310 },
311 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
312 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
313 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
314 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
315 },
316 },
317 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
318 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
320 },
321 },
322 ],
323 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
324 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
325 },
326 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
327 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
328 },
329 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
330 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
331 },
332 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
333 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
334 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
335 },
336 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
337 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
338 },
339 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
340 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
341 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
342 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
344 },
345 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
346 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
347 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
348 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
349 },
350 },
351 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
352 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
353 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
354 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
355 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
356 },
357 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
358 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
359 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
360 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
361 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
362 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
363 },
364 },
365 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
366 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
367 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
368 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
369 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
370 },
371 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
372 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
373 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
374 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
375 },
376 },
377 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
378 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
379 },
380 },
381 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
382 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
383 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
384 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
385 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
386 },
387 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
388 &quot;event&quot;: { # Event input. # Optional. Event input.
389 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
390 },
391 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
392 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
393 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
394 },
395 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
396 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
397 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
398 { # The execution result of a specific tool from the client or the agent.
399 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
400 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
401 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
402 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
403 },
404 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
405 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
406 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
407 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
408 },
409 },
410 ],
411 },
412 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
413 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
414 },
415 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
416 },
417 },
418 ],
419 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
420 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
421 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
422 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
423 },
424 },
425 ],
426 },
427 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
428 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
429 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
430 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
431 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
432 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
433 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
434 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
435 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
436 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
437 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
438 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
439 },
440 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
441 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
442 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
443 },
444 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
445 },
446 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
447 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
448 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
449 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
450 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
451 {
452 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
453 },
454 ],
455 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
456 },
457 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
458 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
459 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
460 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
461 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
462 },
463 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
464 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
465 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
466 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
467 },
468 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
469 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
470 },
471 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
472 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
473 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
474 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
475 },
476 },
477 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
478 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
479 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
480 },
481 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
482 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
483 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
484 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
485 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
486 { # The result of a single evaluation expectation.
487 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
488 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
489 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
490 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
491 },
492 ],
493 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
494 { # The result of running a single turn of the golden conversation.
495 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
496 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
497 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
498 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
499 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
500 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
501 },
502 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
503 { # Specifies the expectation and the result of that expectation.
504 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
505 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
506 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
507 { # A chunk of content within a message.
508 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
509 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
510 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
511 },
512 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
513 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
514 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
515 },
516 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
517 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
518 },
519 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
520 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
521 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
522 },
523 &quot;payload&quot;: { # Optional. Custom payload data.
524 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
525 },
526 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
527 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
528 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
529 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
530 },
531 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
532 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
533 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
534 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
535 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
536 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
537 },
538 },
539 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
540 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
541 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
542 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
543 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
544 },
545 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
546 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
547 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
548 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
549 },
550 },
551 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
552 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
553 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
554 },
555 },
556 ],
557 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
558 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
559 },
560 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
561 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
562 },
563 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
564 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
565 },
566 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
567 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
568 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
569 },
570 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
571 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
572 },
573 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
574 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
575 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
576 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
577 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
578 },
579 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
580 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
581 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
582 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
583 },
584 },
585 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
586 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
587 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
588 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
589 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
590 },
591 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
592 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
593 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
594 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
595 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
596 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
597 },
598 },
599 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
600 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
601 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
602 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
603 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
604 },
605 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
606 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
607 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
608 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
609 },
610 },
611 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
612 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
613 },
614 },
615 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
616 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
617 { # A chunk of content within a message.
618 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
619 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
620 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
621 },
622 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
623 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
624 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
625 },
626 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
627 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
628 },
629 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
630 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
631 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
632 },
633 &quot;payload&quot;: { # Optional. Custom payload data.
634 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
635 },
636 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
637 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
638 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
639 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
640 },
641 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
642 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
643 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
644 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
645 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
646 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
647 },
648 },
649 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
650 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
651 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
652 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
653 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
654 },
655 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
656 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
657 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
658 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
659 },
660 },
661 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
662 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
663 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
664 },
665 },
666 ],
667 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
668 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
669 },
670 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
671 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
672 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
673 },
674 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
675 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
676 },
677 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
678 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
679 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
680 },
681 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
682 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
683 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
684 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
685 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
686 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
687 },
688 },
689 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
690 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
691 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
692 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
693 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
694 },
695 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
696 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
697 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
698 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
699 },
700 },
701 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
702 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
703 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
704 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
705 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
706 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
707 },
708 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
709 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
710 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
711 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
712 },
713 },
714 ],
715 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
716 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
717 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
718 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
719 },
720 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
721 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
722 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
723 },
724 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
725 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
726 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
727 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
728 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
729 },
730 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
731 { # The latency of a span execution.
732 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
733 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
734 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
735 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
736 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
737 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
738 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
739 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
740 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
741 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
742 },
743 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
744 },
745 ],
746 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
747 { # The latency of a tool call execution.
748 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
749 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
750 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
751 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
752 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
753 },
754 ],
755 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
756 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
757 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
758 },
759 ],
760 },
761 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
762 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
763 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
764 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
765 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
766 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
767 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
768 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
769 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
770 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
771 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
772 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
773 },
774 },
775 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
776 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
777 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
778 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
779 { # The result of a single evaluation expectation.
780 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
781 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
782 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
783 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
784 },
785 ],
786 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
787 { # The outcome of a scenario expectation.
788 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
789 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
790 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
791 { # A chunk of content within a message.
792 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
793 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
794 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
795 },
796 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
797 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
798 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
799 },
800 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
801 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
802 },
803 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
804 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
805 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
806 },
807 &quot;payload&quot;: { # Optional. Custom payload data.
808 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
809 },
810 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
811 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
812 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
813 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
814 },
815 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
816 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
817 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
818 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
819 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
820 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
821 },
822 },
823 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
824 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
825 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
826 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
827 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
828 },
829 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
830 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
831 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
832 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
833 },
834 },
835 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
836 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
837 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
838 },
839 },
840 ],
841 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
842 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
843 },
844 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
845 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
846 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
848 },
849 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
850 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
851 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
852 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
853 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
854 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
855 },
856 },
857 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
858 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
859 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
860 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
861 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
862 },
863 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
864 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
865 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
866 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
867 },
868 },
869 },
870 },
871 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
872 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
873 { # A chunk of content within a message.
874 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
875 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
876 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
877 },
878 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
879 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
880 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
881 },
882 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
883 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
884 },
885 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
886 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
887 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
888 },
889 &quot;payload&quot;: { # Optional. Custom payload data.
890 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
891 },
892 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
893 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
894 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
895 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
896 },
897 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
898 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
899 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
900 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
901 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
902 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
903 },
904 },
905 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
906 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
907 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
908 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
909 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
910 },
911 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
912 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
913 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
914 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
915 },
916 },
917 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
918 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
920 },
921 },
922 ],
923 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
924 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
925 },
926 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
927 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
928 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
929 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
930 },
931 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
932 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
933 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
934 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
935 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
936 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
937 },
938 },
939 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
940 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
941 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
942 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
943 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
944 },
945 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
946 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
947 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
948 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
949 },
950 },
951 },
952 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
953 },
954 ],
955 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
956 { # The result of the hallucination check for a single turn.
957 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
958 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
959 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
960 },
961 ],
962 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
963 { # The outcome of the evaluation against the rubric.
964 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
965 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
966 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
967 },
968 ],
969 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
970 { # The latency of a span execution.
971 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
972 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
973 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
974 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
975 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
976 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
977 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
978 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
979 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
980 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
981 },
982 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
983 },
984 ],
985 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
986 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
987 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
988 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
989 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
990 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
991 },
992 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
993 { # The latency of a tool call execution.
994 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
995 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
996 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
997 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
998 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
999 },
1000 ],
1001 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
1002 { # Facts about the user as a key value pair.
1003 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
1004 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
1005 },
1006 ],
1007 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
1008 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
1009 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
1010 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
1011 },
1012 },
1013 },
1014 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
1015 { # An evaluation result represents the output of running an Evaluation.
1016 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
1017 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
1018 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
1019 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
1020 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
1021 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
1022 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
1023 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
1024 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
1025 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
1026 },
1027 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
1028 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
1029 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
1030 },
1031 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
1032 },
1033 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
1034 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
1035 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
1036 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1037 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1038 {
1039 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1040 },
1041 ],
1042 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1043 },
1044 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
1045 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
1046 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
1047 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
1048 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
1049 },
1050 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
1051 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
1052 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
1053 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
1054 },
1055 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
1056 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
1057 },
1058 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
1059 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
1060 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
1061 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
1062 },
1063 },
1064 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
1065 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
1066 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
1067 },
1068 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
1069 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
1070 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
1071 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
1072 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
1073 { # The result of a single evaluation expectation.
1074 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
1075 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
1076 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
1077 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
1078 },
1079 ],
1080 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
1081 { # The result of running a single turn of the golden conversation.
1082 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
1083 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
1084 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
1085 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
1086 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
1087 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
1088 },
1089 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
1090 { # Specifies the expectation and the result of that expectation.
1091 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
1092 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
1093 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1094 { # A chunk of content within a message.
1095 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1096 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1097 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1098 },
1099 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1100 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1101 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1102 },
1103 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1104 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1105 },
1106 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1107 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1108 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1109 },
1110 &quot;payload&quot;: { # Optional. Custom payload data.
1111 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1112 },
1113 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1114 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1115 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1117 },
1118 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1119 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1120 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1121 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1122 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1123 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1124 },
1125 },
1126 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1127 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1128 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1129 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1130 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1131 },
1132 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1133 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1134 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1135 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1136 },
1137 },
1138 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1139 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1141 },
1142 },
1143 ],
1144 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1145 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1146 },
1147 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
1148 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
1149 },
1150 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
1151 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
1152 },
1153 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
1154 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1155 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1156 },
1157 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
1158 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
1159 },
1160 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1161 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1162 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1163 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1165 },
1166 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1167 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1168 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1169 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1170 },
1171 },
1172 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
1173 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
1174 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
1175 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1177 },
1178 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1179 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1180 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1181 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1182 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1183 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1184 },
1185 },
1186 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
1187 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1188 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1189 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1191 },
1192 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1193 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1194 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1195 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1196 },
1197 },
1198 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
1199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1200 },
1201 },
1202 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
1203 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1204 { # A chunk of content within a message.
1205 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1206 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1207 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1208 },
1209 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1210 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1211 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1212 },
1213 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1215 },
1216 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1217 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1218 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1219 },
1220 &quot;payload&quot;: { # Optional. Custom payload data.
1221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1222 },
1223 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1224 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1225 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1226 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1227 },
1228 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1229 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1230 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1231 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1232 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1233 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1234 },
1235 },
1236 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1237 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1238 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1239 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1240 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1241 },
1242 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1243 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1244 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1245 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1246 },
1247 },
1248 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1249 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1250 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1251 },
1252 },
1253 ],
1254 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1255 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1256 },
1257 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
1258 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1259 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1260 },
1261 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
1262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1263 },
1264 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
1265 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1267 },
1268 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1269 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1270 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1271 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1272 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1273 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1274 },
1275 },
1276 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
1277 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1278 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1279 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1281 },
1282 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1283 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1284 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1285 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1286 },
1287 },
1288 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
1289 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
1290 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
1291 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
1292 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
1293 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
1294 },
1295 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
1296 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
1297 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
1298 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
1299 },
1300 },
1301 ],
1302 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
1303 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
1304 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
1305 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
1306 },
1307 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
1308 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
1309 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
1310 },
1311 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
1312 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
1313 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
1314 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
1315 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
1316 },
1317 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
1318 { # The latency of a span execution.
1319 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
1320 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
1321 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
1322 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
1323 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
1324 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
1325 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
1326 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
1327 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1328 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1329 },
1330 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
1331 },
1332 ],
1333 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
1334 { # The latency of a tool call execution.
1335 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
1336 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
1337 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
1338 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
1339 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
1340 },
1341 ],
1342 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
1343 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
1344 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
1345 },
1346 ],
1347 },
1348 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
1349 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
1350 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
1351 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
1352 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
1353 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
1354 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
1355 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
1356 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
1357 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
1358 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
1359 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
1360 },
1361 },
1362 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
1363 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
1364 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
1365 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
1366 { # The result of a single evaluation expectation.
1367 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
1368 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
1369 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
1370 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
1371 },
1372 ],
1373 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
1374 { # The outcome of a scenario expectation.
1375 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
1376 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
1377 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1378 { # A chunk of content within a message.
1379 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1380 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1381 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1382 },
1383 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1384 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1385 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1386 },
1387 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1388 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1389 },
1390 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1391 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1392 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1393 },
1394 &quot;payload&quot;: { # Optional. Custom payload data.
1395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1396 },
1397 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1398 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1399 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1401 },
1402 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1403 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1404 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1405 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1406 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1407 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1408 },
1409 },
1410 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1411 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1412 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1413 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1414 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1415 },
1416 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1417 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1418 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1419 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1420 },
1421 },
1422 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1423 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1424 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1425 },
1426 },
1427 ],
1428 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1429 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1430 },
1431 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
1432 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1433 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1435 },
1436 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1437 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1438 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1439 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1440 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1441 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1442 },
1443 },
1444 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1445 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1446 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1447 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1448 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1449 },
1450 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1451 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1452 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1453 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1454 },
1455 },
1456 },
1457 },
1458 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
1459 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1460 { # A chunk of content within a message.
1461 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1462 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1463 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1464 },
1465 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1466 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1467 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1468 },
1469 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1471 },
1472 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1473 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1474 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1475 },
1476 &quot;payload&quot;: { # Optional. Custom payload data.
1477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1478 },
1479 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1480 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1481 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1483 },
1484 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1485 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1486 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1487 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1488 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1489 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1490 },
1491 },
1492 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1493 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1494 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1495 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1497 },
1498 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1499 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1500 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1501 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1502 },
1503 },
1504 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1505 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1507 },
1508 },
1509 ],
1510 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1511 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1512 },
1513 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
1514 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
1515 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1517 },
1518 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1519 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1520 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1521 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1522 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1523 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1524 },
1525 },
1526 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
1527 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1528 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1529 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1531 },
1532 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1533 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1534 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1535 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1536 },
1537 },
1538 },
1539 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
1540 },
1541 ],
1542 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
1543 { # The result of the hallucination check for a single turn.
1544 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
1545 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
1546 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
1547 },
1548 ],
1549 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
1550 { # The outcome of the evaluation against the rubric.
1551 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
1552 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
1553 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
1554 },
1555 ],
1556 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
1557 { # The latency of a span execution.
1558 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
1559 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
1560 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
1561 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
1562 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
1563 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
1564 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
1565 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
1566 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1567 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1568 },
1569 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
1570 },
1571 ],
1572 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
1573 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
1574 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
1575 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
1576 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
1577 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
1578 },
1579 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
1580 { # The latency of a tool call execution.
1581 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
1582 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
1583 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
1584 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
1585 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
1586 },
1587 ],
1588 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
1589 { # Facts about the user as a key value pair.
1590 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
1591 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
1592 },
1593 ],
1594 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
1595 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
1596 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
1597 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
1598 },
1599 },
1600 },
1601 ],
1602 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
1603 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
1604 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
1605 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
1606 &quot;A String&quot;,
1607 ],
1608 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
1609 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
1610 &quot;A String&quot;,
1611 ],
1612 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
1613 { # The expectation to evaluate the conversation produced by the simulation.
1614 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
1615 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1616 { # A chunk of content within a message.
1617 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1618 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1619 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1620 },
1621 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1622 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1623 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1624 },
1625 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1626 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1627 },
1628 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1629 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1630 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1631 },
1632 &quot;payload&quot;: { # Optional. Custom payload data.
1633 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1634 },
1635 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1636 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1637 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1638 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1639 },
1640 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1641 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1642 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1643 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1644 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1645 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1646 },
1647 },
1648 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1649 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1650 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1651 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1652 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1653 },
1654 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1655 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1656 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1657 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1658 },
1659 },
1660 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1661 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1662 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1663 },
1664 },
1665 ],
1666 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1667 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1668 },
1669 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
1670 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1671 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1673 },
1674 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1675 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1676 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1677 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1678 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1679 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1680 },
1681 },
1682 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1683 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1684 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1685 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1686 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1687 },
1688 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1689 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1690 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1691 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1692 },
1693 },
1694 },
1695 },
1696 ],
1697 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
1698 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
1699 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
1700 { # Facts about the user as a key value pair.
1701 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
1702 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
1703 },
1704 ],
1705 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
1706 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
1707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1708 },
1709 },
1710 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
1711 &quot;A String&quot;,
1712 ],
1713 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
1714 }
1715
1716 evaluationId: string, Optional. The ID to use for the evaluation, which will become the final component of the evaluation&#x27;s resource name. If not provided, a unique ID will be automatically assigned for the evaluation.
1717 x__xgafv: string, V1 error format.
1718 Allowed values
1719 1 - v1 error format
1720 2 - v2 error format
1721
1722 Returns:
1723 An object of the form:
1724
1725 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
1726 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
1727 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
1728 { # Metrics aggregated per app version.
1729 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
1730 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
1731 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
1732 { # Metrics for hallucination results.
1733 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
1734 },
1735 ],
1736 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
1737 { # Metrics aggregated per turn.
1738 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
1739 { # Metrics for hallucination results.
1740 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
1741 },
1742 ],
1743 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
1744 { # Metrics for semantic similarity results.
1745 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
1746 },
1747 ],
1748 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
1749 { # Metrics for tool call latency.
1750 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
1751 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
1752 },
1753 ],
1754 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
1755 { # Metrics for a single tool.
1756 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
1757 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
1758 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
1759 },
1760 ],
1761 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
1762 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
1763 { # Metrics for turn latency.
1764 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
1765 },
1766 ],
1767 },
1768 ],
1769 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
1770 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
1771 { # Metrics for semantic similarity results.
1772 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
1773 },
1774 ],
1775 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
1776 { # Metrics for tool call latency.
1777 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
1778 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
1779 },
1780 ],
1781 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
1782 { # Metrics for a single tool.
1783 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
1784 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
1785 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
1786 },
1787 ],
1788 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
1789 { # Metrics for turn latency.
1790 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
1791 },
1792 ],
1793 },
1794 ],
1795 },
1796 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
1797 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
1798 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
1799 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
1800 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
1801 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
1802 &quot;A String&quot;,
1803 ],
1804 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
1805 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
1806 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
1807 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
1808 },
1809 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
1810 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
1811 },
1812 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
1813 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
1814 },
1815 },
1816 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
1817 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
1818 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
1819 },
1820 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
1821 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
1822 },
1823 },
1824 },
1825 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
1826 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
1827 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
1828 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
1829 },
1830 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
1831 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
1832 },
1833 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
1834 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
1835 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
1836 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
1837 },
1838 },
1839 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
1840 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
1841 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
1842 },
1843 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
1844 &quot;A String&quot;,
1845 ],
1846 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
1847 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
1848 &quot;A String&quot;,
1849 ],
1850 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
1851 { # A golden turn defines a single turn in a golden conversation.
1852 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
1853 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
1854 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
1855 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1856 },
1857 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
1858 # Object with schema name: Span
1859 ],
1860 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
1861 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
1862 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
1863 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
1864 },
1865 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
1866 { # A step defines a singular action to happen during the evaluation.
1867 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
1868 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1869 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1870 },
1871 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
1872 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
1873 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
1874 { # A chunk of content within a message.
1875 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
1876 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1877 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1878 },
1879 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
1880 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1881 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1882 },
1883 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
1884 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1885 },
1886 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
1887 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1888 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1889 },
1890 &quot;payload&quot;: { # Optional. Custom payload data.
1891 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1892 },
1893 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
1894 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
1895 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1896 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1897 },
1898 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1899 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1900 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1901 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1902 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1903 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1904 },
1905 },
1906 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
1907 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1908 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1909 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1910 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1911 },
1912 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1913 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1914 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1915 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1916 },
1917 },
1918 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
1919 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
1920 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1921 },
1922 },
1923 ],
1924 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
1925 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
1926 },
1927 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
1928 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
1929 },
1930 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
1931 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
1932 },
1933 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
1934 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
1935 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
1936 },
1937 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
1938 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
1939 },
1940 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
1941 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1942 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1943 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1945 },
1946 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1947 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1948 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1949 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1950 },
1951 },
1952 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
1953 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
1954 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
1955 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
1956 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1957 },
1958 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1959 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
1960 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1961 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
1962 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1963 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1964 },
1965 },
1966 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
1967 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
1968 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
1969 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
1970 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1971 },
1972 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
1973 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
1974 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
1975 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
1976 },
1977 },
1978 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
1979 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1980 },
1981 },
1982 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
1983 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
1984 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
1985 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
1986 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
1987 },
1988 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
1989 &quot;event&quot;: { # Event input. # Optional. Event input.
1990 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
1991 },
1992 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
1993 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
1994 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
1995 },
1996 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
1997 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
1998 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
1999 { # The execution result of a specific tool from the client or the agent.
2000 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2001 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2002 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2003 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2004 },
2005 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2006 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2007 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2008 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2009 },
2010 },
2011 ],
2012 },
2013 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
2014 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2015 },
2016 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
2017 },
2018 },
2019 ],
2020 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
2021 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
2022 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
2023 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
2024 },
2025 },
2026 ],
2027 },
2028 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
2029 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
2030 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
2031 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
2032 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
2033 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
2034 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
2035 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
2036 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
2037 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
2038 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
2039 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
2040 },
2041 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
2042 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
2043 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
2044 },
2045 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
2046 },
2047 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
2048 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
2049 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
2050 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2051 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2052 {
2053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2054 },
2055 ],
2056 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2057 },
2058 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
2059 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
2060 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
2061 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
2062 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
2063 },
2064 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
2065 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
2066 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
2067 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
2068 },
2069 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
2070 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
2071 },
2072 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
2073 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
2074 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
2075 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
2076 },
2077 },
2078 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
2079 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
2080 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
2081 },
2082 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
2083 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
2084 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
2085 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
2086 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
2087 { # The result of a single evaluation expectation.
2088 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
2089 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
2090 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
2091 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
2092 },
2093 ],
2094 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
2095 { # The result of running a single turn of the golden conversation.
2096 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
2097 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
2098 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
2099 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
2100 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
2101 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
2102 },
2103 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
2104 { # Specifies the expectation and the result of that expectation.
2105 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
2106 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
2107 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2108 { # A chunk of content within a message.
2109 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2110 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2111 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2112 },
2113 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2114 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2115 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2116 },
2117 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2118 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2119 },
2120 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2121 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2122 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2123 },
2124 &quot;payload&quot;: { # Optional. Custom payload data.
2125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2126 },
2127 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2128 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2129 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2130 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2131 },
2132 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2133 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2134 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2135 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2136 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2137 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2138 },
2139 },
2140 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2141 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2142 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2143 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2144 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2145 },
2146 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2147 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2148 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2149 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2150 },
2151 },
2152 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2153 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2155 },
2156 },
2157 ],
2158 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2159 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2160 },
2161 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
2162 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
2163 },
2164 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
2165 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
2166 },
2167 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
2168 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2169 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2170 },
2171 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
2172 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
2173 },
2174 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
2175 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2176 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2177 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2179 },
2180 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2181 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2182 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2183 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2184 },
2185 },
2186 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
2187 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
2188 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
2189 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2191 },
2192 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2193 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2194 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2195 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2196 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2197 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2198 },
2199 },
2200 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
2201 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2202 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2203 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2205 },
2206 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2207 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2208 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2209 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2210 },
2211 },
2212 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
2213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2214 },
2215 },
2216 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
2217 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2218 { # A chunk of content within a message.
2219 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2220 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2221 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2222 },
2223 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2224 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2225 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2226 },
2227 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2229 },
2230 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2231 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2232 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2233 },
2234 &quot;payload&quot;: { # Optional. Custom payload data.
2235 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2236 },
2237 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2238 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2239 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2240 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2241 },
2242 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2243 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2244 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2245 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2246 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2247 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2248 },
2249 },
2250 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2251 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2252 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2253 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2255 },
2256 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2257 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2258 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2259 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2260 },
2261 },
2262 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2263 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2265 },
2266 },
2267 ],
2268 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2269 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2270 },
2271 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
2272 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2273 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2274 },
2275 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
2276 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2277 },
2278 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
2279 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2281 },
2282 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2283 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2284 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2285 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2286 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2287 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2288 },
2289 },
2290 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
2291 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2292 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2293 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2295 },
2296 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2297 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2298 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2299 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2300 },
2301 },
2302 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
2303 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
2304 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
2305 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
2306 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2307 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
2308 },
2309 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
2310 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
2311 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2312 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
2313 },
2314 },
2315 ],
2316 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
2317 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
2318 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
2319 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
2320 },
2321 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
2322 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2323 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
2324 },
2325 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
2326 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
2327 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
2328 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2329 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
2330 },
2331 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
2332 { # The latency of a span execution.
2333 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
2334 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
2335 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
2336 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
2337 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
2338 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
2339 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
2340 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
2341 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2342 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2343 },
2344 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
2345 },
2346 ],
2347 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
2348 { # The latency of a tool call execution.
2349 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
2350 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
2351 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
2352 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
2353 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
2354 },
2355 ],
2356 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
2357 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
2358 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
2359 },
2360 ],
2361 },
2362 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
2363 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
2364 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
2365 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
2366 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
2367 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
2368 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
2369 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
2370 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
2371 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
2372 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
2373 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
2374 },
2375 },
2376 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
2377 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
2378 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
2379 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
2380 { # The result of a single evaluation expectation.
2381 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
2382 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
2383 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
2384 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
2385 },
2386 ],
2387 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
2388 { # The outcome of a scenario expectation.
2389 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
2390 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
2391 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2392 { # A chunk of content within a message.
2393 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2394 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2395 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2396 },
2397 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2398 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2399 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2400 },
2401 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2402 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2403 },
2404 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2405 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2406 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2407 },
2408 &quot;payload&quot;: { # Optional. Custom payload data.
2409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2410 },
2411 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2412 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2413 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2414 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2415 },
2416 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2417 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2418 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2419 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2420 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2421 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2422 },
2423 },
2424 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2425 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2426 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2427 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2428 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2429 },
2430 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2431 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2432 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2433 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2434 },
2435 },
2436 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2437 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2438 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2439 },
2440 },
2441 ],
2442 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2443 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2444 },
2445 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
2446 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
2447 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2448 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2449 },
2450 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2451 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2452 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2453 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2454 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2455 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2456 },
2457 },
2458 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
2459 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2460 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2461 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2462 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2463 },
2464 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2465 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2466 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2467 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2468 },
2469 },
2470 },
2471 },
2472 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
2473 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2474 { # A chunk of content within a message.
2475 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2476 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2477 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2478 },
2479 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2480 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2481 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2482 },
2483 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2484 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2485 },
2486 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2487 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2488 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2489 },
2490 &quot;payload&quot;: { # Optional. Custom payload data.
2491 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2492 },
2493 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2494 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2495 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2497 },
2498 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2499 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2500 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2501 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2502 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2503 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2504 },
2505 },
2506 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2507 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2508 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2509 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2510 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2511 },
2512 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2513 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2514 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2515 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2516 },
2517 },
2518 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2519 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2520 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2521 },
2522 },
2523 ],
2524 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2525 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2526 },
2527 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
2528 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
2529 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2531 },
2532 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2533 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2534 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2535 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2536 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2537 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2538 },
2539 },
2540 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
2541 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2542 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2543 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2544 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2545 },
2546 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2547 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2548 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2549 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2550 },
2551 },
2552 },
2553 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
2554 },
2555 ],
2556 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
2557 { # The result of the hallucination check for a single turn.
2558 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
2559 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
2560 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
2561 },
2562 ],
2563 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
2564 { # The outcome of the evaluation against the rubric.
2565 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
2566 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
2567 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
2568 },
2569 ],
2570 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
2571 { # The latency of a span execution.
2572 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
2573 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
2574 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
2575 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
2576 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
2577 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
2578 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
2579 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
2580 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2581 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2582 },
2583 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
2584 },
2585 ],
2586 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
2587 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
2588 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
2589 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
2590 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
2591 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
2592 },
2593 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
2594 { # The latency of a tool call execution.
2595 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
2596 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
2597 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
2598 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
2599 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
2600 },
2601 ],
2602 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
2603 { # Facts about the user as a key value pair.
2604 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
2605 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
2606 },
2607 ],
2608 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
2609 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
2610 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
2611 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
2612 },
2613 },
2614 },
2615 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
2616 { # An evaluation result represents the output of running an Evaluation.
2617 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
2618 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
2619 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
2620 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
2621 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
2622 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
2623 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
2624 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
2625 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
2626 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
2627 },
2628 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
2629 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
2630 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
2631 },
2632 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
2633 },
2634 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
2635 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
2636 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
2637 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2638 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2639 {
2640 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2641 },
2642 ],
2643 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2644 },
2645 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
2646 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
2647 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
2648 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
2649 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
2650 },
2651 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
2652 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
2653 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
2654 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
2655 },
2656 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
2657 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
2658 },
2659 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
2660 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
2661 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
2662 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
2663 },
2664 },
2665 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
2666 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
2667 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
2668 },
2669 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
2670 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
2671 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
2672 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
2673 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
2674 { # The result of a single evaluation expectation.
2675 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
2676 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
2677 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
2678 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
2679 },
2680 ],
2681 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
2682 { # The result of running a single turn of the golden conversation.
2683 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
2684 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
2685 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
2686 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
2687 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
2688 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
2689 },
2690 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
2691 { # Specifies the expectation and the result of that expectation.
2692 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
2693 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
2694 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2695 { # A chunk of content within a message.
2696 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2697 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2698 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2699 },
2700 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2701 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2702 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2703 },
2704 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2705 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2706 },
2707 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2708 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2709 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2710 },
2711 &quot;payload&quot;: { # Optional. Custom payload data.
2712 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2713 },
2714 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2715 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2716 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2717 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2718 },
2719 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2720 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2721 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2722 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2723 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2724 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2725 },
2726 },
2727 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2728 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2729 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2730 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2731 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2732 },
2733 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2734 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2735 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2736 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2737 },
2738 },
2739 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2740 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2742 },
2743 },
2744 ],
2745 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2746 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2747 },
2748 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
2749 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
2750 },
2751 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
2752 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
2753 },
2754 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
2755 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2756 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2757 },
2758 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
2759 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
2760 },
2761 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
2762 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2763 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2764 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2765 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2766 },
2767 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2768 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2769 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2770 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2771 },
2772 },
2773 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
2774 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
2775 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
2776 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2778 },
2779 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2780 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2781 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2782 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2783 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2784 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2785 },
2786 },
2787 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
2788 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2789 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2790 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2791 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2792 },
2793 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2794 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2795 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2796 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2797 },
2798 },
2799 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
2800 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2801 },
2802 },
2803 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
2804 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2805 { # A chunk of content within a message.
2806 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2807 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2808 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2809 },
2810 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2811 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2812 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2813 },
2814 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2815 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2816 },
2817 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2818 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2819 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2820 },
2821 &quot;payload&quot;: { # Optional. Custom payload data.
2822 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2823 },
2824 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2825 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
2826 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2827 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2828 },
2829 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2830 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2831 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2832 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2833 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2834 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2835 },
2836 },
2837 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
2838 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2839 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2840 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2841 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2842 },
2843 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2844 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2845 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2846 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2847 },
2848 },
2849 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
2850 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
2851 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2852 },
2853 },
2854 ],
2855 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
2856 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
2857 },
2858 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
2859 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2860 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2861 },
2862 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
2863 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2864 },
2865 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
2866 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
2867 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2868 },
2869 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2870 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
2871 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2872 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
2873 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2874 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2875 },
2876 },
2877 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
2878 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
2879 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
2880 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
2881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2882 },
2883 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
2884 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
2885 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2886 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2887 },
2888 },
2889 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
2890 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
2891 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
2892 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
2893 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2894 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
2895 },
2896 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
2897 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
2898 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2899 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
2900 },
2901 },
2902 ],
2903 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
2904 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
2905 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
2906 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
2907 },
2908 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
2909 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2910 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
2911 },
2912 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
2913 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
2914 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
2915 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
2916 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
2917 },
2918 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
2919 { # The latency of a span execution.
2920 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
2921 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
2922 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
2923 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
2924 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
2925 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
2926 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
2927 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
2928 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
2929 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
2930 },
2931 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
2932 },
2933 ],
2934 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
2935 { # The latency of a tool call execution.
2936 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
2937 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
2938 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
2939 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
2940 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
2941 },
2942 ],
2943 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
2944 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
2945 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
2946 },
2947 ],
2948 },
2949 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
2950 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
2951 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
2952 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
2953 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
2954 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
2955 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
2956 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
2957 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
2958 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
2959 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
2960 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
2961 },
2962 },
2963 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
2964 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
2965 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
2966 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
2967 { # The result of a single evaluation expectation.
2968 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
2969 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
2970 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
2971 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
2972 },
2973 ],
2974 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
2975 { # The outcome of a scenario expectation.
2976 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
2977 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
2978 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
2979 { # A chunk of content within a message.
2980 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
2981 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
2982 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
2983 },
2984 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
2985 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
2986 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2987 },
2988 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
2989 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2990 },
2991 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
2992 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
2993 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
2994 },
2995 &quot;payload&quot;: { # Optional. Custom payload data.
2996 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2997 },
2998 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
2999 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3000 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3001 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3002 },
3003 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3004 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3005 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3006 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3007 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3008 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3009 },
3010 },
3011 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3012 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3013 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3014 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3015 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3016 },
3017 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3018 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3019 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3020 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3021 },
3022 },
3023 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3024 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3025 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3026 },
3027 },
3028 ],
3029 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3030 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3031 },
3032 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
3033 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3034 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3035 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3036 },
3037 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3038 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3039 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3040 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3041 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3042 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3043 },
3044 },
3045 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3046 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3047 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3048 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3049 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3050 },
3051 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3052 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3053 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3054 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3055 },
3056 },
3057 },
3058 },
3059 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
3060 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
3061 { # A chunk of content within a message.
3062 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
3063 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3064 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3065 },
3066 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
3067 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3068 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3069 },
3070 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
3071 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3072 },
3073 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
3074 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3075 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3076 },
3077 &quot;payload&quot;: { # Optional. Custom payload data.
3078 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3079 },
3080 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
3081 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3082 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3084 },
3085 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3086 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3087 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3088 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3089 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3090 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3091 },
3092 },
3093 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3094 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3095 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3096 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3097 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3098 },
3099 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3100 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3101 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3102 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3103 },
3104 },
3105 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3106 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3107 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3108 },
3109 },
3110 ],
3111 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3112 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3113 },
3114 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
3115 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
3116 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3117 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3118 },
3119 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3120 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3121 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3122 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3123 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3124 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3125 },
3126 },
3127 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
3128 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3129 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3130 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3131 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3132 },
3133 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3134 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3135 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3136 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3137 },
3138 },
3139 },
3140 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
3141 },
3142 ],
3143 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
3144 { # The result of the hallucination check for a single turn.
3145 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
3146 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
3147 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
3148 },
3149 ],
3150 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
3151 { # The outcome of the evaluation against the rubric.
3152 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
3153 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
3154 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
3155 },
3156 ],
3157 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
3158 { # The latency of a span execution.
3159 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
3160 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
3161 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
3162 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
3163 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
3164 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
3165 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
3166 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
3167 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3168 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3169 },
3170 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
3171 },
3172 ],
3173 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
3174 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
3175 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
3176 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
3177 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
3178 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
3179 },
3180 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
3181 { # The latency of a tool call execution.
3182 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
3183 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
3184 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
3185 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
3186 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
3187 },
3188 ],
3189 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
3190 { # Facts about the user as a key value pair.
3191 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
3192 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
3193 },
3194 ],
3195 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
3196 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
3197 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
3198 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
3199 },
3200 },
3201 },
3202 ],
3203 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
3204 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
3205 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
3206 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
3207 &quot;A String&quot;,
3208 ],
3209 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
3210 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
3211 &quot;A String&quot;,
3212 ],
3213 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
3214 { # The expectation to evaluate the conversation produced by the simulation.
3215 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
3216 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
3217 { # A chunk of content within a message.
3218 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
3219 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3220 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3221 },
3222 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
3223 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3224 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3225 },
3226 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
3227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3228 },
3229 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
3230 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3231 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3232 },
3233 &quot;payload&quot;: { # Optional. Custom payload data.
3234 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3235 },
3236 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
3237 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3238 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3240 },
3241 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3242 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3243 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3244 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3245 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3246 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3247 },
3248 },
3249 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3250 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3251 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3252 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3253 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3254 },
3255 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3256 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3257 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3258 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3259 },
3260 },
3261 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3262 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3264 },
3265 },
3266 ],
3267 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3268 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3269 },
3270 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
3271 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3272 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3274 },
3275 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3276 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3277 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3278 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3279 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3280 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3281 },
3282 },
3283 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3284 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3285 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3286 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3288 },
3289 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3290 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3291 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3292 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3293 },
3294 },
3295 },
3296 },
3297 ],
3298 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
3299 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
3300 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
3301 { # Facts about the user as a key value pair.
3302 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
3303 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
3304 },
3305 ],
3306 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
3307 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
3308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3309 },
3310 },
3311 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
3312 &quot;A String&quot;,
3313 ],
3314 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
3315 }</pre>
3316 </div>
3317
3318 <div class="method">
3319 <code class="details" id="delete">delete(name, etag=None, force=None, x__xgafv=None)</code>
3320 <pre>Deletes an evaluation.
3321
3322 Args:
3323 name: string, Required. The resource name of the evaluation to delete. (required)
3324 etag: string, Optional. The current etag of the evaluation. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the evaluation, deletion will be blocked and an ABORTED error will be returned.
3325 force: boolean, Optional. Indicates whether to forcefully delete the evaluation, even if it is still referenced by evaluation datasets. * If `force = false`, the deletion will fail if any datasets still reference the evaluation. * If `force = true`, all existing references from datasets will be removed and the evaluation will be deleted.
3326 x__xgafv: string, V1 error format.
3327 Allowed values
3328 1 - v1 error format
3329 2 - v2 error format
3330
3331 Returns:
3332 An object of the form:
3333
3334 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
3335 }</pre>
3336 </div>
3337
3338 <div class="method">
3339 <code class="details" id="export">export(parent, body=None, x__xgafv=None)</code>
3340 <pre>Exports evaluations.
3341
3342 Args:
3343 parent: string, Required. The resource name of the app to export evaluations from. Format: `projects/{project}/locations/{location}/apps/{app}` (required)
3344 body: object, The request body.
3345 The object takes the form of:
3346
3347 { # Request message for EvaluationService.ExportEvaluations.
3348 &quot;exportOptions&quot;: { # Options for exporting CES evaluation resources. # Optional. The export options for the evaluations.
3349 &quot;exportFormat&quot;: &quot;A String&quot;, # Optional. The format to export the evaluation results in. Defaults to JSON if not specified.
3350 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to write the exported Evaluation Results to.
3351 },
3352 &quot;includeEvaluationResults&quot;: True or False, # Optional. Includes evaluation results in the export. At least one of include_evaluation_results or include_evaluations must be set.
3353 &quot;includeEvaluations&quot;: True or False, # Optional. Includes evaluations in the export. At least one of include_evaluation_results or include_evaluations must be set.
3354 &quot;names&quot;: [ # Required. The resource names of the evaluations to export.
3355 &quot;A String&quot;,
3356 ],
3357 }
3358
3359 x__xgafv: string, V1 error format.
3360 Allowed values
3361 1 - v1 error format
3362 2 - v2 error format
3363
3364 Returns:
3365 An object of the form:
3366
3367 { # This resource represents a long-running operation that is the result of a network API call.
3368 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
3369 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
3370 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3371 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3372 {
3373 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3374 },
3375 ],
3376 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
3377 },
3378 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
3379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3380 },
3381 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
3382 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
3383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3384 },
3385 }</pre>
3386 </div>
3387
3388 <div class="method">
3389 <code class="details" id="get">get(name, x__xgafv=None)</code>
3390 <pre>Gets details of the specified evaluation.
3391
3392 Args:
3393 name: string, Required. The resource name of the evaluation to retrieve. (required)
3394 x__xgafv: string, V1 error format.
3395 Allowed values
3396 1 - v1 error format
3397 2 - v2 error format
3398
3399 Returns:
3400 An object of the form:
3401
3402 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
3403 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
3404 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
3405 { # Metrics aggregated per app version.
3406 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
3407 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
3408 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
3409 { # Metrics for hallucination results.
3410 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
3411 },
3412 ],
3413 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
3414 { # Metrics aggregated per turn.
3415 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
3416 { # Metrics for hallucination results.
3417 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
3418 },
3419 ],
3420 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
3421 { # Metrics for semantic similarity results.
3422 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
3423 },
3424 ],
3425 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
3426 { # Metrics for tool call latency.
3427 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
3428 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
3429 },
3430 ],
3431 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
3432 { # Metrics for a single tool.
3433 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
3434 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
3435 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
3436 },
3437 ],
3438 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
3439 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
3440 { # Metrics for turn latency.
3441 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
3442 },
3443 ],
3444 },
3445 ],
3446 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
3447 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
3448 { # Metrics for semantic similarity results.
3449 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
3450 },
3451 ],
3452 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
3453 { # Metrics for tool call latency.
3454 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
3455 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
3456 },
3457 ],
3458 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
3459 { # Metrics for a single tool.
3460 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
3461 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
3462 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
3463 },
3464 ],
3465 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
3466 { # Metrics for turn latency.
3467 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
3468 },
3469 ],
3470 },
3471 ],
3472 },
3473 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
3474 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
3475 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
3476 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
3477 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
3478 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
3479 &quot;A String&quot;,
3480 ],
3481 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
3482 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
3483 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
3484 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
3485 },
3486 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
3487 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
3488 },
3489 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
3490 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
3491 },
3492 },
3493 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
3494 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
3495 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
3496 },
3497 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
3498 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
3499 },
3500 },
3501 },
3502 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
3503 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
3504 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
3505 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
3506 },
3507 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
3508 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
3509 },
3510 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
3511 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
3512 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
3513 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
3514 },
3515 },
3516 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
3517 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
3518 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
3519 },
3520 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
3521 &quot;A String&quot;,
3522 ],
3523 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
3524 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
3525 &quot;A String&quot;,
3526 ],
3527 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
3528 { # A golden turn defines a single turn in a golden conversation.
3529 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
3530 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
3531 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
3532 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3533 },
3534 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
3535 # Object with schema name: Span
3536 ],
3537 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
3538 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
3539 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
3540 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
3541 },
3542 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
3543 { # A step defines a singular action to happen during the evaluation.
3544 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
3545 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3546 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3547 },
3548 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
3549 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
3550 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
3551 { # A chunk of content within a message.
3552 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
3553 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3554 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3555 },
3556 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
3557 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3558 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3559 },
3560 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
3561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3562 },
3563 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
3564 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3565 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3566 },
3567 &quot;payload&quot;: { # Optional. Custom payload data.
3568 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3569 },
3570 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
3571 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3572 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3573 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3574 },
3575 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3576 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3577 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3578 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3579 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3580 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3581 },
3582 },
3583 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3584 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3585 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3586 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3587 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3588 },
3589 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3590 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3591 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3592 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3593 },
3594 },
3595 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3596 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3597 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3598 },
3599 },
3600 ],
3601 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3602 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3603 },
3604 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
3605 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
3606 },
3607 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
3608 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
3609 },
3610 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
3611 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3612 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3613 },
3614 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
3615 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
3616 },
3617 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3618 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3619 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3620 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3621 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3622 },
3623 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3624 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3625 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3626 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3627 },
3628 },
3629 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
3630 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
3631 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
3632 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3633 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3634 },
3635 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3636 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3637 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3638 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3639 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3640 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3641 },
3642 },
3643 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
3644 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3645 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3646 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3648 },
3649 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3650 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3651 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3652 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3653 },
3654 },
3655 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
3656 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3657 },
3658 },
3659 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
3660 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
3661 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
3662 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3663 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3664 },
3665 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
3666 &quot;event&quot;: { # Event input. # Optional. Event input.
3667 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
3668 },
3669 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
3670 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3671 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3672 },
3673 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
3674 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
3675 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
3676 { # The execution result of a specific tool from the client or the agent.
3677 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3678 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3679 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3680 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3681 },
3682 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3683 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3684 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3685 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3686 },
3687 },
3688 ],
3689 },
3690 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
3691 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3692 },
3693 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
3694 },
3695 },
3696 ],
3697 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
3698 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
3699 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
3700 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
3701 },
3702 },
3703 ],
3704 },
3705 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
3706 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
3707 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
3708 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
3709 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
3710 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
3711 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
3712 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
3713 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
3714 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
3715 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
3716 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
3717 },
3718 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
3719 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
3720 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
3721 },
3722 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
3723 },
3724 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
3725 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
3726 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
3727 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3728 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3729 {
3730 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3731 },
3732 ],
3733 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
3734 },
3735 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
3736 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
3737 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
3738 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
3739 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
3740 },
3741 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
3742 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
3743 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
3744 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
3745 },
3746 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
3747 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
3748 },
3749 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
3750 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
3751 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
3752 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
3753 },
3754 },
3755 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
3756 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
3757 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
3758 },
3759 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
3760 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
3761 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
3762 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
3763 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
3764 { # The result of a single evaluation expectation.
3765 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
3766 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
3767 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
3768 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
3769 },
3770 ],
3771 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
3772 { # The result of running a single turn of the golden conversation.
3773 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
3774 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
3775 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
3776 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
3777 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
3778 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
3779 },
3780 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
3781 { # Specifies the expectation and the result of that expectation.
3782 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
3783 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
3784 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
3785 { # A chunk of content within a message.
3786 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
3787 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3788 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3789 },
3790 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
3791 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3792 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3793 },
3794 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
3795 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3796 },
3797 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
3798 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3799 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3800 },
3801 &quot;payload&quot;: { # Optional. Custom payload data.
3802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3803 },
3804 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
3805 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3806 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3807 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3808 },
3809 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3810 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3811 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3812 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3813 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3814 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3815 },
3816 },
3817 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3818 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3819 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3820 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3821 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3822 },
3823 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3824 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3825 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3826 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3827 },
3828 },
3829 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3830 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3831 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3832 },
3833 },
3834 ],
3835 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3836 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3837 },
3838 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
3839 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
3840 },
3841 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
3842 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
3843 },
3844 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
3845 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3846 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3847 },
3848 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
3849 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
3850 },
3851 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
3852 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3853 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3854 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3855 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3856 },
3857 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3858 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3859 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3860 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3861 },
3862 },
3863 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
3864 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
3865 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
3866 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3867 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3868 },
3869 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3870 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3871 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3872 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3873 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3874 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3875 },
3876 },
3877 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
3878 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3879 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3880 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3882 },
3883 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3884 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3885 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3886 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3887 },
3888 },
3889 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
3890 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3891 },
3892 },
3893 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
3894 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
3895 { # A chunk of content within a message.
3896 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
3897 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3898 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3899 },
3900 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
3901 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
3902 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3903 },
3904 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
3905 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3906 },
3907 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
3908 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
3909 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
3910 },
3911 &quot;payload&quot;: { # Optional. Custom payload data.
3912 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3913 },
3914 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
3915 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
3916 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3917 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3918 },
3919 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3920 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3921 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3922 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3923 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3924 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3925 },
3926 },
3927 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
3928 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3929 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3930 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3932 },
3933 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3934 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3935 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3936 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3937 },
3938 },
3939 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
3940 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
3941 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3942 },
3943 },
3944 ],
3945 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
3946 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
3947 },
3948 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
3949 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
3950 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
3951 },
3952 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
3953 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3954 },
3955 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
3956 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
3957 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3958 },
3959 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3960 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
3961 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3962 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
3963 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3964 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3965 },
3966 },
3967 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
3968 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
3969 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
3970 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
3971 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3972 },
3973 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
3974 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
3975 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
3976 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
3977 },
3978 },
3979 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
3980 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
3981 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
3982 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
3983 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
3984 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
3985 },
3986 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
3987 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
3988 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
3989 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
3990 },
3991 },
3992 ],
3993 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
3994 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
3995 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
3996 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
3997 },
3998 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
3999 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4000 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
4001 },
4002 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
4003 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
4004 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
4005 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4006 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
4007 },
4008 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
4009 { # The latency of a span execution.
4010 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
4011 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
4012 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
4013 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
4014 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
4015 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
4016 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
4017 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
4018 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4019 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4020 },
4021 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
4022 },
4023 ],
4024 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
4025 { # The latency of a tool call execution.
4026 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
4027 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
4028 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
4029 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
4030 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
4031 },
4032 ],
4033 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
4034 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
4035 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
4036 },
4037 ],
4038 },
4039 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
4040 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
4041 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
4042 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
4043 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
4044 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
4045 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
4046 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
4047 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
4048 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
4049 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
4050 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
4051 },
4052 },
4053 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
4054 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
4055 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
4056 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
4057 { # The result of a single evaluation expectation.
4058 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
4059 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
4060 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
4061 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
4062 },
4063 ],
4064 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
4065 { # The outcome of a scenario expectation.
4066 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
4067 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
4068 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4069 { # A chunk of content within a message.
4070 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4071 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4072 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4073 },
4074 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4075 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4076 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4077 },
4078 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4079 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4080 },
4081 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4082 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4083 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4084 },
4085 &quot;payload&quot;: { # Optional. Custom payload data.
4086 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4087 },
4088 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4089 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4090 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4091 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4092 },
4093 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4094 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4095 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4096 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4097 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4098 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4099 },
4100 },
4101 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4102 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4103 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4104 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4105 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4106 },
4107 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4108 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4109 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4110 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4111 },
4112 },
4113 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4114 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4115 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4116 },
4117 },
4118 ],
4119 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4120 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4121 },
4122 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
4123 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4124 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4126 },
4127 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4128 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4129 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4130 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4131 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4132 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4133 },
4134 },
4135 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4136 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4137 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4138 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4139 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4140 },
4141 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4142 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4143 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4144 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4145 },
4146 },
4147 },
4148 },
4149 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
4150 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4151 { # A chunk of content within a message.
4152 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4153 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4154 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4155 },
4156 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4157 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4158 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4159 },
4160 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4161 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4162 },
4163 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4164 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4165 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4166 },
4167 &quot;payload&quot;: { # Optional. Custom payload data.
4168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4169 },
4170 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4171 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4172 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4174 },
4175 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4176 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4177 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4178 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4179 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4180 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4181 },
4182 },
4183 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4184 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4185 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4186 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4188 },
4189 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4190 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4191 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4192 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4193 },
4194 },
4195 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4196 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4198 },
4199 },
4200 ],
4201 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4202 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4203 },
4204 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
4205 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
4206 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4208 },
4209 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4210 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4211 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4212 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4213 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4214 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4215 },
4216 },
4217 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
4218 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4219 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4220 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4222 },
4223 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4224 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4225 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4226 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4227 },
4228 },
4229 },
4230 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
4231 },
4232 ],
4233 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
4234 { # The result of the hallucination check for a single turn.
4235 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
4236 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
4237 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
4238 },
4239 ],
4240 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
4241 { # The outcome of the evaluation against the rubric.
4242 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
4243 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
4244 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
4245 },
4246 ],
4247 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
4248 { # The latency of a span execution.
4249 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
4250 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
4251 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
4252 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
4253 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
4254 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
4255 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
4256 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
4257 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4258 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4259 },
4260 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
4261 },
4262 ],
4263 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
4264 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
4265 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
4266 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
4267 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
4268 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
4269 },
4270 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
4271 { # The latency of a tool call execution.
4272 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
4273 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
4274 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
4275 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
4276 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
4277 },
4278 ],
4279 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
4280 { # Facts about the user as a key value pair.
4281 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
4282 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
4283 },
4284 ],
4285 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
4286 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
4287 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
4288 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
4289 },
4290 },
4291 },
4292 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
4293 { # An evaluation result represents the output of running an Evaluation.
4294 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
4295 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
4296 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
4297 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
4298 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
4299 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
4300 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
4301 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
4302 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
4303 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
4304 },
4305 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
4306 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
4307 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
4308 },
4309 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
4310 },
4311 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
4312 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
4313 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
4314 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4315 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
4316 {
4317 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4318 },
4319 ],
4320 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
4321 },
4322 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
4323 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
4324 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
4325 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
4326 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
4327 },
4328 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
4329 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
4330 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
4331 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
4332 },
4333 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
4334 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
4335 },
4336 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
4337 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
4338 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
4339 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
4340 },
4341 },
4342 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
4343 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
4344 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
4345 },
4346 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
4347 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
4348 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
4349 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
4350 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
4351 { # The result of a single evaluation expectation.
4352 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
4353 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
4354 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
4355 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
4356 },
4357 ],
4358 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
4359 { # The result of running a single turn of the golden conversation.
4360 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
4361 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
4362 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
4363 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
4364 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
4365 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
4366 },
4367 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
4368 { # Specifies the expectation and the result of that expectation.
4369 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
4370 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
4371 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4372 { # A chunk of content within a message.
4373 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4374 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4375 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4376 },
4377 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4378 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4379 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4380 },
4381 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4382 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4383 },
4384 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4385 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4386 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4387 },
4388 &quot;payload&quot;: { # Optional. Custom payload data.
4389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4390 },
4391 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4392 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4393 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4395 },
4396 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4397 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4398 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4399 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4400 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4401 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4402 },
4403 },
4404 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4405 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4406 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4407 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4408 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4409 },
4410 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4411 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4412 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4413 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4414 },
4415 },
4416 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4417 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4418 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4419 },
4420 },
4421 ],
4422 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4423 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4424 },
4425 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
4426 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
4427 },
4428 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
4429 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
4430 },
4431 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
4432 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4433 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4434 },
4435 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
4436 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
4437 },
4438 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4439 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4440 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4441 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4442 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4443 },
4444 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4445 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4446 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4447 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4448 },
4449 },
4450 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
4451 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
4452 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
4453 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4454 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4455 },
4456 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4457 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4458 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4459 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4460 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4461 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4462 },
4463 },
4464 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
4465 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4466 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4467 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4469 },
4470 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4471 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4472 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4473 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4474 },
4475 },
4476 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
4477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4478 },
4479 },
4480 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
4481 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4482 { # A chunk of content within a message.
4483 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4484 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4485 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4486 },
4487 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4488 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4489 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4490 },
4491 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4493 },
4494 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4495 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4496 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4497 },
4498 &quot;payload&quot;: { # Optional. Custom payload data.
4499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4500 },
4501 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4502 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4503 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4504 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4505 },
4506 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4507 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4508 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4509 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4510 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4511 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4512 },
4513 },
4514 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4515 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4516 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4517 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4518 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4519 },
4520 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4521 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4522 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4523 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4524 },
4525 },
4526 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4527 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4529 },
4530 },
4531 ],
4532 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4533 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4534 },
4535 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
4536 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4537 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4538 },
4539 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
4540 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4541 },
4542 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
4543 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4544 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4545 },
4546 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4547 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4548 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4549 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4550 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4551 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4552 },
4553 },
4554 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
4555 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4556 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4557 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4558 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4559 },
4560 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4561 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4562 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4563 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4564 },
4565 },
4566 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
4567 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
4568 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
4569 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
4570 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4571 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
4572 },
4573 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
4574 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
4575 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4576 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
4577 },
4578 },
4579 ],
4580 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
4581 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
4582 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
4583 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
4584 },
4585 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
4586 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4587 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
4588 },
4589 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
4590 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
4591 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
4592 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
4593 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
4594 },
4595 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
4596 { # The latency of a span execution.
4597 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
4598 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
4599 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
4600 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
4601 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
4602 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
4603 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
4604 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
4605 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4606 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4607 },
4608 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
4609 },
4610 ],
4611 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
4612 { # The latency of a tool call execution.
4613 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
4614 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
4615 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
4616 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
4617 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
4618 },
4619 ],
4620 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
4621 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
4622 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
4623 },
4624 ],
4625 },
4626 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
4627 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
4628 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
4629 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
4630 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
4631 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
4632 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
4633 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
4634 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
4635 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
4636 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
4637 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
4638 },
4639 },
4640 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
4641 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
4642 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
4643 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
4644 { # The result of a single evaluation expectation.
4645 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
4646 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
4647 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
4648 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
4649 },
4650 ],
4651 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
4652 { # The outcome of a scenario expectation.
4653 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
4654 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
4655 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4656 { # A chunk of content within a message.
4657 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4658 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4659 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4660 },
4661 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4662 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4663 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4664 },
4665 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4667 },
4668 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4669 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4670 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4671 },
4672 &quot;payload&quot;: { # Optional. Custom payload data.
4673 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4674 },
4675 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4676 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4677 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4678 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4679 },
4680 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4681 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4682 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4683 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4684 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4685 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4686 },
4687 },
4688 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4689 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4690 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4691 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4692 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4693 },
4694 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4695 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4696 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4697 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4698 },
4699 },
4700 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4701 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4702 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4703 },
4704 },
4705 ],
4706 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4707 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4708 },
4709 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
4710 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4711 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4712 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4713 },
4714 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4715 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4716 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4717 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4718 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4719 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4720 },
4721 },
4722 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4723 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4724 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4725 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4726 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4727 },
4728 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4729 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4730 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4731 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4732 },
4733 },
4734 },
4735 },
4736 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
4737 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4738 { # A chunk of content within a message.
4739 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4740 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4741 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4742 },
4743 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4744 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4745 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4746 },
4747 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4748 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4749 },
4750 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4751 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4752 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4753 },
4754 &quot;payload&quot;: { # Optional. Custom payload data.
4755 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4756 },
4757 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4758 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4759 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4760 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4761 },
4762 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4763 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4764 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4765 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4766 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4767 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4768 },
4769 },
4770 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4771 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4772 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4773 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4774 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4775 },
4776 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4777 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4778 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4779 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4780 },
4781 },
4782 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4783 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4784 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4785 },
4786 },
4787 ],
4788 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4789 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4790 },
4791 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
4792 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
4793 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4794 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4795 },
4796 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4797 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4798 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4799 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4800 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4801 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4802 },
4803 },
4804 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
4805 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4806 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4807 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4808 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4809 },
4810 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4811 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4812 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4813 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4814 },
4815 },
4816 },
4817 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
4818 },
4819 ],
4820 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
4821 { # The result of the hallucination check for a single turn.
4822 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
4823 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
4824 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
4825 },
4826 ],
4827 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
4828 { # The outcome of the evaluation against the rubric.
4829 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
4830 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
4831 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
4832 },
4833 ],
4834 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
4835 { # The latency of a span execution.
4836 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
4837 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
4838 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
4839 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
4840 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
4841 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
4842 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
4843 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
4844 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4845 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4846 },
4847 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
4848 },
4849 ],
4850 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
4851 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
4852 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
4853 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
4854 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
4855 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
4856 },
4857 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
4858 { # The latency of a tool call execution.
4859 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
4860 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
4861 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
4862 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
4863 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
4864 },
4865 ],
4866 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
4867 { # Facts about the user as a key value pair.
4868 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
4869 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
4870 },
4871 ],
4872 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
4873 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
4874 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
4875 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
4876 },
4877 },
4878 },
4879 ],
4880 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
4881 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
4882 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
4883 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
4884 &quot;A String&quot;,
4885 ],
4886 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
4887 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
4888 &quot;A String&quot;,
4889 ],
4890 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
4891 { # The expectation to evaluate the conversation produced by the simulation.
4892 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
4893 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
4894 { # A chunk of content within a message.
4895 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
4896 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
4897 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
4898 },
4899 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
4900 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
4901 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
4902 },
4903 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
4904 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4905 },
4906 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
4907 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
4908 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
4909 },
4910 &quot;payload&quot;: { # Optional. Custom payload data.
4911 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4912 },
4913 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
4914 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
4915 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4916 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4917 },
4918 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4919 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4920 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4921 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4922 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4923 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4924 },
4925 },
4926 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
4927 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4928 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4929 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4930 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4931 },
4932 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4933 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4934 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4935 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4936 },
4937 },
4938 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
4939 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
4940 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4941 },
4942 },
4943 ],
4944 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
4945 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
4946 },
4947 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
4948 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4949 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
4950 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4951 },
4952 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4953 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
4954 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4955 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
4956 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4957 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4958 },
4959 },
4960 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
4961 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
4962 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
4963 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
4964 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4965 },
4966 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
4967 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
4968 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
4969 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
4970 },
4971 },
4972 },
4973 },
4974 ],
4975 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
4976 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
4977 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
4978 { # Facts about the user as a key value pair.
4979 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
4980 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
4981 },
4982 ],
4983 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
4984 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
4985 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4986 },
4987 },
4988 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
4989 &quot;A String&quot;,
4990 ],
4991 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
4992 }</pre>
4993 </div>
4994
4995 <div class="method">
4996 <code class="details" id="list">list(parent, evaluationFilter=None, evaluationRunFilter=None, filter=None, lastTenResults=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
4997 <pre>Lists all evaluations in the given app.
4998
4999 Args:
5000 parent: string, Required. The resource name of the app to list evaluations from. (required)
5001 evaluationFilter: string, Optional. Filter to be applied on the evaluation when listing the evaluations. See https://google.aip.dev/160 for more details. Supported fields: evaluation_datasets
5002 evaluationRunFilter: string, Optional. Filter string for fields on the associated EvaluationRun resources. See https://google.aip.dev/160 for more details. Supported fields: create_time, initiated_by, app_version_display_name
5003 filter: string, Optional. Deprecated: Use evaluation_filter and evaluation_run_filter instead.
5004 lastTenResults: boolean, Optional. Whether to include the last 10 evaluation results for each evaluation in the response.
5005 orderBy: string, Optional. Field to sort by. Only &quot;name&quot; and &quot;create_time&quot;, and &quot;update_time&quot; are supported. Time fields are ordered in descending order, and the name field is ordered in ascending order. If not included, &quot;update_time&quot; will be the default. See https://google.aip.dev/132#ordering for more details.
5006 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
5007 pageToken: string, Optional. The next_page_token value returned from a previous list EvaluationService.ListEvaluations call.
5008 x__xgafv: string, V1 error format.
5009 Allowed values
5010 1 - v1 error format
5011 2 - v2 error format
5012
5013 Returns:
5014 An object of the form:
5015
5016 { # Response message for EvaluationService.ListEvaluations.
5017 &quot;evaluations&quot;: [ # The list of evaluations.
5018 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
5019 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
5020 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
5021 { # Metrics aggregated per app version.
5022 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
5023 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
5024 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
5025 { # Metrics for hallucination results.
5026 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
5027 },
5028 ],
5029 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
5030 { # Metrics aggregated per turn.
5031 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
5032 { # Metrics for hallucination results.
5033 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
5034 },
5035 ],
5036 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
5037 { # Metrics for semantic similarity results.
5038 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
5039 },
5040 ],
5041 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
5042 { # Metrics for tool call latency.
5043 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
5044 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
5045 },
5046 ],
5047 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
5048 { # Metrics for a single tool.
5049 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
5050 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
5051 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
5052 },
5053 ],
5054 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
5055 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
5056 { # Metrics for turn latency.
5057 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
5058 },
5059 ],
5060 },
5061 ],
5062 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
5063 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
5064 { # Metrics for semantic similarity results.
5065 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
5066 },
5067 ],
5068 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
5069 { # Metrics for tool call latency.
5070 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
5071 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
5072 },
5073 ],
5074 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
5075 { # Metrics for a single tool.
5076 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
5077 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
5078 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
5079 },
5080 ],
5081 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
5082 { # Metrics for turn latency.
5083 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
5084 },
5085 ],
5086 },
5087 ],
5088 },
5089 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
5090 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
5091 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
5092 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
5093 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
5094 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
5095 &quot;A String&quot;,
5096 ],
5097 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
5098 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
5099 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
5100 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
5101 },
5102 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
5103 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
5104 },
5105 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
5106 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
5107 },
5108 },
5109 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
5110 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
5111 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
5112 },
5113 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
5114 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
5115 },
5116 },
5117 },
5118 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
5119 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
5120 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
5121 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
5122 },
5123 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
5124 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
5125 },
5126 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
5127 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
5128 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
5129 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
5130 },
5131 },
5132 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
5133 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
5134 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
5135 },
5136 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
5137 &quot;A String&quot;,
5138 ],
5139 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
5140 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
5141 &quot;A String&quot;,
5142 ],
5143 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
5144 { # A golden turn defines a single turn in a golden conversation.
5145 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
5146 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
5147 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
5148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5149 },
5150 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
5151 # Object with schema name: Span
5152 ],
5153 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
5154 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
5155 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
5156 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
5157 },
5158 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
5159 { # A step defines a singular action to happen during the evaluation.
5160 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
5161 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5162 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5163 },
5164 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
5165 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
5166 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5167 { # A chunk of content within a message.
5168 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5169 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5170 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5171 },
5172 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5173 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5174 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5175 },
5176 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5178 },
5179 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
5180 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5181 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5182 },
5183 &quot;payload&quot;: { # Optional. Custom payload data.
5184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5185 },
5186 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
5187 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
5188 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5189 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5190 },
5191 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5192 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5193 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5194 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5195 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5196 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5197 },
5198 },
5199 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
5200 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5201 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5202 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5204 },
5205 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5206 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5207 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5208 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5209 },
5210 },
5211 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
5212 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
5213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5214 },
5215 },
5216 ],
5217 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
5218 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
5219 },
5220 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
5221 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
5222 },
5223 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
5224 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
5225 },
5226 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
5227 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5228 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5229 },
5230 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
5231 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
5232 },
5233 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
5234 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5235 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5236 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5238 },
5239 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5240 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5241 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5242 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5243 },
5244 },
5245 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
5246 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
5247 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
5248 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5249 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5250 },
5251 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5252 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5253 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5254 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5255 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5256 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5257 },
5258 },
5259 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
5260 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5261 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5262 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5264 },
5265 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5266 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5267 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5268 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5269 },
5270 },
5271 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
5272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5273 },
5274 },
5275 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
5276 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
5277 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
5278 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5279 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5280 },
5281 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
5282 &quot;event&quot;: { # Event input. # Optional. Event input.
5283 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
5284 },
5285 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
5286 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5287 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5288 },
5289 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
5290 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
5291 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
5292 { # The execution result of a specific tool from the client or the agent.
5293 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5294 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5295 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5297 },
5298 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5299 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5300 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5301 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5302 },
5303 },
5304 ],
5305 },
5306 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
5307 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5308 },
5309 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
5310 },
5311 },
5312 ],
5313 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
5314 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
5315 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
5316 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
5317 },
5318 },
5319 ],
5320 },
5321 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
5322 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
5323 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
5324 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
5325 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
5326 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
5327 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
5328 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
5329 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
5330 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
5331 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
5332 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
5333 },
5334 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
5335 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
5336 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
5337 },
5338 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
5339 },
5340 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
5341 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
5342 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
5343 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5344 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
5345 {
5346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5347 },
5348 ],
5349 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
5350 },
5351 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
5352 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
5353 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
5354 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
5355 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
5356 },
5357 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
5358 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
5359 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
5360 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
5361 },
5362 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
5363 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
5364 },
5365 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
5366 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
5367 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
5368 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
5369 },
5370 },
5371 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
5372 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
5373 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
5374 },
5375 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
5376 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
5377 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
5378 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
5379 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
5380 { # The result of a single evaluation expectation.
5381 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
5382 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
5383 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
5384 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
5385 },
5386 ],
5387 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
5388 { # The result of running a single turn of the golden conversation.
5389 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
5390 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
5391 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
5392 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
5393 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
5394 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
5395 },
5396 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
5397 { # Specifies the expectation and the result of that expectation.
5398 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
5399 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
5400 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5401 { # A chunk of content within a message.
5402 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5403 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5404 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5405 },
5406 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5407 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5408 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5409 },
5410 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5411 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5412 },
5413 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
5414 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5415 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5416 },
5417 &quot;payload&quot;: { # Optional. Custom payload data.
5418 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5419 },
5420 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
5421 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
5422 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5423 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5424 },
5425 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5426 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5427 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5428 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5429 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5430 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5431 },
5432 },
5433 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
5434 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5435 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5436 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5438 },
5439 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5440 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5441 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5442 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5443 },
5444 },
5445 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
5446 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
5447 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5448 },
5449 },
5450 ],
5451 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
5452 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
5453 },
5454 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
5455 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
5456 },
5457 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
5458 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
5459 },
5460 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
5461 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5462 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5463 },
5464 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
5465 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
5466 },
5467 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
5468 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5469 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5470 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5472 },
5473 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5474 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5475 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5476 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5477 },
5478 },
5479 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
5480 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
5481 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
5482 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5484 },
5485 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5486 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5487 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5488 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5489 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5490 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5491 },
5492 },
5493 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
5494 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5495 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5496 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5497 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5498 },
5499 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5500 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5501 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5502 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5503 },
5504 },
5505 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
5506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5507 },
5508 },
5509 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
5510 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5511 { # A chunk of content within a message.
5512 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5513 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5514 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5515 },
5516 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5517 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5518 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5519 },
5520 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5522 },
5523 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
5524 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5525 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5526 },
5527 &quot;payload&quot;: { # Optional. Custom payload data.
5528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5529 },
5530 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
5531 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
5532 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5533 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5534 },
5535 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5536 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5537 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5538 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5539 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5540 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5541 },
5542 },
5543 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
5544 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5545 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5546 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5547 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5548 },
5549 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5550 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5551 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5552 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5553 },
5554 },
5555 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
5556 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
5557 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5558 },
5559 },
5560 ],
5561 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
5562 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
5563 },
5564 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
5565 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5566 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5567 },
5568 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
5569 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5570 },
5571 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
5572 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5573 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5574 },
5575 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5576 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5577 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5578 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5579 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5580 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5581 },
5582 },
5583 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
5584 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5585 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5586 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5587 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5588 },
5589 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5590 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5591 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5592 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5593 },
5594 },
5595 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
5596 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
5597 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
5598 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
5599 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
5600 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
5601 },
5602 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
5603 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
5604 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
5605 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
5606 },
5607 },
5608 ],
5609 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
5610 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
5611 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
5612 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
5613 },
5614 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
5615 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
5616 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
5617 },
5618 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
5619 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
5620 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
5621 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
5622 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
5623 },
5624 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
5625 { # The latency of a span execution.
5626 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
5627 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
5628 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
5629 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
5630 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
5631 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
5632 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
5633 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
5634 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5635 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5636 },
5637 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
5638 },
5639 ],
5640 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
5641 { # The latency of a tool call execution.
5642 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
5643 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
5644 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
5645 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
5646 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
5647 },
5648 ],
5649 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
5650 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
5651 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
5652 },
5653 ],
5654 },
5655 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
5656 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
5657 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
5658 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
5659 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
5660 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
5661 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
5662 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
5663 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
5664 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
5665 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
5666 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
5667 },
5668 },
5669 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
5670 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
5671 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
5672 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
5673 { # The result of a single evaluation expectation.
5674 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
5675 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
5676 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
5677 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
5678 },
5679 ],
5680 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
5681 { # The outcome of a scenario expectation.
5682 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
5683 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
5684 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5685 { # A chunk of content within a message.
5686 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5687 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5688 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5689 },
5690 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5691 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5692 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5693 },
5694 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5695 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5696 },
5697 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
5698 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5699 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5700 },
5701 &quot;payload&quot;: { # Optional. Custom payload data.
5702 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5703 },
5704 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
5705 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
5706 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5708 },
5709 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5710 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5711 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5712 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5713 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5714 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5715 },
5716 },
5717 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
5718 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5719 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5720 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5722 },
5723 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5724 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5725 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5726 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5727 },
5728 },
5729 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
5730 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
5731 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5732 },
5733 },
5734 ],
5735 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
5736 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
5737 },
5738 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
5739 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
5740 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5742 },
5743 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5744 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5745 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5746 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5747 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5748 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5749 },
5750 },
5751 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
5752 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5753 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5754 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5755 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5756 },
5757 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5758 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5759 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5760 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5761 },
5762 },
5763 },
5764 },
5765 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
5766 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5767 { # A chunk of content within a message.
5768 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5769 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5770 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5771 },
5772 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5773 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5774 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5775 },
5776 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5778 },
5779 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
5780 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
5781 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
5782 },
5783 &quot;payload&quot;: { # Optional. Custom payload data.
5784 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5785 },
5786 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
5787 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
5788 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5789 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5790 },
5791 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5792 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5793 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5794 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5795 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5796 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5797 },
5798 },
5799 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
5800 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5801 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5802 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5803 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5804 },
5805 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5806 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5807 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5808 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5809 },
5810 },
5811 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
5812 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
5813 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5814 },
5815 },
5816 ],
5817 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
5818 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
5819 },
5820 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
5821 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
5822 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
5823 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5824 },
5825 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5826 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
5827 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5828 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
5829 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5830 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5831 },
5832 },
5833 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
5834 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
5835 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
5836 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
5837 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5838 },
5839 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
5840 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
5841 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5842 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5843 },
5844 },
5845 },
5846 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
5847 },
5848 ],
5849 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
5850 { # The result of the hallucination check for a single turn.
5851 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
5852 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
5853 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
5854 },
5855 ],
5856 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
5857 { # The outcome of the evaluation against the rubric.
5858 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
5859 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
5860 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
5861 },
5862 ],
5863 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
5864 { # The latency of a span execution.
5865 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
5866 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
5867 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
5868 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
5869 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
5870 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
5871 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
5872 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
5873 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
5874 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
5875 },
5876 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
5877 },
5878 ],
5879 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
5880 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
5881 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
5882 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
5883 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
5884 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
5885 },
5886 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
5887 { # The latency of a tool call execution.
5888 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
5889 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
5890 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
5891 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
5892 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
5893 },
5894 ],
5895 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
5896 { # Facts about the user as a key value pair.
5897 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
5898 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
5899 },
5900 ],
5901 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
5902 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
5903 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
5904 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
5905 },
5906 },
5907 },
5908 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
5909 { # An evaluation result represents the output of running an Evaluation.
5910 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
5911 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
5912 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
5913 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
5914 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
5915 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
5916 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
5917 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
5918 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
5919 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
5920 },
5921 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
5922 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
5923 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
5924 },
5925 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
5926 },
5927 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
5928 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
5929 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
5930 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5931 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
5932 {
5933 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5934 },
5935 ],
5936 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
5937 },
5938 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
5939 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
5940 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
5941 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
5942 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
5943 },
5944 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
5945 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
5946 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
5947 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
5948 },
5949 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
5950 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
5951 },
5952 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
5953 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
5954 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
5955 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
5956 },
5957 },
5958 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
5959 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
5960 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
5961 },
5962 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
5963 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
5964 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
5965 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
5966 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
5967 { # The result of a single evaluation expectation.
5968 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
5969 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
5970 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
5971 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
5972 },
5973 ],
5974 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
5975 { # The result of running a single turn of the golden conversation.
5976 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
5977 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
5978 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
5979 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
5980 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
5981 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
5982 },
5983 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
5984 { # Specifies the expectation and the result of that expectation.
5985 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
5986 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
5987 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
5988 { # A chunk of content within a message.
5989 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
5990 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
5991 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
5992 },
5993 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
5994 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
5995 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
5996 },
5997 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
5998 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5999 },
6000 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6001 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6002 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6003 },
6004 &quot;payload&quot;: { # Optional. Custom payload data.
6005 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6006 },
6007 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6008 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6009 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6010 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6011 },
6012 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6013 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6014 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6015 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6016 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6017 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6018 },
6019 },
6020 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6021 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6022 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6023 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6024 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6025 },
6026 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6027 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6028 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6029 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6030 },
6031 },
6032 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6033 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6034 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6035 },
6036 },
6037 ],
6038 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6039 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6040 },
6041 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
6042 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
6043 },
6044 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
6045 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
6046 },
6047 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
6048 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6049 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6050 },
6051 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
6052 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
6053 },
6054 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6055 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6056 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6057 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6058 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6059 },
6060 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6061 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6062 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6063 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6064 },
6065 },
6066 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
6067 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
6068 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
6069 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6070 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6071 },
6072 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6073 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6074 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6075 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6076 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6077 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6078 },
6079 },
6080 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
6081 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6082 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6083 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6084 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6085 },
6086 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6087 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6088 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6089 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6090 },
6091 },
6092 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
6093 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6094 },
6095 },
6096 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
6097 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
6098 { # A chunk of content within a message.
6099 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
6100 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6101 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6102 },
6103 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
6104 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6105 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6106 },
6107 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
6108 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6109 },
6110 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6111 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6112 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6113 },
6114 &quot;payload&quot;: { # Optional. Custom payload data.
6115 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6116 },
6117 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6118 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6119 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6120 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6121 },
6122 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6123 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6124 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6125 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6126 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6127 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6128 },
6129 },
6130 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6131 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6132 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6133 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6134 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6135 },
6136 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6137 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6138 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6139 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6140 },
6141 },
6142 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6143 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6144 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6145 },
6146 },
6147 ],
6148 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6149 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6150 },
6151 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
6152 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6153 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6154 },
6155 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
6156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6157 },
6158 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
6159 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6161 },
6162 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6163 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6164 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6165 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6166 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6167 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6168 },
6169 },
6170 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
6171 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6172 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6173 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6175 },
6176 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6177 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6178 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6179 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6180 },
6181 },
6182 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
6183 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
6184 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
6185 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
6186 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
6187 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
6188 },
6189 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
6190 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
6191 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
6192 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
6193 },
6194 },
6195 ],
6196 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
6197 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
6198 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
6199 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
6200 },
6201 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
6202 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
6203 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
6204 },
6205 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
6206 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
6207 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
6208 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
6209 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
6210 },
6211 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
6212 { # The latency of a span execution.
6213 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
6214 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
6215 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
6216 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
6217 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
6218 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
6219 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
6220 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
6221 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6222 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6223 },
6224 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
6225 },
6226 ],
6227 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
6228 { # The latency of a tool call execution.
6229 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
6230 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
6231 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
6232 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
6233 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
6234 },
6235 ],
6236 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
6237 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
6238 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
6239 },
6240 ],
6241 },
6242 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
6243 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
6244 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
6245 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
6246 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
6247 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
6248 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
6249 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
6250 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
6251 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
6252 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
6253 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
6254 },
6255 },
6256 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
6257 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
6258 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
6259 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
6260 { # The result of a single evaluation expectation.
6261 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
6262 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
6263 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
6264 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
6265 },
6266 ],
6267 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
6268 { # The outcome of a scenario expectation.
6269 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
6270 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
6271 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
6272 { # A chunk of content within a message.
6273 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
6274 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6275 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6276 },
6277 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
6278 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6279 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6280 },
6281 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
6282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6283 },
6284 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6285 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6286 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6287 },
6288 &quot;payload&quot;: { # Optional. Custom payload data.
6289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6290 },
6291 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6292 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6293 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6295 },
6296 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6297 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6298 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6299 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6300 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6301 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6302 },
6303 },
6304 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6305 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6306 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6307 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6309 },
6310 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6311 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6312 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6313 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6314 },
6315 },
6316 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6317 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6318 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6319 },
6320 },
6321 ],
6322 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6323 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6324 },
6325 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
6326 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6327 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6329 },
6330 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6331 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6332 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6333 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6334 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6335 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6336 },
6337 },
6338 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6339 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6340 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6341 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6343 },
6344 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6345 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6346 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6347 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6348 },
6349 },
6350 },
6351 },
6352 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
6353 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
6354 { # A chunk of content within a message.
6355 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
6356 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6357 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6358 },
6359 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
6360 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6361 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6362 },
6363 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
6364 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6365 },
6366 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6367 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6368 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6369 },
6370 &quot;payload&quot;: { # Optional. Custom payload data.
6371 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6372 },
6373 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6374 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6375 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6377 },
6378 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6379 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6380 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6381 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6382 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6383 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6384 },
6385 },
6386 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6387 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6388 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6389 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6390 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6391 },
6392 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6393 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6394 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6395 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6396 },
6397 },
6398 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6399 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6401 },
6402 },
6403 ],
6404 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6405 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6406 },
6407 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
6408 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
6409 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6410 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6411 },
6412 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6413 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6414 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6415 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6416 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6417 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6418 },
6419 },
6420 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
6421 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6422 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6423 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6424 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6425 },
6426 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6427 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6428 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6429 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6430 },
6431 },
6432 },
6433 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
6434 },
6435 ],
6436 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
6437 { # The result of the hallucination check for a single turn.
6438 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
6439 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
6440 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
6441 },
6442 ],
6443 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
6444 { # The outcome of the evaluation against the rubric.
6445 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
6446 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
6447 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
6448 },
6449 ],
6450 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
6451 { # The latency of a span execution.
6452 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
6453 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
6454 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
6455 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
6456 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
6457 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
6458 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
6459 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
6460 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6461 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6462 },
6463 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
6464 },
6465 ],
6466 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
6467 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
6468 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
6469 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
6470 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
6471 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
6472 },
6473 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
6474 { # The latency of a tool call execution.
6475 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
6476 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
6477 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
6478 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
6479 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
6480 },
6481 ],
6482 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
6483 { # Facts about the user as a key value pair.
6484 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
6485 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
6486 },
6487 ],
6488 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
6489 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
6490 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
6491 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
6492 },
6493 },
6494 },
6495 ],
6496 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
6497 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
6498 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
6499 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
6500 &quot;A String&quot;,
6501 ],
6502 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
6503 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
6504 &quot;A String&quot;,
6505 ],
6506 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
6507 { # The expectation to evaluate the conversation produced by the simulation.
6508 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
6509 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
6510 { # A chunk of content within a message.
6511 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
6512 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6513 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6514 },
6515 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
6516 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6517 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6518 },
6519 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
6520 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6521 },
6522 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6523 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6524 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6525 },
6526 &quot;payload&quot;: { # Optional. Custom payload data.
6527 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6528 },
6529 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6530 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6531 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6532 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6533 },
6534 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6535 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6536 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6537 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6538 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6539 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6540 },
6541 },
6542 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6543 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6544 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6545 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6546 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6547 },
6548 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6549 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6550 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6551 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6552 },
6553 },
6554 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6555 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6556 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6557 },
6558 },
6559 ],
6560 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6561 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6562 },
6563 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
6564 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6565 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6566 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6567 },
6568 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6569 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6570 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6571 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6572 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6573 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6574 },
6575 },
6576 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6577 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6578 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6579 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6580 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6581 },
6582 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6583 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6584 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6585 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6586 },
6587 },
6588 },
6589 },
6590 ],
6591 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
6592 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
6593 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
6594 { # Facts about the user as a key value pair.
6595 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
6596 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
6597 },
6598 ],
6599 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
6600 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
6601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6602 },
6603 },
6604 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
6605 &quot;A String&quot;,
6606 ],
6607 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
6608 },
6609 ],
6610 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListEvaluationsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
6611 }</pre>
6612 </div>
6613
6614 <div class="method">
6615 <code class="details" id="list_next">list_next()</code>
6616 <pre>Retrieves the next page of results.
6617
6618 Args:
6619 previous_request: The request for the previous page. (required)
6620 previous_response: The response from the request for the previous page. (required)
6621
6622 Returns:
6623 A request object that you can call &#x27;execute()&#x27; on to request the next
6624 page. Returns None if there are no more items in the collection.
6625 </pre>
6626 </div>
6627
6628 <div class="method">
6629 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
6630 <pre>Updates an evaluation.
6631
6632 Args:
6633 name: string, Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` (required)
6634 body: object, The request body.
6635 The object takes the form of:
6636
6637 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
6638 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
6639 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
6640 { # Metrics aggregated per app version.
6641 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
6642 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
6643 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
6644 { # Metrics for hallucination results.
6645 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
6646 },
6647 ],
6648 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
6649 { # Metrics aggregated per turn.
6650 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
6651 { # Metrics for hallucination results.
6652 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
6653 },
6654 ],
6655 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
6656 { # Metrics for semantic similarity results.
6657 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
6658 },
6659 ],
6660 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
6661 { # Metrics for tool call latency.
6662 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
6663 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
6664 },
6665 ],
6666 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
6667 { # Metrics for a single tool.
6668 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
6669 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
6670 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
6671 },
6672 ],
6673 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
6674 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
6675 { # Metrics for turn latency.
6676 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
6677 },
6678 ],
6679 },
6680 ],
6681 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
6682 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
6683 { # Metrics for semantic similarity results.
6684 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
6685 },
6686 ],
6687 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
6688 { # Metrics for tool call latency.
6689 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
6690 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
6691 },
6692 ],
6693 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
6694 { # Metrics for a single tool.
6695 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
6696 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
6697 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
6698 },
6699 ],
6700 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
6701 { # Metrics for turn latency.
6702 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
6703 },
6704 ],
6705 },
6706 ],
6707 },
6708 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
6709 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
6710 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
6711 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
6712 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
6713 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
6714 &quot;A String&quot;,
6715 ],
6716 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
6717 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
6718 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
6719 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
6720 },
6721 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
6722 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
6723 },
6724 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
6725 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
6726 },
6727 },
6728 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
6729 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
6730 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
6731 },
6732 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
6733 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
6734 },
6735 },
6736 },
6737 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
6738 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
6739 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
6740 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
6741 },
6742 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
6743 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
6744 },
6745 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
6746 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
6747 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
6748 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
6749 },
6750 },
6751 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
6752 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
6753 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
6754 },
6755 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
6756 &quot;A String&quot;,
6757 ],
6758 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
6759 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
6760 &quot;A String&quot;,
6761 ],
6762 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
6763 { # A golden turn defines a single turn in a golden conversation.
6764 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
6765 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
6766 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
6767 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6768 },
6769 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
6770 # Object with schema name: Span
6771 ],
6772 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
6773 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
6774 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
6775 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
6776 },
6777 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
6778 { # A step defines a singular action to happen during the evaluation.
6779 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
6780 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6781 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6782 },
6783 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
6784 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
6785 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
6786 { # A chunk of content within a message.
6787 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
6788 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6789 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6790 },
6791 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
6792 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6793 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6794 },
6795 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
6796 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6797 },
6798 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
6799 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6800 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6801 },
6802 &quot;payload&quot;: { # Optional. Custom payload data.
6803 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6804 },
6805 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
6806 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
6807 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6808 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6809 },
6810 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6811 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6812 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6813 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6814 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6815 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6816 },
6817 },
6818 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
6819 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6820 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6821 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6822 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6823 },
6824 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6825 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6826 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6827 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6828 },
6829 },
6830 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
6831 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
6832 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6833 },
6834 },
6835 ],
6836 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
6837 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
6838 },
6839 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
6840 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
6841 },
6842 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
6843 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
6844 },
6845 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
6846 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
6847 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
6848 },
6849 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
6850 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
6851 },
6852 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
6853 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6854 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6855 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6856 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6857 },
6858 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6859 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6860 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6861 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6862 },
6863 },
6864 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
6865 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
6866 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
6867 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
6868 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6869 },
6870 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6871 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
6872 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6873 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
6874 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6875 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6876 },
6877 },
6878 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
6879 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6880 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6881 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6882 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6883 },
6884 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6885 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6886 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6887 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6888 },
6889 },
6890 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
6891 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6892 },
6893 },
6894 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
6895 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
6896 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
6897 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
6898 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6899 },
6900 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
6901 &quot;event&quot;: { # Event input. # Optional. Event input.
6902 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
6903 },
6904 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
6905 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
6906 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
6907 },
6908 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
6909 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
6910 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
6911 { # The execution result of a specific tool from the client or the agent.
6912 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
6913 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
6914 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
6915 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6916 },
6917 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
6918 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
6919 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
6920 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
6921 },
6922 },
6923 ],
6924 },
6925 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
6926 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6927 },
6928 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
6929 },
6930 },
6931 ],
6932 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
6933 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
6934 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
6935 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
6936 },
6937 },
6938 ],
6939 },
6940 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
6941 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
6942 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
6943 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
6944 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
6945 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
6946 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
6947 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
6948 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
6949 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
6950 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
6951 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
6952 },
6953 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
6954 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
6955 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
6956 },
6957 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
6958 },
6959 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
6960 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
6961 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
6962 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6963 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
6964 {
6965 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6966 },
6967 ],
6968 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
6969 },
6970 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
6971 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
6972 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
6973 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
6974 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
6975 },
6976 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
6977 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
6978 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
6979 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
6980 },
6981 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
6982 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
6983 },
6984 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
6985 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
6986 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
6987 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
6988 },
6989 },
6990 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
6991 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
6992 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
6993 },
6994 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
6995 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
6996 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
6997 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
6998 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
6999 { # The result of a single evaluation expectation.
7000 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
7001 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
7002 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
7003 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
7004 },
7005 ],
7006 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
7007 { # The result of running a single turn of the golden conversation.
7008 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
7009 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
7010 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
7011 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
7012 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
7013 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
7014 },
7015 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
7016 { # Specifies the expectation and the result of that expectation.
7017 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
7018 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
7019 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7020 { # A chunk of content within a message.
7021 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7022 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7023 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7024 },
7025 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7026 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7027 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7028 },
7029 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7030 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7031 },
7032 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7033 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7034 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7035 },
7036 &quot;payload&quot;: { # Optional. Custom payload data.
7037 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7038 },
7039 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7040 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7041 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7042 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7043 },
7044 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7045 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7046 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7047 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7048 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7049 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7050 },
7051 },
7052 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7053 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7054 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7055 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7056 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7057 },
7058 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7059 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7060 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7061 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7062 },
7063 },
7064 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7065 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7066 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7067 },
7068 },
7069 ],
7070 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7071 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7072 },
7073 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
7074 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
7075 },
7076 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
7077 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
7078 },
7079 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
7080 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7081 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7082 },
7083 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
7084 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
7085 },
7086 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7087 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7088 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7089 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7090 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7091 },
7092 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7093 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7094 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7095 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7096 },
7097 },
7098 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
7099 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
7100 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
7101 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7102 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7103 },
7104 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7105 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7106 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7107 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7108 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7109 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7110 },
7111 },
7112 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
7113 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7114 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7115 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7117 },
7118 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7119 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7120 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7121 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7122 },
7123 },
7124 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
7125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7126 },
7127 },
7128 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
7129 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7130 { # A chunk of content within a message.
7131 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7132 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7133 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7134 },
7135 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7136 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7137 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7138 },
7139 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7141 },
7142 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7143 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7144 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7145 },
7146 &quot;payload&quot;: { # Optional. Custom payload data.
7147 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7148 },
7149 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7150 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7151 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7153 },
7154 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7155 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7156 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7157 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7158 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7159 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7160 },
7161 },
7162 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7163 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7164 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7165 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7167 },
7168 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7169 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7170 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7171 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7172 },
7173 },
7174 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7175 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7177 },
7178 },
7179 ],
7180 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7181 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7182 },
7183 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
7184 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7185 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7186 },
7187 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
7188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7189 },
7190 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
7191 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7193 },
7194 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7195 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7196 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7197 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7198 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7199 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7200 },
7201 },
7202 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
7203 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7204 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7205 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7207 },
7208 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7209 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7210 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7211 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7212 },
7213 },
7214 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
7215 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
7216 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
7217 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
7218 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7219 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
7220 },
7221 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
7222 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
7223 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7224 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
7225 },
7226 },
7227 ],
7228 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
7229 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
7230 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
7231 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
7232 },
7233 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
7234 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7235 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
7236 },
7237 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
7238 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
7239 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
7240 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7241 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
7242 },
7243 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
7244 { # The latency of a span execution.
7245 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
7246 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
7247 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
7248 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
7249 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
7250 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
7251 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
7252 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
7253 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7254 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7255 },
7256 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
7257 },
7258 ],
7259 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
7260 { # The latency of a tool call execution.
7261 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
7262 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
7263 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
7264 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
7265 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
7266 },
7267 ],
7268 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
7269 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
7270 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
7271 },
7272 ],
7273 },
7274 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
7275 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
7276 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
7277 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
7278 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
7279 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
7280 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
7281 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
7282 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
7283 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
7284 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
7285 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
7286 },
7287 },
7288 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
7289 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
7290 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
7291 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
7292 { # The result of a single evaluation expectation.
7293 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
7294 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
7295 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
7296 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
7297 },
7298 ],
7299 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
7300 { # The outcome of a scenario expectation.
7301 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
7302 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
7303 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7304 { # A chunk of content within a message.
7305 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7306 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7307 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7308 },
7309 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7310 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7311 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7312 },
7313 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7315 },
7316 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7317 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7318 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7319 },
7320 &quot;payload&quot;: { # Optional. Custom payload data.
7321 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7322 },
7323 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7324 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7325 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7327 },
7328 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7329 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7330 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7331 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7332 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7333 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7334 },
7335 },
7336 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7337 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7338 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7339 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7341 },
7342 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7343 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7344 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7345 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7346 },
7347 },
7348 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7349 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7350 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7351 },
7352 },
7353 ],
7354 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7355 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7356 },
7357 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
7358 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7359 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7360 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7361 },
7362 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7363 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7364 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7365 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7366 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7367 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7368 },
7369 },
7370 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7371 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7372 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7373 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7375 },
7376 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7377 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7378 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7379 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7380 },
7381 },
7382 },
7383 },
7384 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
7385 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7386 { # A chunk of content within a message.
7387 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7388 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7389 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7390 },
7391 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7392 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7393 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7394 },
7395 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7397 },
7398 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7399 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7400 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7401 },
7402 &quot;payload&quot;: { # Optional. Custom payload data.
7403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7404 },
7405 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7406 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7407 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7408 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7409 },
7410 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7411 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7412 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7413 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7414 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7415 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7416 },
7417 },
7418 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7419 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7420 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7421 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7423 },
7424 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7425 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7426 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7427 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7428 },
7429 },
7430 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7431 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7433 },
7434 },
7435 ],
7436 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7437 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7438 },
7439 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
7440 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
7441 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7442 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7443 },
7444 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7445 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7446 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7447 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7448 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7449 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7450 },
7451 },
7452 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
7453 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7454 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7455 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7457 },
7458 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7459 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7460 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7461 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7462 },
7463 },
7464 },
7465 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
7466 },
7467 ],
7468 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
7469 { # The result of the hallucination check for a single turn.
7470 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
7471 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
7472 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
7473 },
7474 ],
7475 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
7476 { # The outcome of the evaluation against the rubric.
7477 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
7478 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
7479 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
7480 },
7481 ],
7482 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
7483 { # The latency of a span execution.
7484 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
7485 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
7486 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
7487 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
7488 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
7489 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
7490 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
7491 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
7492 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7493 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7494 },
7495 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
7496 },
7497 ],
7498 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
7499 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
7500 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
7501 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
7502 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
7503 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
7504 },
7505 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
7506 { # The latency of a tool call execution.
7507 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
7508 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
7509 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
7510 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
7511 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
7512 },
7513 ],
7514 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
7515 { # Facts about the user as a key value pair.
7516 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
7517 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
7518 },
7519 ],
7520 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
7521 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
7522 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
7523 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
7524 },
7525 },
7526 },
7527 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
7528 { # An evaluation result represents the output of running an Evaluation.
7529 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
7530 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
7531 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
7532 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
7533 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
7534 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
7535 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
7536 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
7537 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
7538 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
7539 },
7540 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
7541 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
7542 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
7543 },
7544 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
7545 },
7546 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
7547 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
7548 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
7549 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7550 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
7551 {
7552 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7553 },
7554 ],
7555 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
7556 },
7557 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
7558 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
7559 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
7560 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
7561 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
7562 },
7563 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
7564 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
7565 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
7566 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
7567 },
7568 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
7569 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
7570 },
7571 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
7572 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
7573 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
7574 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
7575 },
7576 },
7577 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
7578 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
7579 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
7580 },
7581 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
7582 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
7583 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
7584 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
7585 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
7586 { # The result of a single evaluation expectation.
7587 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
7588 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
7589 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
7590 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
7591 },
7592 ],
7593 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
7594 { # The result of running a single turn of the golden conversation.
7595 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
7596 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
7597 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
7598 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
7599 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
7600 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
7601 },
7602 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
7603 { # Specifies the expectation and the result of that expectation.
7604 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
7605 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
7606 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7607 { # A chunk of content within a message.
7608 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7609 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7610 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7611 },
7612 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7613 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7614 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7615 },
7616 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7617 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7618 },
7619 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7620 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7621 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7622 },
7623 &quot;payload&quot;: { # Optional. Custom payload data.
7624 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7625 },
7626 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7627 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7628 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7629 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7630 },
7631 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7632 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7633 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7634 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7635 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7636 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7637 },
7638 },
7639 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7640 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7641 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7642 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7644 },
7645 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7646 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7647 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7648 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7649 },
7650 },
7651 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7652 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7653 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7654 },
7655 },
7656 ],
7657 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7658 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7659 },
7660 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
7661 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
7662 },
7663 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
7664 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
7665 },
7666 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
7667 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7668 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7669 },
7670 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
7671 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
7672 },
7673 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7674 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7675 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7676 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7677 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7678 },
7679 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7680 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7681 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7682 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7683 },
7684 },
7685 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
7686 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
7687 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
7688 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7689 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7690 },
7691 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7692 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7693 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7694 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7695 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7696 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7697 },
7698 },
7699 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
7700 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7701 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7702 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7703 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7704 },
7705 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7706 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7707 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7708 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7709 },
7710 },
7711 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
7712 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7713 },
7714 },
7715 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
7716 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7717 { # A chunk of content within a message.
7718 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7719 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7720 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7721 },
7722 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7723 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7724 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7725 },
7726 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7727 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7728 },
7729 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7730 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7731 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7732 },
7733 &quot;payload&quot;: { # Optional. Custom payload data.
7734 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7735 },
7736 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7737 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7738 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7739 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7740 },
7741 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7742 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7743 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7744 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7745 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7746 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7747 },
7748 },
7749 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7750 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7751 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7752 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7753 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7754 },
7755 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7756 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7757 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7758 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7759 },
7760 },
7761 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7762 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7763 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7764 },
7765 },
7766 ],
7767 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7768 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7769 },
7770 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
7771 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7772 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7773 },
7774 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
7775 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7776 },
7777 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
7778 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7779 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7780 },
7781 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7782 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7783 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7784 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7785 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7786 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7787 },
7788 },
7789 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
7790 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7791 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7792 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7793 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7794 },
7795 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7796 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7797 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7798 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7799 },
7800 },
7801 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
7802 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
7803 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
7804 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
7805 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7806 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
7807 },
7808 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
7809 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
7810 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7811 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
7812 },
7813 },
7814 ],
7815 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
7816 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
7817 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
7818 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
7819 },
7820 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
7821 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7822 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
7823 },
7824 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
7825 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
7826 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
7827 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
7828 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
7829 },
7830 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
7831 { # The latency of a span execution.
7832 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
7833 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
7834 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
7835 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
7836 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
7837 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
7838 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
7839 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
7840 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7841 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7842 },
7843 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
7844 },
7845 ],
7846 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
7847 { # The latency of a tool call execution.
7848 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
7849 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
7850 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
7851 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
7852 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
7853 },
7854 ],
7855 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
7856 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
7857 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
7858 },
7859 ],
7860 },
7861 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
7862 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
7863 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
7864 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
7865 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
7866 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
7867 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
7868 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
7869 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
7870 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
7871 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
7872 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
7873 },
7874 },
7875 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
7876 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
7877 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
7878 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
7879 { # The result of a single evaluation expectation.
7880 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
7881 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
7882 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
7883 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
7884 },
7885 ],
7886 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
7887 { # The outcome of a scenario expectation.
7888 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
7889 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
7890 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7891 { # A chunk of content within a message.
7892 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7893 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7894 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7895 },
7896 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7897 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7898 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7899 },
7900 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7901 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7902 },
7903 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7904 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7905 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7906 },
7907 &quot;payload&quot;: { # Optional. Custom payload data.
7908 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7909 },
7910 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7911 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7912 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7913 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7914 },
7915 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7916 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7917 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7918 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7919 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7920 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7921 },
7922 },
7923 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
7924 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7925 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7926 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7927 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7928 },
7929 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7930 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7931 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7932 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7933 },
7934 },
7935 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
7936 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
7937 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7938 },
7939 },
7940 ],
7941 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
7942 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
7943 },
7944 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
7945 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7946 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7947 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7948 },
7949 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7950 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7951 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7952 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
7953 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7954 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7955 },
7956 },
7957 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
7958 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7959 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
7960 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
7961 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7962 },
7963 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
7964 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
7965 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
7966 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
7967 },
7968 },
7969 },
7970 },
7971 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
7972 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
7973 { # A chunk of content within a message.
7974 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
7975 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
7976 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
7977 },
7978 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
7979 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
7980 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7981 },
7982 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
7983 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7984 },
7985 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
7986 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
7987 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
7988 },
7989 &quot;payload&quot;: { # Optional. Custom payload data.
7990 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7991 },
7992 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
7993 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
7994 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
7995 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7996 },
7997 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
7998 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
7999 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8000 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8001 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8002 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8003 },
8004 },
8005 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8006 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8007 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8008 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8009 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8010 },
8011 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8012 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8013 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8014 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8015 },
8016 },
8017 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8018 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8019 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8020 },
8021 },
8022 ],
8023 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8024 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8025 },
8026 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
8027 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
8028 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8029 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8030 },
8031 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8032 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8033 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8034 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8035 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8036 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8037 },
8038 },
8039 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
8040 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8041 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8042 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8043 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8044 },
8045 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8046 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8047 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8048 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8049 },
8050 },
8051 },
8052 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
8053 },
8054 ],
8055 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
8056 { # The result of the hallucination check for a single turn.
8057 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
8058 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
8059 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
8060 },
8061 ],
8062 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
8063 { # The outcome of the evaluation against the rubric.
8064 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
8065 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
8066 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
8067 },
8068 ],
8069 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
8070 { # The latency of a span execution.
8071 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
8072 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
8073 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
8074 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
8075 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
8076 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
8077 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
8078 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
8079 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8080 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8081 },
8082 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
8083 },
8084 ],
8085 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
8086 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
8087 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
8088 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
8089 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
8090 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
8091 },
8092 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
8093 { # The latency of a tool call execution.
8094 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
8095 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
8096 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
8097 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
8098 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
8099 },
8100 ],
8101 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
8102 { # Facts about the user as a key value pair.
8103 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
8104 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
8105 },
8106 ],
8107 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
8108 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
8109 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
8110 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
8111 },
8112 },
8113 },
8114 ],
8115 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
8116 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
8117 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
8118 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
8119 &quot;A String&quot;,
8120 ],
8121 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
8122 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
8123 &quot;A String&quot;,
8124 ],
8125 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
8126 { # The expectation to evaluate the conversation produced by the simulation.
8127 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
8128 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8129 { # A chunk of content within a message.
8130 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8131 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8132 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8133 },
8134 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8135 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8136 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8137 },
8138 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8139 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8140 },
8141 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
8142 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8143 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8144 },
8145 &quot;payload&quot;: { # Optional. Custom payload data.
8146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8147 },
8148 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
8149 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
8150 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8152 },
8153 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8154 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8155 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8156 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8157 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8158 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8159 },
8160 },
8161 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8162 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8163 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8164 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8166 },
8167 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8168 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8169 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8170 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8171 },
8172 },
8173 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8174 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8176 },
8177 },
8178 ],
8179 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8180 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8181 },
8182 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
8183 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8184 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8186 },
8187 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8188 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8189 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8190 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8191 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8192 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8193 },
8194 },
8195 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8196 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8197 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8198 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8200 },
8201 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8202 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8203 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8204 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8205 },
8206 },
8207 },
8208 },
8209 ],
8210 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
8211 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
8212 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
8213 { # Facts about the user as a key value pair.
8214 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
8215 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
8216 },
8217 ],
8218 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
8219 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
8220 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8221 },
8222 },
8223 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
8224 &quot;A String&quot;,
8225 ],
8226 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
8227 }
8228
8229 updateMask: string, Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
8230 x__xgafv: string, V1 error format.
8231 Allowed values
8232 1 - v1 error format
8233 2 - v2 error format
8234
8235 Returns:
8236 An object of the form:
8237
8238 { # An evaluation represents all of the information needed to simulate and evaluate an agent.
8239 &quot;aggregatedMetrics&quot;: { # Aggregated metrics for an evaluation or evaluation dataset. # Output only. The aggregated metrics for this evaluation across all runs.
8240 &quot;metricsByAppVersion&quot;: [ # Output only. Aggregated metrics, grouped by app version ID.
8241 { # Metrics aggregated per app version.
8242 &quot;appVersionId&quot;: &quot;A String&quot;, # Output only. The app version ID.
8243 &quot;failCount&quot;: 42, # Output only. The number of times the evaluation failed.
8244 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this app version.
8245 { # Metrics for hallucination results.
8246 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
8247 },
8248 ],
8249 &quot;metricsByTurn&quot;: [ # Output only. Metrics aggregated per turn within this app version.
8250 { # Metrics aggregated per turn.
8251 &quot;hallucinationMetrics&quot;: [ # Output only. Metrics for hallucination within this turn.
8252 { # Metrics for hallucination results.
8253 &quot;score&quot;: 3.14, # Output only. The average hallucination score (0 to 1).
8254 },
8255 ],
8256 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this turn.
8257 { # Metrics for semantic similarity results.
8258 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
8259 },
8260 ],
8261 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this turn.
8262 { # Metrics for tool call latency.
8263 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
8264 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
8265 },
8266 ],
8267 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this turn.
8268 { # Metrics for a single tool.
8269 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
8270 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
8271 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
8272 },
8273 ],
8274 &quot;turnIndex&quot;: 42, # Output only. The turn index (0-based).
8275 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this turn.
8276 { # Metrics for turn latency.
8277 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
8278 },
8279 ],
8280 },
8281 ],
8282 &quot;passCount&quot;: 42, # Output only. The number of times the evaluation passed.
8283 &quot;semanticSimilarityMetrics&quot;: [ # Output only. Metrics for semantic similarity within this app version.
8284 { # Metrics for semantic similarity results.
8285 &quot;score&quot;: 3.14, # Output only. The average semantic similarity score (0-4).
8286 },
8287 ],
8288 &quot;toolCallLatencyMetrics&quot;: [ # Output only. Metrics for tool call latency within this app version.
8289 { # Metrics for tool call latency.
8290 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the tool calls.
8291 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
8292 },
8293 ],
8294 &quot;toolMetrics&quot;: [ # Output only. Metrics for each tool within this app version.
8295 { # Metrics for a single tool.
8296 &quot;failCount&quot;: 42, # Output only. The number of times the tool failed.
8297 &quot;passCount&quot;: 42, # Output only. The number of times the tool passed.
8298 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool.
8299 },
8300 ],
8301 &quot;turnLatencyMetrics&quot;: [ # Output only. Metrics for turn latency within this app version.
8302 { # Metrics for turn latency.
8303 &quot;averageLatency&quot;: &quot;A String&quot;, # Output only. The average latency of the turns.
8304 },
8305 ],
8306 },
8307 ],
8308 },
8309 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was created.
8310 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. The user who created the evaluation.
8311 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of the evaluation.
8312 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name of the evaluation. Unique within an App.
8313 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
8314 &quot;evaluationDatasets&quot;: [ # Output only. List of evaluation datasets the evaluation belongs to. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`
8315 &quot;A String&quot;,
8316 ],
8317 &quot;evaluationMetricsConfigOverride&quot;: { # Configures the metrics for an evaluation. # Optional. Overrides metrics config for this specific evaluation.
8318 &quot;goldenMetricsConfig&quot;: { # Configuration for the golden metrics for the evaluation. # Optional. Configuration for the golden metrics for the evaluation.
8319 &quot;semanticSimilarityMetricsConfig&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Global configuration for semantic similarity metrics.
8320 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
8321 },
8322 &quot;stepToolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for step level tool correctness metrics.
8323 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
8324 },
8325 &quot;toolCorrectnessMetricsConfig&quot;: { # Configuration for correctness metrics for the evaluation. To disable the metric, set the message but do not set the `enable_tool_correctness_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for turn level tool correctness metrics.
8326 &quot;enableToolCorrectnessMetrics&quot;: True or False, # Optional. Whether to calculate tool correctness metrics for the evaluation.
8327 },
8328 },
8329 &quot;scenarioMetricsConfig&quot;: { # Configuration for the scenario metrics for the evaluation. # Optional. Configuration for the scenario metrics for the evaluation.
8330 &quot;expectationsMetMetricsConfig&quot;: { # Configuration for the expectation level metrics for the evaluation. To disable the metric, set the message but do not set the `enable_expectations_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for expectation level metrics.
8331 &quot;enableExpectationsMetMetrics&quot;: True or False, # Optional. Whether to calculate the expectation level metrics for the evaluation.
8332 },
8333 &quot;userGoalMetMetricsConfig&quot;: { # Configuration for the user goal met metrics for the evaluation. To disable the metric, set the message but do not set the `enable_user_goal_met_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Configuration for user goal met metrics.
8334 &quot;enableUserGoalMetMetrics&quot;: True or False, # Optional. Whether to calculate the user goal met metrics for the evaluation.
8335 },
8336 },
8337 },
8338 &quot;evaluationMetricsThresholdOverride&quot;: { # Threshold settings for metrics in an Evaluation. # Optional. Overrides metrics thresholds for this specific evaluation.
8339 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
8340 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
8341 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
8342 },
8343 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
8344 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
8345 },
8346 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
8347 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
8348 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
8349 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
8350 },
8351 },
8352 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
8353 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
8354 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
8355 },
8356 &quot;evaluationRuns&quot;: [ # Output only. The EvaluationRuns that this Evaluation is associated with.
8357 &quot;A String&quot;,
8358 ],
8359 &quot;golden&quot;: { # The steps required to replay a golden conversation. # Optional. The golden steps to be evaluated.
8360 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
8361 &quot;A String&quot;,
8362 ],
8363 &quot;turns&quot;: [ # Required. The golden turns required to replay a golden conversation.
8364 { # A golden turn defines a single turn in a golden conversation.
8365 &quot;hallucinationMetricBehaviorOverride&quot;: &quot;A String&quot;, # Optional. Override for turn-level hallucination metric behavior.
8366 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the golden turn for processing and maintaining audio information. The uri for the audio must contain audio saved in 16Khz sample rate.
8367 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
8368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8369 },
8370 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
8371 # Object with schema name: Span
8372 ],
8373 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
8374 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
8375 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
8376 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
8377 },
8378 &quot;steps&quot;: [ # Required. The steps required to replay a golden conversation.
8379 { # A step defines a singular action to happen during the evaluation.
8380 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Transfer the conversation to a different agent.
8381 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8382 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8383 },
8384 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Optional. Executes an expectation on the current turn.
8385 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
8386 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8387 { # A chunk of content within a message.
8388 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8389 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8390 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8391 },
8392 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8393 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8394 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8395 },
8396 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8397 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8398 },
8399 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
8400 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8401 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8402 },
8403 &quot;payload&quot;: { # Optional. Custom payload data.
8404 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8405 },
8406 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
8407 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
8408 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8410 },
8411 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8412 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8413 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8414 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8415 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8416 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8417 },
8418 },
8419 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8420 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8421 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8422 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8423 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8424 },
8425 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8426 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8427 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8428 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8429 },
8430 },
8431 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8432 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8433 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8434 },
8435 },
8436 ],
8437 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8438 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8439 },
8440 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
8441 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
8442 },
8443 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
8444 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
8445 },
8446 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
8447 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8448 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8449 },
8450 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
8451 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
8452 },
8453 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8454 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8455 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8456 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8457 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8458 },
8459 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8460 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8461 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8462 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8463 },
8464 },
8465 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
8466 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
8467 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
8468 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8469 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8470 },
8471 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8472 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8473 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8474 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8475 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8476 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8477 },
8478 },
8479 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
8480 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8481 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8482 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8484 },
8485 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8486 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8487 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8488 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8489 },
8490 },
8491 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
8492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8493 },
8494 },
8495 &quot;userInput&quot;: { # Input for the session. # Optional. User input for the conversation.
8496 &quot;audio&quot;: &quot;A String&quot;, # Optional. Audio data from the end user.
8497 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data from the end user.
8498 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8499 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8500 },
8501 &quot;dtmf&quot;: &quot;A String&quot;, # Optional. DTMF digits from the end user.
8502 &quot;event&quot;: { # Event input. # Optional. Event input.
8503 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event.
8504 },
8505 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data from the end user.
8506 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8507 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8508 },
8509 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data from the end user.
8510 &quot;toolResponses&quot;: { # Execution results for the requested tool calls from the client. # Optional. Execution results for the tool calls from the client.
8511 &quot;toolResponses&quot;: [ # Optional. The list of tool execution results.
8512 { # The execution result of a specific tool from the client or the agent.
8513 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8514 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8515 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8517 },
8518 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8519 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8520 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8521 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8522 },
8523 },
8524 ],
8525 },
8526 &quot;variables&quot;: { # Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
8527 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8528 },
8529 &quot;willContinue&quot;: True or False, # Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
8530 },
8531 },
8532 ],
8533 &quot;turnLevelMetricsThresholdsOverride&quot;: { # Turn level metrics thresholds. # Optional. Overrides for turn-level metric thresholds.
8534 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
8535 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
8536 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
8537 },
8538 },
8539 ],
8540 },
8541 &quot;invalid&quot;: True or False, # Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing a tool, toolset, or agent that has since been deleted.
8542 &quot;lastCompletedResult&quot;: { # An evaluation result represents the output of running an Evaluation. # Output only. The latest evaluation result for this evaluation.
8543 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
8544 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
8545 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
8546 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
8547 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
8548 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
8549 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
8550 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
8551 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
8552 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
8553 },
8554 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
8555 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
8556 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
8557 },
8558 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
8559 },
8560 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
8561 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
8562 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
8563 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
8564 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
8565 {
8566 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
8567 },
8568 ],
8569 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
8570 },
8571 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
8572 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
8573 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
8574 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
8575 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
8576 },
8577 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
8578 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
8579 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
8580 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
8581 },
8582 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
8583 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
8584 },
8585 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
8586 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
8587 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
8588 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
8589 },
8590 },
8591 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
8592 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
8593 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
8594 },
8595 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
8596 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
8597 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
8598 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
8599 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
8600 { # The result of a single evaluation expectation.
8601 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
8602 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
8603 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
8604 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
8605 },
8606 ],
8607 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
8608 { # The result of running a single turn of the golden conversation.
8609 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
8610 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
8611 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
8612 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
8613 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
8614 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
8615 },
8616 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
8617 { # Specifies the expectation and the result of that expectation.
8618 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
8619 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
8620 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8621 { # A chunk of content within a message.
8622 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8623 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8624 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8625 },
8626 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8627 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8628 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8629 },
8630 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8631 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8632 },
8633 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
8634 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8635 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8636 },
8637 &quot;payload&quot;: { # Optional. Custom payload data.
8638 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8639 },
8640 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
8641 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
8642 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8644 },
8645 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8646 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8647 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8648 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8649 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8650 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8651 },
8652 },
8653 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8654 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8655 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8656 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8657 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8658 },
8659 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8660 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8661 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8662 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8663 },
8664 },
8665 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8666 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8668 },
8669 },
8670 ],
8671 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8672 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8673 },
8674 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
8675 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
8676 },
8677 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
8678 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
8679 },
8680 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
8681 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8682 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8683 },
8684 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
8685 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
8686 },
8687 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8688 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8689 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8690 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8691 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8692 },
8693 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8694 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8695 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8696 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8697 },
8698 },
8699 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
8700 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
8701 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
8702 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8703 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8704 },
8705 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8706 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8707 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8708 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8709 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8710 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8711 },
8712 },
8713 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
8714 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8715 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8716 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8717 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8718 },
8719 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8720 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8721 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8722 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8723 },
8724 },
8725 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
8726 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8727 },
8728 },
8729 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
8730 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8731 { # A chunk of content within a message.
8732 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8733 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8734 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8735 },
8736 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8737 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8738 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8739 },
8740 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8742 },
8743 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
8744 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8745 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8746 },
8747 &quot;payload&quot;: { # Optional. Custom payload data.
8748 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8749 },
8750 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
8751 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
8752 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8753 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8754 },
8755 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8756 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8757 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8758 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8759 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8760 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8761 },
8762 },
8763 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8764 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8765 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8766 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8767 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8768 },
8769 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8770 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8771 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8772 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8773 },
8774 },
8775 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8776 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8778 },
8779 },
8780 ],
8781 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8782 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8783 },
8784 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
8785 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8786 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8787 },
8788 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
8789 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8790 },
8791 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
8792 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8793 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8794 },
8795 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8796 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8797 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8798 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8799 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8800 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8801 },
8802 },
8803 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
8804 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8805 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8806 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8807 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8808 },
8809 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8810 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8811 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8812 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8813 },
8814 },
8815 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
8816 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
8817 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
8818 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
8819 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
8820 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
8821 },
8822 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
8823 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
8824 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
8825 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
8826 },
8827 },
8828 ],
8829 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
8830 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
8831 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
8832 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
8833 },
8834 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
8835 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
8836 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
8837 },
8838 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
8839 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
8840 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
8841 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
8842 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
8843 },
8844 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
8845 { # The latency of a span execution.
8846 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
8847 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
8848 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
8849 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
8850 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
8851 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
8852 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
8853 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
8854 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8855 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8856 },
8857 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
8858 },
8859 ],
8860 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
8861 { # The latency of a tool call execution.
8862 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
8863 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
8864 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
8865 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
8866 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
8867 },
8868 ],
8869 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
8870 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
8871 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
8872 },
8873 ],
8874 },
8875 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
8876 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
8877 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
8878 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
8879 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
8880 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
8881 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
8882 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
8883 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
8884 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
8885 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
8886 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
8887 },
8888 },
8889 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
8890 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
8891 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
8892 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
8893 { # The result of a single evaluation expectation.
8894 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
8895 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
8896 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
8897 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
8898 },
8899 ],
8900 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
8901 { # The outcome of a scenario expectation.
8902 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
8903 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
8904 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8905 { # A chunk of content within a message.
8906 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8907 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8908 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8909 },
8910 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8911 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8912 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8913 },
8914 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8915 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8916 },
8917 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
8918 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
8919 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
8920 },
8921 &quot;payload&quot;: { # Optional. Custom payload data.
8922 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8923 },
8924 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
8925 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
8926 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8927 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8928 },
8929 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8930 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8931 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8932 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8933 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8934 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8935 },
8936 },
8937 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
8938 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8939 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8940 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8941 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8942 },
8943 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8944 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8945 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8946 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8947 },
8948 },
8949 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
8950 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
8951 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8952 },
8953 },
8954 ],
8955 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
8956 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
8957 },
8958 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
8959 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8960 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
8961 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8962 },
8963 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8964 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
8965 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8966 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
8967 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8968 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8969 },
8970 },
8971 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
8972 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
8973 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
8974 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
8975 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8976 },
8977 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
8978 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
8979 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
8980 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
8981 },
8982 },
8983 },
8984 },
8985 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
8986 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
8987 { # A chunk of content within a message.
8988 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
8989 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
8990 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
8991 },
8992 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
8993 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
8994 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
8995 },
8996 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
8997 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8998 },
8999 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9000 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9001 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9002 },
9003 &quot;payload&quot;: { # Optional. Custom payload data.
9004 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9005 },
9006 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9007 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9008 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9009 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9010 },
9011 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9012 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9013 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9014 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9015 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9016 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9017 },
9018 },
9019 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9020 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9021 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9022 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9023 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9024 },
9025 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9026 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9027 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9028 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9029 },
9030 },
9031 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9032 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9033 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9034 },
9035 },
9036 ],
9037 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9038 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9039 },
9040 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
9041 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
9042 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9043 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9044 },
9045 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9046 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9047 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9048 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9049 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9050 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9051 },
9052 },
9053 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
9054 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9055 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9056 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9057 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9058 },
9059 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9060 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9061 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9062 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9063 },
9064 },
9065 },
9066 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
9067 },
9068 ],
9069 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
9070 { # The result of the hallucination check for a single turn.
9071 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
9072 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
9073 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
9074 },
9075 ],
9076 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
9077 { # The outcome of the evaluation against the rubric.
9078 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
9079 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
9080 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
9081 },
9082 ],
9083 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
9084 { # The latency of a span execution.
9085 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
9086 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
9087 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
9088 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
9089 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
9090 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
9091 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
9092 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
9093 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9094 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9095 },
9096 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
9097 },
9098 ],
9099 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
9100 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
9101 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
9102 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
9103 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
9104 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
9105 },
9106 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
9107 { # The latency of a tool call execution.
9108 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
9109 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
9110 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
9111 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
9112 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
9113 },
9114 ],
9115 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
9116 { # Facts about the user as a key value pair.
9117 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
9118 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
9119 },
9120 ],
9121 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
9122 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
9123 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
9124 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
9125 },
9126 },
9127 },
9128 &quot;lastTenResults&quot;: [ # Output only. The last 10 evaluation results for this evaluation. This is only populated if include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest.
9129 { # An evaluation result represents the output of running an Evaluation.
9130 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The app version used to generate the conversation that resulted in this result. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
9131 &quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
9132 &quot;changelog&quot;: &quot;A String&quot;, # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
9133 &quot;changelogCreateTime&quot;: &quot;A String&quot;, # Output only. The create time of the changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft.
9134 &quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
9135 &quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
9136 &quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
9137 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
9138 &quot;noiseSuppressionLevel&quot;: &quot;A String&quot;, # Optional. Whether to enable noise suppression on the input audio. Available values are &quot;low&quot;, &quot;moderate&quot;, &quot;high&quot;, &quot;very_high&quot;.
9139 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
9140 },
9141 &quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
9142 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
9143 &quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
9144 },
9145 &quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
9146 },
9147 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
9148 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it has the following format: &quot; result - &quot;.
9149 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Deprecated: Use `error_info` instead. Errors encountered during execution.
9150 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
9151 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
9152 {
9153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
9154 },
9155 ],
9156 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
9157 },
9158 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
9159 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
9160 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
9161 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
9162 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
9163 },
9164 &quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
9165 &quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
9166 &quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
9167 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
9168 },
9169 &quot;toolMatchingSettings&quot;: { # Settings for matching tool calls. # Optional. The tool matching settings. An extra tool call is a tool call that is present in the execution but does not match any tool call in the golden expectation.
9170 &quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
9171 },
9172 &quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
9173 &quot;overallToolInvocationCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
9174 &quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
9175 &quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
9176 },
9177 },
9178 &quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
9179 &quot;hallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
9180 &quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
9181 },
9182 &quot;evaluationRun&quot;: &quot;A String&quot;, # Output only. The evaluation run that produced this result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}`
9183 &quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
9184 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
9185 &quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
9186 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
9187 { # The result of a single evaluation expectation.
9188 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
9189 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
9190 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
9191 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
9192 },
9193 ],
9194 &quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
9195 { # The result of running a single turn of the golden conversation.
9196 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
9197 &quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
9198 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
9199 &quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
9200 &quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
9201 &quot;userFacingErrorMessage&quot;: &quot;A String&quot;, # Output only. The user facing error message.
9202 },
9203 &quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
9204 { # Specifies the expectation and the result of that expectation.
9205 &quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
9206 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. Check that the agent responded with the correct response. The role &quot;agent&quot; is implied.
9207 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
9208 { # A chunk of content within a message.
9209 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
9210 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9211 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9212 },
9213 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
9214 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
9215 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
9216 },
9217 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
9218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9219 },
9220 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9221 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9222 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9223 },
9224 &quot;payload&quot;: { # Optional. Custom payload data.
9225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9226 },
9227 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9228 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9229 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9231 },
9232 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9233 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9234 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9235 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9236 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9237 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9238 },
9239 },
9240 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9241 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9242 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9243 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9244 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9245 },
9246 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9247 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9248 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9249 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9250 },
9251 },
9252 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9253 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9255 },
9256 },
9257 ],
9258 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9259 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9260 },
9261 &quot;agentResponseHallucinationMetricsConfigOverride&quot;: { # Configuration for the hallucination metrics for the evaluation. To disable the metric, set the message but do not set the `enable_hallucination_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response hallucination metrics.
9262 &quot;enableHallucinationMetrics&quot;: True or False, # Optional. Whether to calculate hallucination metrics for the evaluation.
9263 },
9264 &quot;agentResponseSemanticSimilarityMetricsConfigOverride&quot;: { # Configuration for similarity metrics for the evaluation. To disable the metric, set the message but do not set the `enable_semantic_similarity_metrics` field to true (or explicitly set it to false). To unset the configuration and fallback to the default behavior, omit the message entirely. # Optional. Overrides for agent_response semantic similarity metrics.
9265 &quot;enableSemanticSimilarityMetrics&quot;: True or False, # Optional. Whether to calculate semantic similarity metrics for the evaluation.
9266 },
9267 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Check that the agent transferred the conversation to a different agent.
9268 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9269 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9270 },
9271 &quot;expectationLevelMetricsThresholdsOverride&quot;: { # Expectation level metrics thresholds. # Optional. Overrides metrics at the step level.
9272 &quot;toolInvocationParameterCorrectnessThreshold&quot;: 3.14, # Optional. The success threshold for individual tool invocation parameter correctness. Must be a float between 0 and 1. Default is 1.0.
9273 },
9274 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
9275 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9276 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9277 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9278 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9279 },
9280 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9281 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9282 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9283 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9284 },
9285 },
9286 &quot;note&quot;: &quot;A String&quot;, # Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., &quot;Check_Payment_Tool_Called&quot;.
9287 &quot;skipEvaluation&quot;: True or False, # Optional. If set to true, this specific expectation will not be evaluated.
9288 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Check that a specific tool was called with the parameters.
9289 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9291 },
9292 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9293 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9294 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9295 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9296 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9297 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9298 },
9299 },
9300 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Check that a specific tool had the expected response.
9301 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9302 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9303 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9305 },
9306 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9307 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9308 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9309 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9310 },
9311 },
9312 &quot;updatedVariables&quot;: { # Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
9313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9314 },
9315 },
9316 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
9317 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
9318 { # A chunk of content within a message.
9319 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
9320 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9321 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9322 },
9323 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
9324 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
9325 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
9326 },
9327 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
9328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9329 },
9330 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9331 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9332 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9333 },
9334 &quot;payload&quot;: { # Optional. Custom payload data.
9335 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9336 },
9337 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9338 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9339 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9341 },
9342 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9343 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9344 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9345 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9346 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9347 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9348 },
9349 },
9350 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9351 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9352 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9353 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9354 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9355 },
9356 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9357 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9358 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9359 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9360 },
9361 },
9362 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9363 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9364 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9365 },
9366 },
9367 ],
9368 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9369 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9370 },
9371 &quot;observedAgentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Output only. The result of the agent transfer expectation.
9372 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9373 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9374 },
9375 &quot;observedPayload&quot;: { # Output only. An observed custom payload. There are no expectations for custom payloads. This is only used for metrics calculation. The outcome is always SKIPPED.
9376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9377 },
9378 &quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
9379 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9381 },
9382 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9383 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9384 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9385 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9386 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9387 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9388 },
9389 },
9390 &quot;observedToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The result of the tool response expectation.
9391 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9392 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9393 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9395 },
9396 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9397 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9398 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9399 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9400 },
9401 },
9402 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
9403 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
9404 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
9405 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
9406 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
9407 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
9408 },
9409 &quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
9410 &quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
9411 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
9412 &quot;parameterCorrectnessScore&quot;: 3.14, # Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.
9413 },
9414 },
9415 ],
9416 &quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
9417 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
9418 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
9419 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
9420 },
9421 &quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
9422 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the tool invocation check. This is determined by comparing the tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
9423 &quot;toolInvocationScore&quot;: 3.14, # The overall tool invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked.
9424 },
9425 &quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
9426 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
9427 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
9428 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
9429 &quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
9430 },
9431 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
9432 { # The latency of a span execution.
9433 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
9434 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
9435 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
9436 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
9437 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
9438 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
9439 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
9440 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
9441 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9442 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9443 },
9444 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
9445 },
9446 ],
9447 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
9448 { # The latency of a tool call execution.
9449 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
9450 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
9451 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
9452 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
9453 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
9454 },
9455 ],
9456 &quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
9457 &quot;toolOrderedInvocationScore&quot;: 3.14, # Output only. The overall tool ordered invocation score for this turn. This indicates the overall percent of tools from the expected turn that were actually invoked in the expected order.
9458 &quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
9459 },
9460 ],
9461 },
9462 &quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
9463 &quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
9464 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the evaluation result. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}`
9465 &quot;persona&quot;: { # A persona represents an end user in an evaluation. # Output only. The persona used to generate the conversation for the evaluation result.
9466 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
9467 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
9468 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
9469 &quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
9470 &quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
9471 &quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
9472 &quot;speakingRate&quot;: 3.14, # Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
9473 &quot;voiceId&quot;: &quot;A String&quot;, # Optional. The specific voice identifier/accent to use. Example: &quot;en-US-Wavenet-D&quot; or &quot;en-GB-Standard-A&quot;
9474 },
9475 },
9476 &quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
9477 &quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
9478 &quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
9479 &quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
9480 { # The result of a single evaluation expectation.
9481 &quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
9482 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
9483 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
9484 &quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
9485 },
9486 ],
9487 &quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
9488 { # The outcome of a scenario expectation.
9489 &quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
9490 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
9491 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
9492 { # A chunk of content within a message.
9493 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
9494 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9495 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9496 },
9497 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
9498 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
9499 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
9500 },
9501 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
9502 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9503 },
9504 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9505 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9506 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9507 },
9508 &quot;payload&quot;: { # Optional. Custom payload data.
9509 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9510 },
9511 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9512 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9513 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9515 },
9516 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9517 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9518 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9519 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9520 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9521 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9522 },
9523 },
9524 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9525 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9526 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9527 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9529 },
9530 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9531 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9532 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9533 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9534 },
9535 },
9536 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9537 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9538 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9539 },
9540 },
9541 ],
9542 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9543 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9544 },
9545 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
9546 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
9547 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9548 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9549 },
9550 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9551 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9552 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9553 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9554 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9555 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9556 },
9557 },
9558 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
9559 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9560 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9561 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9563 },
9564 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9565 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9566 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9567 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9568 },
9569 },
9570 },
9571 },
9572 &quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
9573 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
9574 { # A chunk of content within a message.
9575 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
9576 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9577 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9578 },
9579 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
9580 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
9581 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
9582 },
9583 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
9584 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9585 },
9586 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9587 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9588 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9589 },
9590 &quot;payload&quot;: { # Optional. Custom payload data.
9591 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9592 },
9593 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9594 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9595 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9596 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9597 },
9598 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9599 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9600 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9601 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9602 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9603 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9604 },
9605 },
9606 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9607 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9608 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9609 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9610 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9611 },
9612 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9613 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9614 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9615 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9616 },
9617 },
9618 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9619 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9620 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9621 },
9622 },
9623 ],
9624 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9625 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9626 },
9627 &quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
9628 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
9629 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9630 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9631 },
9632 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9633 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9634 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9635 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9636 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9637 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9638 },
9639 },
9640 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
9641 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9642 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9643 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9644 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9645 },
9646 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9647 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9648 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9649 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9650 },
9651 },
9652 },
9653 &quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
9654 },
9655 ],
9656 &quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
9657 { # The result of the hallucination check for a single turn.
9658 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
9659 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
9660 &quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
9661 },
9662 ],
9663 &quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
9664 { # The outcome of the evaluation against the rubric.
9665 &quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
9666 &quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
9667 &quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
9668 },
9669 ],
9670 &quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
9671 { # The latency of a span execution.
9672 &quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
9673 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
9674 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
9675 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
9676 &quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
9677 &quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
9678 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
9679 &quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
9680 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9681 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9682 },
9683 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
9684 },
9685 ],
9686 &quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
9687 &quot;taskCompleted&quot;: True or False, # Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
9688 &quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
9689 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
9690 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not Completed Score -1: User Goal Undefined
9691 &quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
9692 },
9693 &quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
9694 { # The latency of a tool call execution.
9695 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
9696 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
9697 &quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
9698 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
9699 &quot;tool&quot;: &quot;A String&quot;, # Output only. The name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`.
9700 },
9701 ],
9702 &quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
9703 { # Facts about the user as a key value pair.
9704 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
9705 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
9706 },
9707 ],
9708 &quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
9709 &quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
9710 &quot;label&quot;: &quot;A String&quot;, # Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User Task Not Satisfied Score -1: User Task Unspecified
9711 &quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
9712 },
9713 },
9714 },
9715 ],
9716 &quot;lastUpdatedBy&quot;: &quot;A String&quot;, # Output only. The user who last updated the evaluation.
9717 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
9718 &quot;scenario&quot;: { # The config for a scenario # Optional. The config for a scenario.
9719 &quot;evaluationExpectations&quot;: [ # Optional. The evaluation expectations to evaluate the conversation produced by the simulation against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}`
9720 &quot;A String&quot;,
9721 ],
9722 &quot;maxTurns&quot;: 42, # Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
9723 &quot;rubrics&quot;: [ # Required. The rubrics to score the scenario against.
9724 &quot;A String&quot;,
9725 ],
9726 &quot;scenarioExpectations&quot;: [ # Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
9727 { # The expectation to evaluate the conversation produced by the simulation.
9728 &quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
9729 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
9730 { # A chunk of content within a message.
9731 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
9732 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
9733 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
9734 },
9735 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
9736 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
9737 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
9738 },
9739 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
9740 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9741 },
9742 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
9743 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
9744 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
9745 },
9746 &quot;payload&quot;: { # Optional. Custom payload data.
9747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9748 },
9749 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
9750 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
9751 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9752 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9753 },
9754 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9755 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9756 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9757 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9758 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9759 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9760 },
9761 },
9762 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
9763 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9764 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9765 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9766 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9767 },
9768 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9769 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9770 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9771 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9772 },
9773 },
9774 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
9775 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
9776 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9777 },
9778 },
9779 ],
9780 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
9781 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
9782 },
9783 &quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
9784 &quot;expectedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
9785 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
9786 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9787 },
9788 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9789 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
9790 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9791 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
9792 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9793 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9794 },
9795 },
9796 &quot;mockToolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
9797 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
9798 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
9799 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
9800 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9801 },
9802 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
9803 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
9804 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
9805 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
9806 },
9807 },
9808 },
9809 },
9810 ],
9811 &quot;task&quot;: &quot;A String&quot;, # Required. The task to be targeted by the scenario.
9812 &quot;taskCompletionBehavior&quot;: &quot;A String&quot;, # Optional. Deprecated. Use user_goal_behavior instead.
9813 &quot;userFacts&quot;: [ # Optional. The user facts to be used by the scenario.
9814 { # Facts about the user as a key value pair.
9815 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
9816 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
9817 },
9818 ],
9819 &quot;userGoalBehavior&quot;: &quot;A String&quot;, # Optional. The expected behavior of the user goal.
9820 &quot;variableOverrides&quot;: { # Optional. Variables / Session Parameters as context for the session, keyed by variable names. Members of this struct will override any default values set by the system. Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
9821 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9822 },
9823 },
9824 &quot;tags&quot;: [ # Optional. User defined tags to categorize the evaluation.
9825 &quot;A String&quot;,
9826 ],
9827 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation was last updated.
9828 }</pre>
9829 </div>
9830
9831 <div class="method">
9832 <code class="details" id="uploadEvaluationAudio">uploadEvaluationAudio(name, body=None, x__xgafv=None)</code>
9833 <pre>Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in &#x27;App.logging_settings.evaluation_audio_recording_config.gcs_bucket&#x27; and returns a transcript.
9834
9835 Args:
9836 name: string, Required. The resource name of the Evaluation for which to upload the evaluation audio. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` (required)
9837 body: object, The request body.
9838 The object takes the form of:
9839
9840 { # Request message for EvaluationService.UploadEvaluationAudio.
9841 &quot;audioContent&quot;: &quot;A String&quot;, # Required. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig).
9842 &quot;previousAudioGcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI of the previously uploaded audio file to be deleted. Format: `gs:///`
9843 }
9844
9845 x__xgafv: string, V1 error format.
9846 Allowed values
9847 1 - v1 error format
9848 2 - v2 error format
9849
9850 Returns:
9851 An object of the form:
9852
9853 { # Response message for EvaluationService.UploadEvaluationAudio.
9854 &quot;audioGcsUri&quot;: &quot;A String&quot;, # The Google Cloud Storage URI where the uploaded audio file is stored. Format: `gs:///`
9855 &quot;duration&quot;: &quot;A String&quot;, # The duration of the audio.
9856 &quot;transcript&quot;: &quot;A String&quot;, # The transcript of the audio, generated by Cloud Speech-to-Text.
9857 }</pre>
9858 </div>
9859
9860 </body></html>