blob: 868316b9dcbc60b0f3b0f3e5f9f709b22716b101 [file] [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="aiplatform_v1.html">Vertex AI API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.batchPredictionJobs.html">batchPredictionJobs()</a></code>
</p>
<p class="firstline">Returns the batchPredictionJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.customJobs.html">customJobs()</a></code>
</p>
<p class="firstline">Returns the customJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.dataLabelingJobs.html">dataLabelingJobs()</a></code>
</p>
<p class="firstline">Returns the dataLabelingJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.datasets.html">datasets()</a></code>
</p>
<p class="firstline">Returns the datasets Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.deploymentResourcePools.html">deploymentResourcePools()</a></code>
</p>
<p class="firstline">Returns the deploymentResourcePools Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.endpoints.html">endpoints()</a></code>
</p>
<p class="firstline">Returns the endpoints Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.featureGroups.html">featureGroups()</a></code>
</p>
<p class="firstline">Returns the featureGroups Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.featureOnlineStores.html">featureOnlineStores()</a></code>
</p>
<p class="firstline">Returns the featureOnlineStores Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.featurestores.html">featurestores()</a></code>
</p>
<p class="firstline">Returns the featurestores Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.hyperparameterTuningJobs.html">hyperparameterTuningJobs()</a></code>
</p>
<p class="firstline">Returns the hyperparameterTuningJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.indexEndpoints.html">indexEndpoints()</a></code>
</p>
<p class="firstline">Returns the indexEndpoints Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.indexes.html">indexes()</a></code>
</p>
<p class="firstline">Returns the indexes Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.metadataStores.html">metadataStores()</a></code>
</p>
<p class="firstline">Returns the metadataStores Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.migratableResources.html">migratableResources()</a></code>
</p>
<p class="firstline">Returns the migratableResources Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.modelDeploymentMonitoringJobs.html">modelDeploymentMonitoringJobs()</a></code>
</p>
<p class="firstline">Returns the modelDeploymentMonitoringJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.models.html">models()</a></code>
</p>
<p class="firstline">Returns the models Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.nasJobs.html">nasJobs()</a></code>
</p>
<p class="firstline">Returns the nasJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.notebookExecutionJobs.html">notebookExecutionJobs()</a></code>
</p>
<p class="firstline">Returns the notebookExecutionJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.notebookRuntimeTemplates.html">notebookRuntimeTemplates()</a></code>
</p>
<p class="firstline">Returns the notebookRuntimeTemplates Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.notebookRuntimes.html">notebookRuntimes()</a></code>
</p>
<p class="firstline">Returns the notebookRuntimes Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.operations.html">operations()</a></code>
</p>
<p class="firstline">Returns the operations Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.persistentResources.html">persistentResources()</a></code>
</p>
<p class="firstline">Returns the persistentResources Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.pipelineJobs.html">pipelineJobs()</a></code>
</p>
<p class="firstline">Returns the pipelineJobs Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.publishers.html">publishers()</a></code>
</p>
<p class="firstline">Returns the publishers Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.schedules.html">schedules()</a></code>
</p>
<p class="firstline">Returns the schedules Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.specialistPools.html">specialistPools()</a></code>
</p>
<p class="firstline">Returns the specialistPools Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.studies.html">studies()</a></code>
</p>
<p class="firstline">Returns the studies Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.tensorboards.html">tensorboards()</a></code>
</p>
<p class="firstline">Returns the tensorboards Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.trainingPipelines.html">trainingPipelines()</a></code>
</p>
<p class="firstline">Returns the trainingPipelines Resource.</p>
<p class="toc_element">
<code><a href="aiplatform_v1.projects.locations.tuningJobs.html">tuningJobs()</a></code>
</p>
<p class="firstline">Returns the tuningJobs Resource.</p>
<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="#evaluateInstances">evaluateInstances(location, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Evaluates instances based on a given metric.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets information about a location.</p>
<p class="toc_element">
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists information about the supported locations for this service.</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="evaluateInstances">evaluateInstances(location, body=None, x__xgafv=None)</code>
<pre>Evaluates instances based on a given metric.
Args:
location: string, Required. The resource name of the Location to evaluate the instances. Format: `projects/{project}/locations/{location}` (required)
body: object, The request body.
The object takes the form of:
{ # Request message for EvaluationService.EvaluateInstances.
&quot;bleuInput&quot;: { # Input for bleu metric. # Instances and metric spec for bleu metric.
&quot;instances&quot;: [ # Required. Repeated bleu instances.
{ # Spec for bleu instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1. # Required. Spec for bleu score metric.
&quot;useEffectiveOrder&quot;: True or False, # Optional. Whether to use_effective_order to compute bleu score.
},
},
&quot;coherenceInput&quot;: { # Input for coherence metric. # Input for coherence metric.
&quot;instance&quot;: { # Spec for coherence instance. # Required. Coherence instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
},
&quot;metricSpec&quot;: { # Spec for coherence score metric. # Required. Spec for coherence score metric.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;exactMatchInput&quot;: { # Input for exact match metric. # Auto metric instances. Instances and metric spec for exact match metric.
&quot;instances&quot;: [ # Required. Repeated exact match instances.
{ # Spec for exact match instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for exact match metric - returns 1 if prediction and reference exactly matches, otherwise 0. # Required. Spec for exact match metric.
},
},
&quot;fluencyInput&quot;: { # Input for fluency metric. # LLM-based metric instance. General text generation metrics, applicable to other categories. Input for fluency metric.
&quot;instance&quot;: { # Spec for fluency instance. # Required. Fluency instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
},
&quot;metricSpec&quot;: { # Spec for fluency score metric. # Required. Spec for fluency score metric.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;fulfillmentInput&quot;: { # Input for fulfillment metric. # Input for fulfillment metric.
&quot;instance&quot;: { # Spec for fulfillment instance. # Required. Fulfillment instance.
&quot;instruction&quot;: &quot;A String&quot;, # Required. Inference instruction prompt to compare prediction with.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
},
&quot;metricSpec&quot;: { # Spec for fulfillment metric. # Required. Spec for fulfillment score metric.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;groundednessInput&quot;: { # Input for groundedness metric. # Input for groundedness metric.
&quot;instance&quot;: { # Spec for groundedness instance. # Required. Groundedness instance.
&quot;context&quot;: &quot;A String&quot;, # Required. Background information provided in context used to compare against the prediction.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
},
&quot;metricSpec&quot;: { # Spec for groundedness metric. # Required. Spec for groundedness metric.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;pairwiseMetricInput&quot;: { # Input for pairwise metric. # Input for pairwise metric.
&quot;instance&quot;: { # Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset. # Required. Pairwise metric instance.
&quot;jsonInstance&quot;: &quot;A String&quot;, # Instance specified as a json string. String key-value pairs are expected in the json_instance to render PairwiseMetricSpec.instance_prompt_template.
},
&quot;metricSpec&quot;: { # Spec for pairwise metric. # Required. Spec for pairwise metric.
&quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pairwise metric.
},
},
&quot;pairwiseQuestionAnsweringQualityInput&quot;: { # Input for pairwise question answering quality metric. # Input for pairwise question answering quality metric.
&quot;instance&quot;: { # Spec for pairwise question answering quality instance. # Required. Pairwise question answering quality instance.
&quot;baselinePrediction&quot;: &quot;A String&quot;, # Required. Output of the baseline model.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to answer the question.
&quot;instruction&quot;: &quot;A String&quot;, # Required. Question Answering prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the candidate model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for pairwise question answering quality score metric. # Required. Spec for pairwise question answering quality score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute question answering quality.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;pairwiseSummarizationQualityInput&quot;: { # Input for pairwise summarization quality metric. # Input for pairwise summarization quality metric.
&quot;instance&quot;: { # Spec for pairwise summarization quality instance. # Required. Pairwise summarization quality instance.
&quot;baselinePrediction&quot;: &quot;A String&quot;, # Required. Output of the baseline model.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to be summarized.
&quot;instruction&quot;: &quot;A String&quot;, # Required. Summarization prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the candidate model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for pairwise summarization quality score metric. # Required. Spec for pairwise summarization quality score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute pairwise summarization quality.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;pointwiseMetricInput&quot;: { # Input for pointwise metric. # Input for pointwise metric.
&quot;instance&quot;: { # Pointwise metric instance. Usually one instance corresponds to one row in an evaluation dataset. # Required. Pointwise metric instance.
&quot;jsonInstance&quot;: &quot;A String&quot;, # Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.instance_prompt_template.
},
&quot;metricSpec&quot;: { # Spec for pointwise metric. # Required. Spec for pointwise metric.
&quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pointwise metric.
},
},
&quot;questionAnsweringCorrectnessInput&quot;: { # Input for question answering correctness metric. # Input for question answering correctness metric.
&quot;instance&quot;: { # Spec for question answering correctness instance. # Required. Question answering correctness instance.
&quot;context&quot;: &quot;A String&quot;, # Optional. Text provided as context to answer the question.
&quot;instruction&quot;: &quot;A String&quot;, # Required. The question asked and other instruction in the inference prompt.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for question answering correctness metric. # Required. Spec for question answering correctness score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute question answering correctness.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;questionAnsweringHelpfulnessInput&quot;: { # Input for question answering helpfulness metric. # Input for question answering helpfulness metric.
&quot;instance&quot;: { # Spec for question answering helpfulness instance. # Required. Question answering helpfulness instance.
&quot;context&quot;: &quot;A String&quot;, # Optional. Text provided as context to answer the question.
&quot;instruction&quot;: &quot;A String&quot;, # Required. The question asked and other instruction in the inference prompt.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for question answering helpfulness metric. # Required. Spec for question answering helpfulness score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute question answering helpfulness.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;questionAnsweringQualityInput&quot;: { # Input for question answering quality metric. # Input for question answering quality metric.
&quot;instance&quot;: { # Spec for question answering quality instance. # Required. Question answering quality instance.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to answer the question.
&quot;instruction&quot;: &quot;A String&quot;, # Required. Question Answering prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for question answering quality score metric. # Required. Spec for question answering quality score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute question answering quality.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;questionAnsweringRelevanceInput&quot;: { # Input for question answering relevance metric. # Input for question answering relevance metric.
&quot;instance&quot;: { # Spec for question answering relevance instance. # Required. Question answering relevance instance.
&quot;context&quot;: &quot;A String&quot;, # Optional. Text provided as context to answer the question.
&quot;instruction&quot;: &quot;A String&quot;, # Required. The question asked and other instruction in the inference prompt.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for question answering relevance metric. # Required. Spec for question answering relevance score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute question answering relevance.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;rougeInput&quot;: { # Input for rouge metric. # Instances and metric spec for rouge metric.
&quot;instances&quot;: [ # Required. Repeated rouge instances.
{ # Spec for rouge instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for rouge score metric - calculates the recall of n-grams in prediction as compared to reference - returns a score ranging between 0 and 1. # Required. Spec for rouge score metric.
&quot;rougeType&quot;: &quot;A String&quot;, # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
&quot;splitSummaries&quot;: True or False, # Optional. Whether to split summaries while using rougeLsum.
&quot;useStemmer&quot;: True or False, # Optional. Whether to use stemmer to compute rouge score.
},
},
&quot;safetyInput&quot;: { # Input for safety metric. # Input for safety metric.
&quot;instance&quot;: { # Spec for safety instance. # Required. Safety instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
},
&quot;metricSpec&quot;: { # Spec for safety metric. # Required. Spec for safety metric.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;summarizationHelpfulnessInput&quot;: { # Input for summarization helpfulness metric. # Input for summarization helpfulness metric.
&quot;instance&quot;: { # Spec for summarization helpfulness instance. # Required. Summarization helpfulness instance.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to be summarized.
&quot;instruction&quot;: &quot;A String&quot;, # Optional. Summarization prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for summarization helpfulness score metric. # Required. Spec for summarization helpfulness score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute summarization helpfulness.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;summarizationQualityInput&quot;: { # Input for summarization quality metric. # Input for summarization quality metric.
&quot;instance&quot;: { # Spec for summarization quality instance. # Required. Summarization quality instance.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to be summarized.
&quot;instruction&quot;: &quot;A String&quot;, # Required. Summarization prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for summarization quality score metric. # Required. Spec for summarization quality score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute summarization quality.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;summarizationVerbosityInput&quot;: { # Input for summarization verbosity metric. # Input for summarization verbosity metric.
&quot;instance&quot;: { # Spec for summarization verbosity instance. # Required. Summarization verbosity instance.
&quot;context&quot;: &quot;A String&quot;, # Required. Text to be summarized.
&quot;instruction&quot;: &quot;A String&quot;, # Optional. Summarization prompt for LLM.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Optional. Ground truth used to compare against the prediction.
},
&quot;metricSpec&quot;: { # Spec for summarization verbosity score metric. # Required. Spec for summarization verbosity score metric.
&quot;useReference&quot;: True or False, # Optional. Whether to use instance.reference to compute summarization verbosity.
&quot;version&quot;: 42, # Optional. Which version to use for evaluation.
},
},
&quot;toolCallValidInput&quot;: { # Input for tool call valid metric. # Tool call metric instances. Input for tool call valid metric.
&quot;instances&quot;: [ # Required. Repeated tool call valid instances.
{ # Spec for tool call valid instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for tool call valid metric. # Required. Spec for tool call valid metric.
},
},
&quot;toolNameMatchInput&quot;: { # Input for tool name match metric. # Input for tool name match metric.
&quot;instances&quot;: [ # Required. Repeated tool name match instances.
{ # Spec for tool name match instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for tool name match metric. # Required. Spec for tool name match metric.
},
},
&quot;toolParameterKeyMatchInput&quot;: { # Input for tool parameter key match metric. # Input for tool parameter key match metric.
&quot;instances&quot;: [ # Required. Repeated tool parameter key match instances.
{ # Spec for tool parameter key match instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for tool parameter key match metric. # Required. Spec for tool parameter key match metric.
},
},
&quot;toolParameterKvMatchInput&quot;: { # Input for tool parameter key value match metric. # Input for tool parameter key value match metric.
&quot;instances&quot;: [ # Required. Repeated tool parameter key value match instances.
{ # Spec for tool parameter key value match instance.
&quot;prediction&quot;: &quot;A String&quot;, # Required. Output of the evaluated model.
&quot;reference&quot;: &quot;A String&quot;, # Required. Ground truth used to compare against the prediction.
},
],
&quot;metricSpec&quot;: { # Spec for tool parameter key value match metric. # Required. Spec for tool parameter key value match metric.
&quot;useStrictStringMatch&quot;: True or False, # Optional. Whether to use STRCIT string match on parameter values.
},
},
}
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.EvaluateInstances.
&quot;bleuResults&quot;: { # Results for bleu metric. # Results for bleu metric.
&quot;bleuMetricValues&quot;: [ # Output only. Bleu metric values.
{ # Bleu metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Bleu score.
},
],
},
&quot;coherenceResult&quot;: { # Spec for coherence result. # Result for coherence metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for coherence score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for coherence score.
&quot;score&quot;: 3.14, # Output only. Coherence score.
},
&quot;exactMatchResults&quot;: { # Results for exact match metric. # Auto metric evaluation results. Results for exact match metric.
&quot;exactMatchMetricValues&quot;: [ # Output only. Exact match metric values.
{ # Exact match metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Exact match score.
},
],
},
&quot;fluencyResult&quot;: { # Spec for fluency result. # LLM-based metric evaluation result. General text generation metrics, applicable to other categories. Result for fluency metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for fluency score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for fluency score.
&quot;score&quot;: 3.14, # Output only. Fluency score.
},
&quot;fulfillmentResult&quot;: { # Spec for fulfillment result. # Result for fulfillment metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for fulfillment score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for fulfillment score.
&quot;score&quot;: 3.14, # Output only. Fulfillment score.
},
&quot;groundednessResult&quot;: { # Spec for groundedness result. # Result for groundedness metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for groundedness score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for groundedness score.
&quot;score&quot;: 3.14, # Output only. Groundedness score.
},
&quot;pairwiseMetricResult&quot;: { # Spec for pairwise metric result. # Result for pairwise metric.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for pairwise metric score.
&quot;pairwiseChoice&quot;: &quot;A String&quot;, # Output only. Pairwise metric choice.
},
&quot;pairwiseQuestionAnsweringQualityResult&quot;: { # Spec for pairwise question answering quality result. # Result for pairwise question answering quality metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for question answering quality score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for question answering quality score.
&quot;pairwiseChoice&quot;: &quot;A String&quot;, # Output only. Pairwise question answering prediction choice.
},
&quot;pairwiseSummarizationQualityResult&quot;: { # Spec for pairwise summarization quality result. # Result for pairwise summarization quality metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for summarization quality score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for summarization quality score.
&quot;pairwiseChoice&quot;: &quot;A String&quot;, # Output only. Pairwise summarization prediction choice.
},
&quot;pointwiseMetricResult&quot;: { # Spec for pointwise metric result. # Generic metrics. Result for pointwise metric.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for pointwise metric score.
&quot;score&quot;: 3.14, # Output only. Pointwise metric score.
},
&quot;questionAnsweringCorrectnessResult&quot;: { # Spec for question answering correctness result. # Result for question answering correctness metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for question answering correctness score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for question answering correctness score.
&quot;score&quot;: 3.14, # Output only. Question Answering Correctness score.
},
&quot;questionAnsweringHelpfulnessResult&quot;: { # Spec for question answering helpfulness result. # Result for question answering helpfulness metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for question answering helpfulness score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for question answering helpfulness score.
&quot;score&quot;: 3.14, # Output only. Question Answering Helpfulness score.
},
&quot;questionAnsweringQualityResult&quot;: { # Spec for question answering quality result. # Question answering only metrics. Result for question answering quality metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for question answering quality score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for question answering quality score.
&quot;score&quot;: 3.14, # Output only. Question Answering Quality score.
},
&quot;questionAnsweringRelevanceResult&quot;: { # Spec for question answering relevance result. # Result for question answering relevance metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for question answering relevance score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for question answering relevance score.
&quot;score&quot;: 3.14, # Output only. Question Answering Relevance score.
},
&quot;rougeResults&quot;: { # Results for rouge metric. # Results for rouge metric.
&quot;rougeMetricValues&quot;: [ # Output only. Rouge metric values.
{ # Rouge metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Rouge score.
},
],
},
&quot;safetyResult&quot;: { # Spec for safety result. # Result for safety metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for safety score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for safety score.
&quot;score&quot;: 3.14, # Output only. Safety score.
},
&quot;summarizationHelpfulnessResult&quot;: { # Spec for summarization helpfulness result. # Result for summarization helpfulness metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for summarization helpfulness score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for summarization helpfulness score.
&quot;score&quot;: 3.14, # Output only. Summarization Helpfulness score.
},
&quot;summarizationQualityResult&quot;: { # Spec for summarization quality result. # Summarization only metrics. Result for summarization quality metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for summarization quality score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for summarization quality score.
&quot;score&quot;: 3.14, # Output only. Summarization Quality score.
},
&quot;summarizationVerbosityResult&quot;: { # Spec for summarization verbosity result. # Result for summarization verbosity metric.
&quot;confidence&quot;: 3.14, # Output only. Confidence for summarization verbosity score.
&quot;explanation&quot;: &quot;A String&quot;, # Output only. Explanation for summarization verbosity score.
&quot;score&quot;: 3.14, # Output only. Summarization Verbosity score.
},
&quot;toolCallValidResults&quot;: { # Results for tool call valid metric. # Tool call metrics. Results for tool call valid metric.
&quot;toolCallValidMetricValues&quot;: [ # Output only. Tool call valid metric values.
{ # Tool call valid metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Tool call valid score.
},
],
},
&quot;toolNameMatchResults&quot;: { # Results for tool name match metric. # Results for tool name match metric.
&quot;toolNameMatchMetricValues&quot;: [ # Output only. Tool name match metric values.
{ # Tool name match metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Tool name match score.
},
],
},
&quot;toolParameterKeyMatchResults&quot;: { # Results for tool parameter key match metric. # Results for tool parameter key match metric.
&quot;toolParameterKeyMatchMetricValues&quot;: [ # Output only. Tool parameter key match metric values.
{ # Tool parameter key match metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Tool parameter key match score.
},
],
},
&quot;toolParameterKvMatchResults&quot;: { # Results for tool parameter key value match metric. # Results for tool parameter key value match metric.
&quot;toolParameterKvMatchMetricValues&quot;: [ # Output only. Tool parameter key value match metric values.
{ # Tool parameter key value match metric value for an instance.
&quot;score&quot;: 3.14, # Output only. Tool parameter key value match score.
},
],
},
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets information about a location.
Args:
name: string, Resource name for the location. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;locationId&quot;: &quot;A String&quot;, # The canonical id for this location. For example: `&quot;us-east1&quot;`.
&quot;metadata&quot;: { # Service-specific metadata. For example the available capacity at the given location.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name for the location, which may vary between implementations. For example: `&quot;projects/example-project/locations/us-east1&quot;`
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists information about the supported locations for this service.
Args:
name: string, The resource that owns the locations collection, if applicable. (required)
filter: string, A filter to narrow down results to a preferred subset. The filtering language accepts strings like `&quot;displayName=tokyo&quot;`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
pageSize: integer, The maximum number of results to return. If not set, the service selects a default.
pageToken: string, A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;locationId&quot;: &quot;A String&quot;, # The canonical id for this location. For example: `&quot;us-east1&quot;`.
&quot;metadata&quot;: { # Service-specific metadata. For example the available capacity at the given location.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name for the location, which may vary between implementations. For example: `&quot;projects/example-project/locations/us-east1&quot;`
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # The standard List next-page token.
}</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>