| 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.evaluationRuns.html">evaluationRuns</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Deletes an evaluation run.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#export">export(parent, body=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Exports evaluations runs.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Gets details of the specified evaluation run.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Lists all evaluation runs in the given app.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#list_next">list_next()</a></code></p> |
| 94 |
<p class="firstline">Retrieves the next page of results.</p> |
| 95 |
<h3>Method Details</h3> |
| 96 |
<div class="method"> |
| 97 |
<code class="details" id="close">close()</code> |
| 98 |
<pre>Close httplib2 connections.</pre> |
| 99 |
</div> |
| 100 |
|
| 101 |
<div class="method"> |
| 102 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 103 |
<pre>Deletes an evaluation run. |
| 104 |
|
| 105 |
Args: |
| 106 |
name: string, Required. The resource name of the evaluation run to delete. (required) |
| 107 |
x__xgafv: string, V1 error format. |
| 108 |
Allowed values |
| 109 |
1 - v1 error format |
| 110 |
2 - v2 error format |
| 111 |
|
| 112 |
Returns: |
| 113 |
An object of the form: |
| 114 |
|
| 115 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 116 |
"done": 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. |
| 117 |
"error": { # 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. |
| 118 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 119 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 120 |
{ |
| 121 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 122 |
}, |
| 123 |
], |
| 124 |
"message": "A String", # 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. |
| 125 |
}, |
| 126 |
"metadata": { # 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. |
| 127 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 128 |
}, |
| 129 |
"name": "A String", # 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}`. |
| 130 |
"response": { # 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`. |
| 131 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 132 |
}, |
| 133 |
}</pre> |
| 134 |
</div> |
| 135 |
|
| 136 |
<div class="method"> |
| 137 |
<code class="details" id="export">export(parent, body=None, x__xgafv=None)</code> |
| 138 |
<pre>Exports evaluations runs. |
| 139 |
|
| 140 |
Args: |
| 141 |
parent: string, Required. The resource name of the app to export evaluation runs from. Format: `projects/{project}/locations/{location}/apps/{app}` (required) |
| 142 |
body: object, The request body. |
| 143 |
The object takes the form of: |
| 144 |
|
| 145 |
{ # Request message for EvaluationService.ExportEvaluationRuns. |
| 146 |
"exportOptions": { # Options for exporting CES evaluation resources. # Optional. The export options for the evaluation runs. |
| 147 |
"exportFormat": "A String", # Optional. The format to export the evaluation results in. Defaults to JSON if not specified. |
| 148 |
"gcsUri": "A String", # Optional. The Google Cloud Storage URI to write the exported Evaluation Results to. |
| 149 |
}, |
| 150 |
"names": [ # Required. The resource names of the evaluation runs to export. |
| 151 |
"A String", |
| 152 |
], |
| 153 |
} |
| 154 |
|
| 155 |
x__xgafv: string, V1 error format. |
| 156 |
Allowed values |
| 157 |
1 - v1 error format |
| 158 |
2 - v2 error format |
| 159 |
|
| 160 |
Returns: |
| 161 |
An object of the form: |
| 162 |
|
| 163 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 164 |
"done": 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. |
| 165 |
"error": { # 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. |
| 166 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 167 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 168 |
{ |
| 169 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 170 |
}, |
| 171 |
], |
| 172 |
"message": "A String", # 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. |
| 173 |
}, |
| 174 |
"metadata": { # 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. |
| 175 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 176 |
}, |
| 177 |
"name": "A String", # 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}`. |
| 178 |
"response": { # 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`. |
| 179 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 180 |
}, |
| 181 |
}</pre> |
| 182 |
</div> |
| 183 |
|
| 184 |
<div class="method"> |
| 185 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 186 |
<pre>Gets details of the specified evaluation run. |
| 187 |
|
| 188 |
Args: |
| 189 |
name: string, Required. The resource name of the evaluation run to retrieve. (required) |
| 190 |
x__xgafv: string, V1 error format. |
| 191 |
Allowed values |
| 192 |
1 - v1 error format |
| 193 |
2 - v2 error format |
| 194 |
|
| 195 |
Returns: |
| 196 |
An object of the form: |
| 197 |
|
| 198 |
{ # An evaluation run represents an all the evaluation results from an evaluation execution. |
| 199 |
"appVersion": "A String", # Output only. The app version to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` |
| 200 |
"appVersionDisplayName": "A String", # Output only. The display name of the `app_version` that the evaluation ran against. |
| 201 |
"changelog": "A String", # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft. |
| 202 |
"changelogCreateTime": "A String", # 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. |
| 203 |
"config": { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the run. |
| 204 |
"evaluationChannel": "A String", # Optional. The channel to evaluate. |
| 205 |
"inputAudioConfig": { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio. |
| 206 |
"audioEncoding": "A String", # Required. The encoding of the input audio data. |
| 207 |
"noiseSuppressionLevel": "A String", # Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high". |
| 208 |
"sampleRateHertz": 42, # Required. The sample rate (in Hertz) of the input audio data. |
| 209 |
}, |
| 210 |
"outputAudioConfig": { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio. |
| 211 |
"audioEncoding": "A String", # Required. The encoding of the output audio data. |
| 212 |
"sampleRateHertz": 42, # Required. The sample rate (in Hertz) of the output audio data. |
| 213 |
}, |
| 214 |
"toolCallBehaviour": "A String", # Optional. Specifies whether the evaluation should use real tool calls or fake tools. |
| 215 |
}, |
| 216 |
"createTime": "A String", # Output only. Timestamp when the evaluation run was created. |
| 217 |
"displayName": "A String", # Optional. User-defined display name of the evaluation run. default: " run - ". |
| 218 |
"error": { # 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. |
| 219 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 220 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 221 |
{ |
| 222 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 223 |
}, |
| 224 |
], |
| 225 |
"message": "A String", # 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. |
| 226 |
}, |
| 227 |
"errorInfo": { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation run. |
| 228 |
"errorMessage": "A String", # Output only. The error message. |
| 229 |
"errorType": "A String", # Output only. The type of error. |
| 230 |
"sessionId": "A String", # Output only. The session ID for the conversation that caused the error. |
| 231 |
"userFacingErrorMessage": "A String", # Output only. The user facing error message. |
| 232 |
}, |
| 233 |
"evaluationDataset": "A String", # Output only. The evaluation dataset that this run is associated with. This field is mutually exclusive with `evaluations`. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` |
| 234 |
"evaluationResults": [ # Output only. The evaluation results that are part of this run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` |
| 235 |
"A String", |
| 236 |
], |
| 237 |
"evaluationRunSummaries": { # Output only. Map of evaluation name to EvaluationRunSummary. |
| 238 |
"a_key": { # Contains the summary of passed and failed result counts for a specific evaluation in an evaluation run. |
| 239 |
"errorCount": 42, # Output only. Number of error results for the associated Evaluation in this run. |
| 240 |
"failedCount": 42, # Output only. Number of failed results for the associated Evaluation in this run. |
| 241 |
"passedCount": 42, # Output only. Number of passed results for the associated Evaluation in this run. |
| 242 |
}, |
| 243 |
}, |
| 244 |
"evaluationType": "A String", # Output only. The type of the evaluations in this run. |
| 245 |
"evaluations": [ # Output only. The evaluations that are part of this run. The list may contain evaluations of either type. This field is mutually exclusive with `evaluation_dataset`. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` |
| 246 |
"A String", |
| 247 |
], |
| 248 |
"goldenRunMethod": "A String", # Output only. The method used to run the evaluation. |
| 249 |
"initiatedBy": "A String", # Output only. The user who initiated the evaluation run. |
| 250 |
"latencyReport": { # Latency report for the evaluation run. # Output only. Latency report for the evaluation run. |
| 251 |
"callbackLatencies": [ # Output only. Unordered list. Latency metrics for each callback. |
| 252 |
{ # Latency metrics for a single callback. |
| 253 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the callback. |
| 254 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 255 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 256 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 257 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 258 |
}, |
| 259 |
"stage": "A String", # Output only. The stage of the callback. |
| 260 |
}, |
| 261 |
], |
| 262 |
"guardrailLatencies": [ # Output only. Unordered list. Latency metrics for each guardrail. |
| 263 |
{ # Latency metrics for a single guardrail. |
| 264 |
"guardrail": "A String", # Output only. The name of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`. |
| 265 |
"guardrailDisplayName": "A String", # Output only. The display name of the guardrail. |
| 266 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the guardrail. |
| 267 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 268 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 269 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 270 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 271 |
}, |
| 272 |
}, |
| 273 |
], |
| 274 |
"llmCallLatencies": [ # Output only. Unordered list. Latency metrics for each LLM call. |
| 275 |
{ # Latency metrics for a single LLM call. |
| 276 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the LLM call. |
| 277 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 278 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 279 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 280 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 281 |
}, |
| 282 |
"model": "A String", # Output only. The name of the model. |
| 283 |
}, |
| 284 |
], |
| 285 |
"sessionCount": 42, # Output only. The total number of sessions considered in the latency report. |
| 286 |
"toolLatencies": [ # Output only. Unordered list. Latency metrics for each tool. |
| 287 |
{ # Latency metrics for a single tool. |
| 288 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the tool. |
| 289 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 290 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 291 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 292 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 293 |
}, |
| 294 |
"tool": "A String", # Output only. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. |
| 295 |
"toolDisplayName": "A String", # Output only. The display name of the tool. |
| 296 |
"toolsetTool": { # A tool that is created from a toolset. # Output only. The toolset tool identifier. |
| 297 |
"toolId": "A String", # Optional. The tool ID to filter the tools to retrieve the schema for. |
| 298 |
"toolset": "A String", # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` |
| 299 |
}, |
| 300 |
}, |
| 301 |
], |
| 302 |
}, |
| 303 |
"name": "A String", # Identifier. The unique identifier of the evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` |
| 304 |
"operation": "A String", # Output only. The operation that created this evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation}` |
| 305 |
"optimizationConfig": { # Configuration for running the optimization step after the evaluation run. # Optional. Configuration for running the optimization step after the evaluation run. If not set, the optimization step will not be run. |
| 306 |
"assistantSession": "A String", # Output only. The assistant session to use for the optimization based on this evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}` |
| 307 |
"errorMessage": "A String", # Output only. The error message if the optimization run failed. |
| 308 |
"generateLossReport": True or False, # Optional. Whether to generate a loss report. |
| 309 |
"lossReport": { # Output only. The generated loss report. |
| 310 |
"a_key": "", # Properties of the object. |
| 311 |
}, |
| 312 |
"reportSummary": "A String", # Output only. The summary of the loss report. |
| 313 |
"shouldSuggestFix": True or False, # Output only. Whether to suggest a fix for the losses. |
| 314 |
"status": "A String", # Output only. The status of the optimization run. |
| 315 |
}, |
| 316 |
"personaRunConfigs": [ # Output only. The configuration to use for the run per persona. |
| 317 |
{ # Configuration for running an evaluation for a specific persona. |
| 318 |
"persona": "A String", # Optional. The persona to use for the evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` |
| 319 |
"taskCount": 42, # Optional. The number of tasks to run for the persona. |
| 320 |
}, |
| 321 |
], |
| 322 |
"progress": { # The progress of the evaluation run. # Output only. The progress of the evaluation run. |
| 323 |
"completedCount": 42, # Output only. Number of evaluation results that finished successfully. (EvaluationResult.execution_state is COMPLETED). |
| 324 |
"errorCount": 42, # Output only. Number of evaluation results that failed to execute. (EvaluationResult.execution_state is ERROR). |
| 325 |
"failedCount": 42, # Output only. Number of completed evaluation results with an outcome of FAIL. (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is FAIL). |
| 326 |
"passedCount": 42, # Output only. Number of completed evaluation results with an outcome of PASS. (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is PASS). |
| 327 |
"totalCount": 42, # Output only. Total number of evaluation results in this run. |
| 328 |
}, |
| 329 |
"runCount": 42, # Output only. The number of times the evaluations inside the run were run. |
| 330 |
"scheduledEvaluationRun": "A String", # Output only. The scheduled evaluation run resource name that created this evaluation run. This field is only set if the evaluation run was created by a scheduled evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}` |
| 331 |
"state": "A String", # Output only. The state of the evaluation run. |
| 332 |
}</pre> |
| 333 |
</div> |
| 334 |
|
| 335 |
<div class="method"> |
| 336 |
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 337 |
<pre>Lists all evaluation runs in the given app. |
| 338 |
|
| 339 |
Args: |
| 340 |
parent: string, Required. The resource name of the app to list evaluation runs from. (required) |
| 341 |
filter: string, Optional. Filter to be applied when listing the evaluation runs. See https://google.aip.dev/160 for more details. |
| 342 |
orderBy: string, Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time fields are ordered in descending order, and the name field is ordered in ascending order. If not included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more details. |
| 343 |
pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| 344 |
pageToken: string, Optional. The next_page_token value returned from a previous list EvaluationService.ListEvaluationRuns call. |
| 345 |
x__xgafv: string, V1 error format. |
| 346 |
Allowed values |
| 347 |
1 - v1 error format |
| 348 |
2 - v2 error format |
| 349 |
|
| 350 |
Returns: |
| 351 |
An object of the form: |
| 352 |
|
| 353 |
{ # Response message for EvaluationService.ListEvaluationRuns. |
| 354 |
"evaluationRuns": [ # The list of evaluation runs. |
| 355 |
{ # An evaluation run represents an all the evaluation results from an evaluation execution. |
| 356 |
"appVersion": "A String", # Output only. The app version to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` |
| 357 |
"appVersionDisplayName": "A String", # Output only. The display name of the `app_version` that the evaluation ran against. |
| 358 |
"changelog": "A String", # Output only. The changelog of the app version that the evaluation ran against. This is populated if user runs evaluation on latest/draft. |
| 359 |
"changelogCreateTime": "A String", # 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. |
| 360 |
"config": { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the run. |
| 361 |
"evaluationChannel": "A String", # Optional. The channel to evaluate. |
| 362 |
"inputAudioConfig": { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio. |
| 363 |
"audioEncoding": "A String", # Required. The encoding of the input audio data. |
| 364 |
"noiseSuppressionLevel": "A String", # Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high". |
| 365 |
"sampleRateHertz": 42, # Required. The sample rate (in Hertz) of the input audio data. |
| 366 |
}, |
| 367 |
"outputAudioConfig": { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio. |
| 368 |
"audioEncoding": "A String", # Required. The encoding of the output audio data. |
| 369 |
"sampleRateHertz": 42, # Required. The sample rate (in Hertz) of the output audio data. |
| 370 |
}, |
| 371 |
"toolCallBehaviour": "A String", # Optional. Specifies whether the evaluation should use real tool calls or fake tools. |
| 372 |
}, |
| 373 |
"createTime": "A String", # Output only. Timestamp when the evaluation run was created. |
| 374 |
"displayName": "A String", # Optional. User-defined display name of the evaluation run. default: " run - ". |
| 375 |
"error": { # 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. |
| 376 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 377 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 378 |
{ |
| 379 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 380 |
}, |
| 381 |
], |
| 382 |
"message": "A String", # 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. |
| 383 |
}, |
| 384 |
"errorInfo": { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation run. |
| 385 |
"errorMessage": "A String", # Output only. The error message. |
| 386 |
"errorType": "A String", # Output only. The type of error. |
| 387 |
"sessionId": "A String", # Output only. The session ID for the conversation that caused the error. |
| 388 |
"userFacingErrorMessage": "A String", # Output only. The user facing error message. |
| 389 |
}, |
| 390 |
"evaluationDataset": "A String", # Output only. The evaluation dataset that this run is associated with. This field is mutually exclusive with `evaluations`. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` |
| 391 |
"evaluationResults": [ # Output only. The evaluation results that are part of this run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` |
| 392 |
"A String", |
| 393 |
], |
| 394 |
"evaluationRunSummaries": { # Output only. Map of evaluation name to EvaluationRunSummary. |
| 395 |
"a_key": { # Contains the summary of passed and failed result counts for a specific evaluation in an evaluation run. |
| 396 |
"errorCount": 42, # Output only. Number of error results for the associated Evaluation in this run. |
| 397 |
"failedCount": 42, # Output only. Number of failed results for the associated Evaluation in this run. |
| 398 |
"passedCount": 42, # Output only. Number of passed results for the associated Evaluation in this run. |
| 399 |
}, |
| 400 |
}, |
| 401 |
"evaluationType": "A String", # Output only. The type of the evaluations in this run. |
| 402 |
"evaluations": [ # Output only. The evaluations that are part of this run. The list may contain evaluations of either type. This field is mutually exclusive with `evaluation_dataset`. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` |
| 403 |
"A String", |
| 404 |
], |
| 405 |
"goldenRunMethod": "A String", # Output only. The method used to run the evaluation. |
| 406 |
"initiatedBy": "A String", # Output only. The user who initiated the evaluation run. |
| 407 |
"latencyReport": { # Latency report for the evaluation run. # Output only. Latency report for the evaluation run. |
| 408 |
"callbackLatencies": [ # Output only. Unordered list. Latency metrics for each callback. |
| 409 |
{ # Latency metrics for a single callback. |
| 410 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the callback. |
| 411 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 412 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 413 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 414 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 415 |
}, |
| 416 |
"stage": "A String", # Output only. The stage of the callback. |
| 417 |
}, |
| 418 |
], |
| 419 |
"guardrailLatencies": [ # Output only. Unordered list. Latency metrics for each guardrail. |
| 420 |
{ # Latency metrics for a single guardrail. |
| 421 |
"guardrail": "A String", # Output only. The name of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`. |
| 422 |
"guardrailDisplayName": "A String", # Output only. The display name of the guardrail. |
| 423 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the guardrail. |
| 424 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 425 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 426 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 427 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 428 |
}, |
| 429 |
}, |
| 430 |
], |
| 431 |
"llmCallLatencies": [ # Output only. Unordered list. Latency metrics for each LLM call. |
| 432 |
{ # Latency metrics for a single LLM call. |
| 433 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the LLM call. |
| 434 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 435 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 436 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 437 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 438 |
}, |
| 439 |
"model": "A String", # Output only. The name of the model. |
| 440 |
}, |
| 441 |
], |
| 442 |
"sessionCount": 42, # Output only. The total number of sessions considered in the latency report. |
| 443 |
"toolLatencies": [ # Output only. Unordered list. Latency metrics for each tool. |
| 444 |
{ # Latency metrics for a single tool. |
| 445 |
"latencyMetrics": { # Latency metrics for a component. # Output only. The latency metrics for the tool. |
| 446 |
"callCount": 42, # Output only. The number of times the resource was called. |
| 447 |
"p50Latency": "A String", # Output only. The 50th percentile latency. |
| 448 |
"p90Latency": "A String", # Output only. The 90th percentile latency. |
| 449 |
"p99Latency": "A String", # Output only. The 99th percentile latency. |
| 450 |
}, |
| 451 |
"tool": "A String", # Output only. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. |
| 452 |
"toolDisplayName": "A String", # Output only. The display name of the tool. |
| 453 |
"toolsetTool": { # A tool that is created from a toolset. # Output only. The toolset tool identifier. |
| 454 |
"toolId": "A String", # Optional. The tool ID to filter the tools to retrieve the schema for. |
| 455 |
"toolset": "A String", # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` |
| 456 |
}, |
| 457 |
}, |
| 458 |
], |
| 459 |
}, |
| 460 |
"name": "A String", # Identifier. The unique identifier of the evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` |
| 461 |
"operation": "A String", # Output only. The operation that created this evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation}` |
| 462 |
"optimizationConfig": { # Configuration for running the optimization step after the evaluation run. # Optional. Configuration for running the optimization step after the evaluation run. If not set, the optimization step will not be run. |
| 463 |
"assistantSession": "A String", # Output only. The assistant session to use for the optimization based on this evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}` |
| 464 |
"errorMessage": "A String", # Output only. The error message if the optimization run failed. |
| 465 |
"generateLossReport": True or False, # Optional. Whether to generate a loss report. |
| 466 |
"lossReport": { # Output only. The generated loss report. |
| 467 |
"a_key": "", # Properties of the object. |
| 468 |
}, |
| 469 |
"reportSummary": "A String", # Output only. The summary of the loss report. |
| 470 |
"shouldSuggestFix": True or False, # Output only. Whether to suggest a fix for the losses. |
| 471 |
"status": "A String", # Output only. The status of the optimization run. |
| 472 |
}, |
| 473 |
"personaRunConfigs": [ # Output only. The configuration to use for the run per persona. |
| 474 |
{ # Configuration for running an evaluation for a specific persona. |
| 475 |
"persona": "A String", # Optional. The persona to use for the evaluation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` |
| 476 |
"taskCount": 42, # Optional. The number of tasks to run for the persona. |
| 477 |
}, |
| 478 |
], |
| 479 |
"progress": { # The progress of the evaluation run. # Output only. The progress of the evaluation run. |
| 480 |
"completedCount": 42, # Output only. Number of evaluation results that finished successfully. (EvaluationResult.execution_state is COMPLETED). |
| 481 |
"errorCount": 42, # Output only. Number of evaluation results that failed to execute. (EvaluationResult.execution_state is ERROR). |
| 482 |
"failedCount": 42, # Output only. Number of completed evaluation results with an outcome of FAIL. (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is FAIL). |
| 483 |
"passedCount": 42, # Output only. Number of completed evaluation results with an outcome of PASS. (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is PASS). |
| 484 |
"totalCount": 42, # Output only. Total number of evaluation results in this run. |
| 485 |
}, |
| 486 |
"runCount": 42, # Output only. The number of times the evaluations inside the run were run. |
| 487 |
"scheduledEvaluationRun": "A String", # Output only. The scheduled evaluation run resource name that created this evaluation run. This field is only set if the evaluation run was created by a scheduled evaluation run. Format: `projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}` |
| 488 |
"state": "A String", # Output only. The state of the evaluation run. |
| 489 |
}, |
| 490 |
], |
| 491 |
"nextPageToken": "A String", # A token that can be sent as ListEvaluationRunsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages. |
| 492 |
}</pre> |
| 493 |
</div> |
| 494 |
|
| 495 |
<div class="method"> |
| 496 |
<code class="details" id="list_next">list_next()</code> |
| 497 |
<pre>Retrieves the next page of results. |
| 498 |
|
| 499 |
Args: |
| 500 |
previous_request: The request for the previous page. (required) |
| 501 |
previous_response: The response from the request for the previous page. (required) |
| 502 |
|
| 503 |
Returns: |
| 504 |
A request object that you can call 'execute()' on to request the next |
| 505 |
page. Returns None if there are no more items in the collection. |
| 506 |
</pre> |
| 507 |
</div> |
| 508 |
|
| 509 |
</body></html> |