blob: ecfb9bbf9f93e1049fe27aa69d16153937ba8d25 [file] [log] [blame] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<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> . <a href="ces_v1beta.projects.locations.apps.evaluations.results.html">results</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes an evaluation result.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets details of the specified evaluation result.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all evaluation results for a given evaluation.</p>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Deletes an evaluation result.
Args:
name: string, Required. The resource name of the evaluation result to delete. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # 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); }
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets details of the specified evaluation result.
Args:
name: string, Required. The resource name of the evaluation result to retrieve. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An evaluation result represents the output of running an Evaluation.
&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}`
&quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
&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.
&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.
&quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
&quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
&quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
&quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
&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;.
&quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
},
&quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
&quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
&quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
},
&quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
&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;.
&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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&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.
},
&quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
&quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
&quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
},
&quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
&quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
&quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
&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.
},
&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.
&quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
},
&quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
&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.
&quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
&quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
},
},
&quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
&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.
&quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
},
&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}`
&quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
&quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
&quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
&quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
{ # The result of a single evaluation expectation.
&quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
&quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
},
],
&quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
{ # The result of running a single turn of the golden conversation.
&quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
&quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
&quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
&quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
},
&quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
{ # Specifies the expectation and the result of that expectation.
&quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
&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.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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;.
&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.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
&quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
&quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
&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
&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.
&quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
},
&quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
&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.
&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.
},
},
],
&quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
&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
&quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
},
&quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
&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.
&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.
},
&quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
&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
&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.
&quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
},
&quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
{ # The latency of a span execution.
&quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
&quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
&quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
&quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
},
],
&quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
{ # The latency of a tool call execution.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
&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}`.
},
],
&quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
&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.
&quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
},
],
},
&quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
&quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
&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}`
&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.
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
&quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
&quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
&quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
&quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
&quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
&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.
&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;
},
},
&quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
&quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
&quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
&quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
{ # The result of a single evaluation expectation.
&quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
&quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
},
],
&quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
{ # The outcome of a scenario expectation.
&quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
&quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
&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.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
},
},
&quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
},
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
},
],
&quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
{ # The result of the hallucination check for a single turn.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
&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
&quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
},
],
&quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
{ # The outcome of the evaluation against the rubric.
&quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
&quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
&quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
},
],
&quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
{ # The latency of a span execution.
&quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
&quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
&quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
&quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
},
],
&quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
&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.
&quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
&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
&quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
},
&quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
{ # The latency of a tool call execution.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
&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}`.
},
],
&quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
{ # Facts about the user as a key value pair.
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
&quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
},
],
&quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
&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
&quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
},
},
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists all evaluation results for a given evaluation.
Args:
parent: string, Required. The resource name of the evaluation to list evaluation results from. To filter by evaluation run, use `-` as the evaluation ID and specify the evaluation run ID in the filter. For example: `projects/{project}/locations/{location}/apps/{app}/evaluations/-` (required)
filter: string, Optional. Filter to be applied when listing the evaluation results. See https://google.aip.dev/160 for more details.
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.
pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
pageToken: string, Optional. The next_page_token value returned from a previous list EvaluationService.ListEvaluationResults call.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for EvaluationService.ListEvaluationResults.
&quot;evaluationResults&quot;: [ # The list of evaluation results.
{ # An evaluation result represents the output of running an Evaluation.
&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}`
&quot;appVersionDisplayName&quot;: &quot;A String&quot;, # Output only. The display name of the `app_version` that the evaluation ran against.
&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.
&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.
&quot;config&quot;: { # EvaluationConfig configures settings for running the evaluation. # Output only. The configuration used in the evaluation run that resulted in this result.
&quot;evaluationChannel&quot;: &quot;A String&quot;, # Optional. The channel to evaluate.
&quot;inputAudioConfig&quot;: { # InputAudioConfig configures how the CES agent should interpret the incoming audio data. # Optional. Configuration for processing the input audio.
&quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the input audio data.
&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;.
&quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the input audio data.
},
&quot;outputAudioConfig&quot;: { # OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. # Optional. Configuration for generating the output audio.
&quot;audioEncoding&quot;: &quot;A String&quot;, # Required. The encoding of the output audio data.
&quot;sampleRateHertz&quot;: 42, # Required. The sample rate (in Hertz) of the output audio data.
},
&quot;toolCallBehaviour&quot;: &quot;A String&quot;, # Optional. Specifies whether the evaluation should use real tool calls or fake tools.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation result was created.
&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;.
&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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&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.
},
&quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Error information for the evaluation result.
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
&quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
&quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
},
&quot;evaluationMetricsThresholds&quot;: { # Threshold settings for metrics in an Evaluation. # Output only. The evaluation thresholds for the result.
&quot;goldenEvaluationMetricsThresholds&quot;: { # Settings for golden evaluations. # Optional. The golden evaluation metrics thresholds.
&quot;expectationLevelMetricsThresholds&quot;: { # Expectation level metrics thresholds. # Optional. The expectation level metrics thresholds.
&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.
},
&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.
&quot;extraToolCallBehavior&quot;: &quot;A String&quot;, # Optional. Behavior for extra tool calls. Defaults to FAIL.
},
&quot;turnLevelMetricsThresholds&quot;: { # Turn level metrics thresholds. # Optional. The turn level metrics thresholds.
&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.
&quot;semanticSimilarityChannel&quot;: &quot;A String&quot;, # Optional. The semantic similarity channel to use for evaluation.
&quot;semanticSimilaritySuccessThreshold&quot;: 42, # Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is &gt;= 3.
},
},
&quot;goldenHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for golden evaluations.
&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.
&quot;scenarioHallucinationMetricBehavior&quot;: &quot;A String&quot;, # Optional. The hallucination metric behavior for scenario evaluations.
},
&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}`
&quot;evaluationStatus&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE.
&quot;executionState&quot;: &quot;A String&quot;, # Output only. The state of the evaluation result execution.
&quot;goldenResult&quot;: { # The result of a golden evaluation. # Output only. The outcome of a golden evaluation.
&quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
{ # The result of a single evaluation expectation.
&quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
&quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
},
],
&quot;turnReplayResults&quot;: [ # Output only. The result of running each turn of the golden conversation.
{ # The result of running a single turn of the golden conversation.
&quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated for this turn.
&quot;errorInfo&quot;: { # Information about an error encountered during an evaluation execution. # Output only. Information about the error that occurred during this turn.
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The error message.
&quot;errorType&quot;: &quot;A String&quot;, # Output only. The type of error.
&quot;sessionId&quot;: &quot;A String&quot;, # Output only. The session ID for the conversation that caused the error.
},
&quot;expectationOutcome&quot;: [ # Output only. The outcome of each expectation.
{ # Specifies the expectation and the result of that expectation.
&quot;expectation&quot;: { # Represents a single, checkable requirement. # Output only. The expectation that was evaluated.
&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.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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;.
&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.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
&quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The result of the agent response expectation.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;observedToolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The result of the tool call expectation.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the expectation.
&quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
&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
&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.
&quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
},
&quot;toolInvocationResult&quot;: { # The result of the tool invocation check. # Output only. The result of the tool invocation check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. A free text explanation for the tool invocation result.
&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.
&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.
},
},
],
&quot;hallucinationResult&quot;: { # The result of the hallucination check for a single turn. # Output only. The result of the hallucination check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
&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
&quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
},
&quot;overallToolInvocationResult&quot;: { # The result of the overall tool invocation check. # Output only. The result of the overall tool invocation check.
&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.
&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.
},
&quot;semanticSimilarityResult&quot;: { # The result of the semantic similarity check. # Output only. The result of the semantic similarity check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the semantic similarity score.
&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
&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.
&quot;score&quot;: 42, # Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
},
&quot;spanLatencies&quot;: [ # Output only. The latency of spans in the turn.
{ # The latency of a span execution.
&quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
&quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
&quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
&quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
},
],
&quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call in the turn.
{ # The latency of a tool call execution.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
&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}`.
},
],
&quot;toolInvocationScore&quot;: 3.14, # Output only. Deprecated. Use OverallToolInvocationResult instead.
&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.
&quot;turnLatency&quot;: &quot;A String&quot;, # Output only. Duration of the turn.
},
],
},
&quot;goldenRunMethod&quot;: &quot;A String&quot;, # Output only. The method used to run the golden evaluation.
&quot;initiatedBy&quot;: &quot;A String&quot;, # Output only. The user who initiated the evaluation run that resulted in this result.
&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}`
&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.
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the persona.
&quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the persona. Unique within an app.
&quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the persona. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
&quot;personality&quot;: &quot;A String&quot;, # Required. An instruction for the agent on how to behave in the evaluation.
&quot;speechConfig&quot;: { # Configuration for Text-to-Speech generation. # Optional. Configuration for how the persona sounds (TTS settings).
&quot;environment&quot;: &quot;A String&quot;, # Optional. The simulated audio environment.
&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.
&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;
},
},
&quot;scenarioResult&quot;: { # The outcome of a scenario evaluation. # Output only. The outcome of a scenario evaluation.
&quot;allExpectationsSatisfied&quot;: True or False, # Output only. Whether all expectations were satisfied for this turn.
&quot;conversation&quot;: &quot;A String&quot;, # Output only. The conversation that was generated in the scenario.
&quot;evaluationExpectationResults&quot;: [ # Output only. The results of the evaluation expectations.
{ # The result of a single evaluation expectation.
&quot;evaluationExpectation&quot;: &quot;A String&quot;, # Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the result.
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the evaluation expectation.
&quot;prompt&quot;: &quot;A String&quot;, # Output only. The prompt that was used for the evaluation.
},
],
&quot;expectationOutcomes&quot;: [ # Output only. The outcome of each expectation.
{ # The outcome of a scenario expectation.
&quot;expectation&quot;: { # The expectation to evaluate the conversation produced by the simulation. # Output only. The expectation that was evaluated.
&quot;agentResponse&quot;: { # A message within a conversation. # Optional. The agent response to be evaluated.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&quot;toolExpectation&quot;: { # The tool call and response pair to be evaluated. # Optional. The tool call and response pair to be evaluated.
&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.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&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.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
},
},
&quot;observedAgentResponse&quot;: { # A message within a conversation. # Output only. The observed agent response.
&quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
{ # A chunk of content within a message.
&quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
&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}`
},
&quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
},
&quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
&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
},
&quot;payload&quot;: { # Optional. Custom payload data.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
&quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
],
&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.
&quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
},
&quot;observedToolCall&quot;: { # The observed tool call and response. # Output only. The observed tool call.
&quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Output only. The observed tool call.
&quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&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.
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
&quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Output only. The observed tool response.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
&quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
&quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
},
},
&quot;outcome&quot;: &quot;A String&quot;, # Output only. The outcome of the ScenarioExpectation.
},
],
&quot;hallucinationResult&quot;: [ # Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
{ # The result of the hallucination check for a single turn.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the hallucination score.
&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
&quot;score&quot;: 42, # Output only. The hallucination score. Can be -1, 0, 1.
},
],
&quot;rubricOutcomes&quot;: [ # Output only. The outcome of the rubric.
{ # The outcome of the evaluation against the rubric.
&quot;rubric&quot;: &quot;A String&quot;, # Output only. The rubric that was used to evaluate the conversation.
&quot;score&quot;: 3.14, # Output only. The score of the conversation against the rubric.
&quot;scoreExplanation&quot;: &quot;A String&quot;, # Output only. The rater&#x27;s response to the rubric.
},
],
&quot;spanLatencies&quot;: [ # Output only. The latency of spans in the conversation.
{ # The latency of a span execution.
&quot;callback&quot;: &quot;A String&quot;, # Output only. The name of the user callback span.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the span. Applicable to tool and guardrail spans.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of span.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of span.
&quot;model&quot;: &quot;A String&quot;, # Output only. The name of the LLM span.
&quot;resource&quot;: &quot;A String&quot;, # Output only. The resource name of the guardrail or tool spans.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of span.
&quot;toolset&quot;: { # A tool that is created from a toolset. # Output only. The toolset tool identifier.
&quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
&quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
},
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of span.
},
],
&quot;task&quot;: &quot;A String&quot;, # Output only. The task that was used when running the scenario for this result.
&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.
&quot;taskCompletionResult&quot;: { # The result of the task completion check for the conversation. # Output only. The result of the task completion check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the task completion score.
&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
&quot;score&quot;: 42, # Output only. The task completion score. Can be -1, 0, 1
},
&quot;toolCallLatencies&quot;: [ # Output only. The latency of each tool call execution in the conversation.
{ # The latency of a tool call execution.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the tool.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the tool call execution.
&quot;executionLatency&quot;: &quot;A String&quot;, # Output only. The latency of the tool call execution.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the tool call execution.
&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}`.
},
],
&quot;userFacts&quot;: [ # Output only. The user facts that were used by the scenario for this result.
{ # Facts about the user as a key value pair.
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the user fact.
&quot;value&quot;: &quot;A String&quot;, # Required. The value of the user fact.
},
],
&quot;userGoalSatisfactionResult&quot;: { # The result of a user goal satisfaction check for a conversation. # Output only. The result of the user goal satisfaction check.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. The explanation for the user task satisfaction score.
&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
&quot;score&quot;: 42, # Output only. The user task satisfaction score. Can be -1, 0, 1.
},
},
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListEvaluationResultsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next()</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>