Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.evaluationRuns.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="aiplatform_v1beta1.html">Agent Platform API</a> . <a href="aiplatform_v1beta1.projects.html">projects</a> . <a href="aiplatform_v1beta1.projects.locations.html">locations</a> . <a href="aiplatform_v1beta1.projects.locations.evaluationRuns.html">evaluationRuns</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.projects.locations.evaluationRuns.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.</p>
85 <p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87 <p class="firstline">Close httplib2 connections.</p>
88 <p class="toc_element">
89 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Creates an Evaluation Run.</p>
91 <p class="toc_element">
92 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Deletes an Evaluation Run.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96 <p class="firstline">Gets an Evaluation Run.</p>
97 <p class="toc_element">
98 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Lists Evaluation Runs.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
106 <pre>Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.
107
108 Args:
109 name: string, Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Request message for EvaluationManagementService.CancelEvaluationRun.
114 }
115
116 x__xgafv: string, V1 error format.
117 Allowed values
118 1 - v1 error format
119 2 - v2 error format
120
121 Returns:
122 An object of the form:
123
124 { # 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); }
125 }</pre>
126 </div>
127
128 <div class="method">
129 <code class="details" id="close">close()</code>
130 <pre>Close httplib2 connections.</pre>
131 </div>
132
133 <div class="method">
134 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
135 <pre>Creates an Evaluation Run.
136
137 Args:
138 parent: string, Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}` (required)
139 body: object, The request body.
140 The object takes the form of:
141
142 { # EvaluationRun is a resource that represents a single evaluation run, which includes a set of prompts, model responses, evaluation configuration and the resulting metrics.
143 &quot;completionTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was completed.
144 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was created.
145 &quot;dataSource&quot;: { # The data source for the evaluation run. # Required. The data source for the evaluation run.
146 &quot;bigqueryRequestSet&quot;: { # The request set for the evaluation run. # Evaluation data in bigquery.
147 &quot;candidateResponseColumns&quot;: { # Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.
148 &quot;a_key&quot;: &quot;A String&quot;,
149 },
150 &quot;promptColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format.
151 &quot;rubricsColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the rubrics. This is in evaluation_rubric.RubricGroup format.
152 &quot;samplingConfig&quot;: { # The sampling config. # Optional. The sampling config for the bigquery resource.
153 &quot;samplingCount&quot;: 42, # Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100.
154 &quot;samplingDuration&quot;: &quot;A String&quot;, # Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0.
155 &quot;samplingMethod&quot;: &quot;A String&quot;, # Optional. The sampling method to use.
156 },
157 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId
158 },
159 &quot;evaluationSet&quot;: &quot;A String&quot;, # The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
160 },
161 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Evaluation Run.
162 &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. Only populated when the evaluation run&#x27;s state is FAILED or CANCELLED.
163 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
164 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
165 {
166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
167 },
168 ],
169 &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.
170 },
171 &quot;evaluationConfig&quot;: { # The Evalution configuration used for the evaluation run. # Optional. The configuration used for the evaluation. Optional when analysis_configs is provided.
172 &quot;autoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. The autorater config for the evaluation run.
173 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
174 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
175 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
176 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
177 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
178 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
179 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
180 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
181 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
182 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
183 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
184 },
185 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
186 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
187 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
188 },
189 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
190 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
191 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
192 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
193 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
194 },
195 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
196 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
197 { # Configuration for the model to configure output formatting and delivery.
198 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
199 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
200 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
201 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
202 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
203 },
204 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
205 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
206 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
207 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
208 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
209 },
210 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
211 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
212 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
213 },
214 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
215 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
216 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
217 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
218 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
219 },
220 },
221 ],
222 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
223 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
224 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
225 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
226 &quot;A String&quot;,
227 ],
228 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
229 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
230 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
231 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
232 ],
233 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
234 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
235 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
236 },
237 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
238 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
239 &quot;A String&quot;,
240 ],
241 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
242 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
243 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
244 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
245 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
246 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
247 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
248 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
249 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
250 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
251 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
252 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
253 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
254 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
255 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
256 },
257 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
258 &quot;A String&quot;,
259 ],
260 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
261 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
262 &quot;A String&quot;,
263 ],
264 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
265 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
266 },
267 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
268 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
269 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
270 },
271 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
272 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
273 },
274 },
275 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
276 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
277 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
278 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
279 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
280 { # Configuration for a single speaker in a multi-speaker setup.
281 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
282 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
283 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
284 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
285 },
286 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
287 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
288 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
289 },
290 },
291 },
292 ],
293 },
294 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
295 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
296 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
297 },
298 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
299 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
300 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
301 },
302 },
303 },
304 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
305 &quot;A String&quot;,
306 ],
307 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
308 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
309 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
310 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
311 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
312 },
313 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
314 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
315 },
316 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
317 },
318 &quot;datasetCustomMetrics&quot;: [ # Optional. Specifications for custom dataset-level aggregations.
319 { # Defines a custom dataset-level aggregation.
320 &quot;aggregationFunction&quot;: &quot;A String&quot;, # Required. The Python code string containing the aggregation function. Expected function signature: `def aggregate(instances: list[dict[str, Any]]) -&gt; dict[str, float]:` The `instances` argument is a list of dictionaries, where each dictionary represents a single evaluation result item. The structure of each dictionary corresponds to the fields in the `EvaluationResult` message. This includes: - `&quot;request&quot;`: Contains the original input data and model inputs (from `EvaluationResult.EvaluationRequest`). - `&quot;candidate_results&quot;`: Contains the results of any instance-level metrics (from `EvaluationResult.CandidateResults`). Example of a single item in the `instances` list: { &quot;request&quot;: { &quot;prompt&quot;: {&quot;text&quot;: &quot;What is the capital of France?&quot;}, &quot;golden_response&quot;: {&quot;text&quot;: &quot;Paris&quot;}, &quot;candidate_responses&quot;: [{&quot;candidate&quot;: &quot;model-v1&quot;, &quot;text&quot;: &quot;Paris&quot;}] }, &quot;candidate_results&quot;: [ {&quot;metric&quot;: &quot;exact_match&quot;, &quot;score&quot;: 1.0}, {&quot;metric&quot;: &quot;bleu&quot;, &quot;score&quot;: 0.9} ] }
321 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A display name for this custom summary metric. Used to prefix keys in the output summaryMetrics map. If not provided, a default name like &quot;dataset_custom_metric_1&quot;, &quot;dataset_custom_metric_2&quot;, etc., will be generated based on the order in the repeated field.
322 },
323 ],
324 &quot;lossAnalysisConfig&quot;: [ # Optional. Specifications for loss analysis. Each config can be specified for one metric.
325 { # Configuration for the loss analysis job.
326 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
327 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
328 },
329 ],
330 &quot;metrics&quot;: [ # Optional. The metrics to be calculated in the evaluation run. Required when analysis_configs is not set.
331 { # The metric used for evaluation runs.
332 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
333 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
335 },
336 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
337 },
338 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
339 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
341 },
342 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater).
343 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
344 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
345 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
346 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
347 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
348 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
349 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
350 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
351 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
352 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
353 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
354 },
355 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
356 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
357 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
358 },
359 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
360 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
361 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
362 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
363 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
364 },
365 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
366 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
367 { # Configuration for the model to configure output formatting and delivery.
368 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
369 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
370 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
371 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
372 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
373 },
374 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
375 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
376 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
377 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
378 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
379 },
380 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
381 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
382 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
383 },
384 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
385 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
386 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
387 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
388 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
389 },
390 },
391 ],
392 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
393 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
394 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
395 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
396 &quot;A String&quot;,
397 ],
398 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
399 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
400 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
401 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
402 ],
403 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
404 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
405 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
406 },
407 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
408 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
409 &quot;A String&quot;,
410 ],
411 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
412 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
413 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
414 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
415 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
416 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
417 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
418 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
419 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
420 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
421 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
422 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
423 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
424 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
425 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
426 },
427 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
428 &quot;A String&quot;,
429 ],
430 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
431 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
432 &quot;A String&quot;,
433 ],
434 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
435 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
436 },
437 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
438 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
439 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
440 },
441 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
442 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
443 },
444 },
445 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
446 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
447 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
448 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
449 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
450 { # Configuration for a single speaker in a multi-speaker setup.
451 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
452 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
453 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
454 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
455 },
456 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
457 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
458 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
459 },
460 },
461 },
462 ],
463 },
464 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
465 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
466 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
467 },
468 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
469 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
470 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
471 },
472 },
473 },
474 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
475 &quot;A String&quot;,
476 ],
477 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
478 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
479 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
480 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
481 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
482 },
483 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
484 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
485 },
486 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
487 },
488 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
489 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
490 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
491 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
493 },
494 },
495 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
496 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
497 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
498 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
499 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
500 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
501 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
502 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
503 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
504 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
505 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
506 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
507 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
508 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
509 },
510 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
511 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
512 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
513 },
514 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
515 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
516 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
517 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
518 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
519 },
520 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
521 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
522 { # Configuration for the model to configure output formatting and delivery.
523 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
524 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
525 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
526 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
527 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
528 },
529 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
530 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
531 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
532 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
533 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
534 },
535 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
536 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
537 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
538 },
539 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
540 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
541 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
542 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
543 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
544 },
545 },
546 ],
547 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
548 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
549 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
550 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
551 &quot;A String&quot;,
552 ],
553 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
554 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
555 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
556 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
557 ],
558 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
559 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
560 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
561 },
562 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
563 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
564 &quot;A String&quot;,
565 ],
566 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
567 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
568 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
569 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
570 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
571 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
572 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
573 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
574 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
575 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
576 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
577 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
578 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
579 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
580 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
581 },
582 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
583 &quot;A String&quot;,
584 ],
585 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
586 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
587 &quot;A String&quot;,
588 ],
589 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
590 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
591 },
592 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
593 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
594 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
595 },
596 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
597 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
598 },
599 },
600 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
601 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
602 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
603 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
604 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
605 { # Configuration for a single speaker in a multi-speaker setup.
606 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
607 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
608 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
609 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
610 },
611 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
612 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
613 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
614 },
615 },
616 },
617 ],
618 },
619 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
620 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
621 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
622 },
623 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
624 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
625 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
626 },
627 },
628 },
629 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
630 &quot;A String&quot;,
631 ],
632 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
633 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
634 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
635 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
636 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
637 },
638 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
639 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
640 },
641 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
642 },
643 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
644 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
645 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
646 &quot;A String&quot;,
647 ],
648 },
649 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
650 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
651 },
652 &quot;metric&quot;: &quot;A String&quot;, # Required. The name of the metric.
653 &quot;metricConfig&quot;: { # The metric used for running evaluations. # The metric config.
654 &quot;aggregationMetrics&quot;: [ # Optional. The aggregation metrics to use.
655 &quot;A String&quot;,
656 ],
657 &quot;bleuSpec&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. # Spec for bleu metric.
658 &quot;useEffectiveOrder&quot;: True or False, # Optional. Whether to use_effective_order to compute bleu score.
659 },
660 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
661 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
662 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
663 },
664 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
665 },
666 &quot;customCodeExecutionSpec&quot;: { # Specificies a metric that is populated by evaluating user-defined Python code. # Spec for Custom Code Execution metric.
667 &quot;evaluationFunction&quot;: &quot;A String&quot;, # Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -&gt; float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=&quot;The answer is 4.&quot;), reference=EvaluationInstance.InstanceData(text=&quot;4&quot;) ) ``` Example converted input: ``` { &#x27;response&#x27;: {&#x27;text&#x27;: &#x27;The answer is 4.&#x27;}, &#x27;reference&#x27;: {&#x27;text&#x27;: &#x27;4&#x27;} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -&gt; float: if instance&#x27;response&#x27; == instance&#x27;reference&#x27;: return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function.
668 },
669 &quot;exactMatchSpec&quot;: { # Spec for exact match metric - returns 1 if prediction and reference exactly matches, otherwise 0. # Spec for exact match metric.
670 },
671 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
672 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
673 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
674 },
675 &quot;judgeAutoraterConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Optional. Optional configuration for the judge LLM (Autorater).
676 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
677 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
678 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
679 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
680 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
681 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
682 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
683 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
684 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
685 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
686 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
687 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
688 },
689 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
690 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
691 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
692 },
693 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
694 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
695 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
696 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
697 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
698 },
699 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
700 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
701 { # Configuration for the model to configure output formatting and delivery.
702 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
703 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
704 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
705 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
706 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
707 },
708 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
709 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
710 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
711 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
712 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
713 },
714 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
715 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
716 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
717 },
718 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
719 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
720 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
721 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
722 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
723 },
724 },
725 ],
726 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
727 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
728 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
729 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
730 &quot;A String&quot;,
731 ],
732 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
733 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
734 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
735 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
736 ],
737 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
738 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
739 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
740 },
741 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
742 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
743 &quot;A String&quot;,
744 ],
745 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
746 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
747 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
748 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
749 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
750 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
751 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
752 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
753 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
754 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
755 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
756 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
757 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
758 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
759 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
760 },
761 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
762 &quot;A String&quot;,
763 ],
764 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
765 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
766 &quot;A String&quot;,
767 ],
768 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
769 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
770 },
771 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
772 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
773 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
774 },
775 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
776 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
777 },
778 },
779 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
780 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
781 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
782 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
783 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
784 { # Configuration for a single speaker in a multi-speaker setup.
785 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
786 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
787 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
788 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
789 },
790 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
791 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
792 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
793 },
794 },
795 },
796 ],
797 },
798 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
799 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
800 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
801 },
802 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
803 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
804 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
805 },
806 },
807 },
808 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
809 &quot;A String&quot;,
810 ],
811 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
812 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
813 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
814 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
815 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
816 },
817 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
818 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
819 },
820 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
821 },
822 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
823 &quot;predefinedRubricGenerationSpec&quot;: { # The spec for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
824 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
825 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
826 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
827 },
828 },
829 &quot;resultParserConfig&quot;: { # Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters. # Optional. The parser config for the metric result.
830 &quot;customCodeParserConfig&quot;: { # Configuration for parsing the LLM response using custom code. # Optional. Use custom code to parse the LLM response.
831 &quot;parsingFunction&quot;: &quot;A String&quot;, # Required. Python function for parsing results. The function should be defined within this string. The function takes a list of strings (LLM responses) and should return either a list of dictionaries (for rubrics) or a single dictionary (for a metric result). Example function signature: def parse(responses: list[str]) -&gt; list[dict[str, Any]] | dict[str, Any]: When parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric. Example for rubrics: [ { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is factual.&quot;}}, &quot;type&quot;: &quot;FACTUALITY&quot;, &quot;importance&quot;: &quot;HIGH&quot; }, { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is fluent.&quot;}}, &quot;type&quot;: &quot;FLUENCY&quot;, &quot;importance&quot;: &quot;MEDIUM&quot; } ] When parsing critique results, return a dictionary representing a MetricResult. Example for a metric result: { &quot;score&quot;: 0.8, &quot;explanation&quot;: &quot;The model followed most instructions.&quot;, &quot;rubric_verdicts&quot;: [...] } ... code for result extraction and aggregation
832 },
833 },
834 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
835 &quot;modelConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
836 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
837 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
838 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
839 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
840 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
841 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
842 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
843 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
844 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
845 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
846 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
847 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
848 },
849 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
850 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
851 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
852 },
853 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
854 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
855 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
856 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
857 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
858 },
859 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
860 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
861 { # Configuration for the model to configure output formatting and delivery.
862 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
863 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
864 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
865 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
866 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
867 },
868 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
869 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
870 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
871 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
872 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
873 },
874 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
875 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
876 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
877 },
878 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
879 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
880 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
881 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
882 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
883 },
884 },
885 ],
886 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
887 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
888 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
889 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
890 &quot;A String&quot;,
891 ],
892 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
893 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
894 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
895 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
896 ],
897 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
898 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
899 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
900 },
901 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
902 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
903 &quot;A String&quot;,
904 ],
905 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
906 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
907 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
908 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
909 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
910 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
911 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
912 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
913 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
914 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
915 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
916 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
917 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
918 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
919 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
920 },
921 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
922 &quot;A String&quot;,
923 ],
924 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
925 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
926 &quot;A String&quot;,
927 ],
928 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
929 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
930 },
931 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
932 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
933 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
934 },
935 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
936 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
937 },
938 },
939 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
940 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
941 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
942 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
943 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
944 { # Configuration for a single speaker in a multi-speaker setup.
945 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
946 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
947 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
948 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
949 },
950 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
951 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
952 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
953 },
954 },
955 },
956 ],
957 },
958 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
959 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
960 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
961 },
962 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
963 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
964 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
965 },
966 },
967 },
968 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
969 &quot;A String&quot;,
970 ],
971 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
972 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
973 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
974 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
975 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
976 },
977 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
978 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
979 },
980 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
981 },
982 &quot;promptTemplate&quot;: &quot;A String&quot;, # Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
983 &quot;rubricContentType&quot;: &quot;A String&quot;, # The type of rubric content to be generated.
984 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
985 &quot;A String&quot;,
986 ],
987 },
988 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
989 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
990 },
991 &quot;metadata&quot;: { # Metadata about the metric, used for visualization and organization. # Optional. Metadata about the metric, used for visualization and organization.
992 &quot;otherMetadata&quot;: { # Optional. Flexible metadata for user-defined attributes.
993 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
994 },
995 &quot;scoreRange&quot;: { # The range of possible scores for this metric, used for plotting. # Optional. The range of possible scores for this metric, used for plotting.
996 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the score explaining the directionality etc.
997 &quot;max&quot;: 3.14, # Required. The maximum value of the score range (inclusive).
998 &quot;min&quot;: 3.14, # Required. The minimum value of the score range (inclusive).
999 &quot;step&quot;: 3.14, # Optional. The distance between discrete steps in the range. If unset, the range is assumed to be continuous.
1000 },
1001 &quot;title&quot;: &quot;A String&quot;, # Optional. The user-friendly name for the metric. If not set for a registered metric, it will default to the metric&#x27;s display name.
1002 },
1003 &quot;pairwiseMetricSpec&quot;: { # Spec for pairwise metric. # Spec for pairwise metric.
1004 &quot;baselineResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the baseline response.
1005 &quot;candidateResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the candidate response.
1006 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
1007 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
1008 },
1009 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pairwise metric.
1010 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pairwise metric.
1011 },
1012 &quot;pointwiseMetricSpec&quot;: { # Spec for pointwise metric. # Spec for pointwise metric.
1013 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
1014 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
1015 },
1016 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pointwise metric.
1017 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pointwise metric.
1018 },
1019 &quot;predefinedMetricSpec&quot;: { # The spec for a pre-defined metric. # The spec for a pre-defined metric.
1020 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
1021 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
1022 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1023 },
1024 },
1025 &quot;rougeSpec&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. # Spec for rouge metric.
1026 &quot;rougeType&quot;: &quot;A String&quot;, # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
1027 &quot;splitSummaries&quot;: True or False, # Optional. Whether to split summaries while using rougeLsum.
1028 &quot;useStemmer&quot;: True or False, # Optional. Whether to use stemmer to compute rouge score.
1029 },
1030 },
1031 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. The resource name of the metric definition.
1032 &quot;predefinedMetricSpec&quot;: { # Specification for a pre-defined metric. # Spec for a pre-defined metric.
1033 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
1034 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
1035 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1036 },
1037 },
1038 &quot;rubricBasedMetricSpec&quot;: { # Specification for a metric that is based on rubrics. # Spec for rubric based metric.
1039 &quot;inlineRubrics&quot;: { # Defines a list of rubrics, used when providing rubrics inline. # Use rubrics provided directly in the spec.
1040 &quot;rubrics&quot;: [ # The list of rubrics.
1041 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
1042 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
1043 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
1044 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
1045 },
1046 },
1047 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
1048 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
1049 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
1050 },
1051 ],
1052 },
1053 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided.
1054 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
1055 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
1056 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
1057 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
1058 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
1059 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
1060 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
1061 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
1062 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
1063 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
1064 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
1065 },
1066 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
1067 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
1068 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
1069 },
1070 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
1071 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
1072 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
1073 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
1074 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
1075 },
1076 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
1077 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
1078 { # Configuration for the model to configure output formatting and delivery.
1079 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
1080 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
1081 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1082 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
1083 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
1084 },
1085 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
1086 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
1087 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1088 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
1089 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
1090 },
1091 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
1092 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
1093 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
1094 },
1095 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
1096 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
1097 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1098 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
1099 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
1100 },
1101 },
1102 ],
1103 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
1104 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
1105 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
1106 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
1107 &quot;A String&quot;,
1108 ],
1109 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
1110 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1111 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1112 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1113 ],
1114 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1115 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1116 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1117 },
1118 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1119 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1120 &quot;A String&quot;,
1121 ],
1122 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1123 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1124 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1125 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1126 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1127 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1128 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1129 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1130 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1131 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1132 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1133 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1134 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1135 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1136 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1137 },
1138 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1139 &quot;A String&quot;,
1140 ],
1141 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1142 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1143 &quot;A String&quot;,
1144 ],
1145 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1146 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1147 },
1148 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
1149 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
1150 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
1151 },
1152 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
1153 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
1154 },
1155 },
1156 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
1157 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
1158 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
1159 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
1160 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
1161 { # Configuration for a single speaker in a multi-speaker setup.
1162 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
1163 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
1164 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1165 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1166 },
1167 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1168 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1169 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1170 },
1171 },
1172 },
1173 ],
1174 },
1175 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
1176 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1177 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1178 },
1179 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1180 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1181 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1182 },
1183 },
1184 },
1185 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
1186 &quot;A String&quot;,
1187 ],
1188 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
1189 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
1190 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
1191 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
1192 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
1193 },
1194 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
1195 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
1196 },
1197 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
1198 },
1199 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used by the judge model to evaluate against rubrics.
1200 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics for evaluation using this specification.
1201 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
1202 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
1203 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
1204 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
1205 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
1206 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
1207 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
1208 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
1209 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
1210 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
1211 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
1212 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
1213 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
1214 },
1215 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
1216 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
1217 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
1218 },
1219 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
1220 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
1221 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
1222 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
1223 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
1224 },
1225 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
1226 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
1227 { # Configuration for the model to configure output formatting and delivery.
1228 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
1229 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
1230 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1231 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
1232 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
1233 },
1234 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
1235 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
1236 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1237 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
1238 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
1239 },
1240 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
1241 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
1242 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
1243 },
1244 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
1245 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
1246 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1247 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
1248 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
1249 },
1250 },
1251 ],
1252 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
1253 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
1254 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
1255 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
1256 &quot;A String&quot;,
1257 ],
1258 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
1259 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1260 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1261 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1262 ],
1263 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1264 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1265 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1266 },
1267 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1268 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1269 &quot;A String&quot;,
1270 ],
1271 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1272 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1273 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1274 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1275 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1276 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1277 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1278 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1279 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1280 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1281 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1282 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1283 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1284 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1285 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1286 },
1287 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1288 &quot;A String&quot;,
1289 ],
1290 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1291 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1292 &quot;A String&quot;,
1293 ],
1294 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1295 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1296 },
1297 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
1298 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
1299 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
1300 },
1301 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
1302 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
1303 },
1304 },
1305 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
1306 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
1307 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
1308 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
1309 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
1310 { # Configuration for a single speaker in a multi-speaker setup.
1311 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
1312 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
1313 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1314 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1315 },
1316 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1317 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1318 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1319 },
1320 },
1321 },
1322 ],
1323 },
1324 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
1325 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1326 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1327 },
1328 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1329 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1330 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1331 },
1332 },
1333 },
1334 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
1335 &quot;A String&quot;,
1336 ],
1337 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
1338 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
1339 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
1340 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
1341 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
1342 },
1343 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
1344 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
1345 },
1346 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
1347 },
1348 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
1349 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
1350 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
1351 &quot;A String&quot;,
1352 ],
1353 },
1354 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`.
1355 },
1356 },
1357 ],
1358 &quot;outputConfig&quot;: { # The output config for the evaluation run. # Optional. The output config for the evaluation run.
1359 &quot;bigqueryDestination&quot;: { # The BigQuery location for the output content. # BigQuery destination for evaluation output.
1360 &quot;outputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a project or table, up to 2000 characters long. When only the project is specified, the Dataset and Table is created. When the full table reference is specified, the Dataset must exist and table must not exist. Accepted forms: * BigQuery path. For example: `bq://projectId` or `bq://projectId.bqDatasetId` or `bq://projectId.bqDatasetId.bqTableId`.
1361 },
1362 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output is to be written to. # Cloud Storage destination for evaluation output.
1363 &quot;outputUriPrefix&quot;: &quot;A String&quot;, # Required. Google Cloud Storage URI to output directory. If the uri doesn&#x27;t end with &#x27;/&#x27;, a &#x27;/&#x27; will be automatically appended. The directory is created if it doesn&#x27;t exist.
1364 },
1365 },
1366 &quot;promptTemplate&quot;: { # Prompt template used for inference. # The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values.
1367 &quot;gcsUri&quot;: &quot;A String&quot;, # Prompt template stored in Cloud Storage. Format: &quot;gs://my-bucket/file-name.txt&quot;.
1368 &quot;promptTemplate&quot;: &quot;A String&quot;, # Inline prompt template. Template variables should be in the format &quot;{var_name}&quot;. Example: &quot;Translate the following from {source_lang} to {target_lang}: {text}&quot;
1369 },
1370 &quot;rubricConfigs&quot;: [ # Optional. The rubric configs for the evaluation run. They are used to generate rubrics which can be used by rubric-based metrics. Multiple rubric configs can be specified for rubric generation but only one rubric config can be used for a rubric-based metric. If more than one rubric config is provided, the evaluation metric must specify a rubric group key. Note that if a generation spec is specified on both a rubric config and an evaluation metric, the rubrics generated for the metric will be used for evaluation.
1371 { # Configuration for a rubric group to be generated/saved for evaluation.
1372 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
1373 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
1374 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
1375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1376 },
1377 },
1378 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
1379 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
1380 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
1381 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
1382 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
1383 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
1384 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
1385 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
1386 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
1387 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
1388 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
1389 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
1390 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
1391 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
1392 },
1393 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
1394 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
1395 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
1396 },
1397 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
1398 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
1399 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
1400 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
1401 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
1402 },
1403 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
1404 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
1405 { # Configuration for the model to configure output formatting and delivery.
1406 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
1407 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
1408 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1409 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
1410 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
1411 },
1412 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
1413 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
1414 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1415 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
1416 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
1417 },
1418 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
1419 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
1420 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
1421 },
1422 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
1423 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
1424 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
1425 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
1426 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
1427 },
1428 },
1429 ],
1430 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
1431 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
1432 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
1433 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
1434 &quot;A String&quot;,
1435 ],
1436 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
1437 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1438 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1439 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1440 ],
1441 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1442 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1443 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1444 },
1445 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1446 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1447 &quot;A String&quot;,
1448 ],
1449 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1450 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1451 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1452 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1453 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1454 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1455 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1456 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1457 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1458 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1459 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1460 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1461 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1462 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1463 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1464 },
1465 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1466 &quot;A String&quot;,
1467 ],
1468 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1469 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1470 &quot;A String&quot;,
1471 ],
1472 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1473 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1474 },
1475 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
1476 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
1477 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
1478 },
1479 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
1480 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
1481 },
1482 },
1483 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
1484 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
1485 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
1486 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
1487 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
1488 { # Configuration for a single speaker in a multi-speaker setup.
1489 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
1490 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
1491 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1492 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1493 },
1494 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1495 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1496 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1497 },
1498 },
1499 },
1500 ],
1501 },
1502 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
1503 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
1504 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
1505 },
1506 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
1507 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
1508 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
1509 },
1510 },
1511 },
1512 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
1513 &quot;A String&quot;,
1514 ],
1515 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
1516 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
1517 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
1518 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
1519 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
1520 },
1521 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
1522 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
1523 },
1524 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
1525 },
1526 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
1527 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
1528 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
1529 &quot;A String&quot;,
1530 ],
1531 },
1532 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Required. The key used to save the generated rubrics. If a generation spec is provided, this key will be used for the name of the generated rubric group. Otherwise, this key will be used to look up the existing rubric group on the evaluation item. Note that if a rubric group key is specified on both a rubric config and an evaluation metric, the key from the metric will be used to select the rubrics for evaluation.
1533 },
1534 ],
1535 },
1536 &quot;evaluationResults&quot;: { # The results of the evaluation run. # Output only. The results of the evaluation run. Only populated when the evaluation run&#x27;s state is SUCCEEDED.
1537 &quot;evaluationSet&quot;: &quot;A String&quot;, # The evaluation set where item level results are stored.
1538 &quot;lossAnalysisResults&quot;: [ # Output only. The results of the auto-loss analysis performed on the eval set associated with the run.
1539 { # The top-level result for loss analysis, stored within an EvalSet.
1540 &quot;analysisTime&quot;: &quot;A String&quot;, # The timestamp when this analysis was performed.
1541 &quot;clusters&quot;: [ # The list of identified loss clusters.
1542 { # Represents a semantic grouping of failures (e.g., &quot;Hallucination of Action&quot;).
1543 &quot;clusterId&quot;: &quot;A String&quot;, # Unique identifier for the loss cluster within the scope of the analysis result.
1544 &quot;examples&quot;: [ # A list of examples that belong to this cluster. This links the cluster back to the specific EvaluationItems and Rubrics.
1545 { # Represents a specific example of a loss pattern.
1546 &quot;evaluationItem&quot;: &quot;A String&quot;, # Reference to the persisted EvalItem resource name. Format: projects/.../locations/.../evaluationItems/{item_id} Used when analysis is run on an EvalSet.
1547 &quot;evaluationResult&quot;: { # Evaluation result. # The full evaluation result object provided inline. Used when the analysis is performed on ephemeral data (without an EvaluationSet).
1548 &quot;candidateResults&quot;: [ # Optional. The results for the metric.
1549 { # Result for a single candidate.
1550 &quot;additionalResults&quot;: &quot;&quot;, # Optional. Additional results for the metric.
1551 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.
1552 &quot;explanation&quot;: &quot;A String&quot;, # Optional. The explanation for the metric.
1553 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
1554 &quot;rubricVerdicts&quot;: [ # Optional. The rubric verdicts for the metric.
1555 { # Represents the verdict of an evaluation against a single rubric.
1556 &quot;evaluatedRubric&quot;: { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics. # Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
1557 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
1558 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
1559 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
1560 },
1561 },
1562 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
1563 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
1564 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
1565 },
1566 &quot;reasoning&quot;: &quot;A String&quot;, # Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
1567 &quot;verdict&quot;: True or False, # Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a &quot;Pass&quot;, `false` indicates a &quot;Fail&quot;.
1568 },
1569 ],
1570 &quot;score&quot;: 3.14, # Optional. The score for the metric.
1571 },
1572 ],
1573 &quot;evaluationRequest&quot;: &quot;A String&quot;, # Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}
1574 &quot;evaluationRun&quot;: &quot;A String&quot;, # Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}
1575 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation result.
1576 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
1577 &quot;request&quot;: { # A single evaluation request supporting input for both single-turn model generation and multi-turn agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at least one of the `candidate_responses` must contain `agent_data`. # Required. The request that was evaluated.
1578 &quot;candidateResponses&quot;: [ # Optional. Responses from model under test and other baseline models for comparison.
1579 { # Responses from model or agent.
1580 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
1581 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
1582 &quot;a_key&quot;: { # Represents configuration for an Agent.
1583 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
1584 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
1585 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
1586 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
1587 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
1588 &quot;A String&quot;,
1589 ],
1590 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
1591 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
1592 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
1593 },
1594 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
1595 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
1596 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
1597 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
1598 &quot;A String&quot;,
1599 ],
1600 },
1601 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
1602 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1603 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1604 &quot;A String&quot;,
1605 ],
1606 },
1607 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
1608 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1609 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1610 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1611 },
1612 },
1613 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
1614 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
1615 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
1616 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
1617 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
1618 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
1619 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1620 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1621 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1622 ],
1623 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1624 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1625 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1626 },
1627 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1628 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1629 &quot;A String&quot;,
1630 ],
1631 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1632 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1633 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1634 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1635 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1636 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1637 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1638 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1639 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1640 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1641 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1642 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1643 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1644 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1645 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1646 },
1647 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1648 &quot;A String&quot;,
1649 ],
1650 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1651 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1652 &quot;A String&quot;,
1653 ],
1654 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1655 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1656 },
1657 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
1658 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
1659 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1660 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1661 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1662 ],
1663 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1664 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1665 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1666 },
1667 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1668 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1669 &quot;A String&quot;,
1670 ],
1671 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1672 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1673 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1674 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1675 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1676 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1677 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1678 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1679 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1680 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1681 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1682 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1683 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1684 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1685 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1686 },
1687 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1688 &quot;A String&quot;,
1689 ],
1690 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1691 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1692 &quot;A String&quot;,
1693 ],
1694 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1695 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1696 },
1697 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
1698 },
1699 ],
1700 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
1701 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
1702 },
1703 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
1704 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1705 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
1706 &quot;A String&quot;,
1707 ],
1708 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
1709 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1710 },
1711 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
1712 },
1713 },
1714 },
1715 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1716 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1717 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1718 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1719 },
1720 },
1721 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
1722 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
1723 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
1724 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1725 },
1726 },
1727 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
1728 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1729 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
1730 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
1731 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1732 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
1733 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1734 },
1735 },
1736 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1737 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1738 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
1739 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
1740 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
1741 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
1742 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
1743 },
1744 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
1745 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
1746 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
1747 },
1748 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
1749 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
1750 },
1751 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
1752 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
1753 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
1754 },
1755 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
1756 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
1757 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
1758 },
1759 },
1760 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
1761 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
1762 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
1763 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
1764 },
1765 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
1766 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
1767 },
1768 },
1769 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
1770 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
1771 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
1772 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
1773 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
1774 },
1775 ],
1776 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
1777 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
1778 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
1779 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
1780 },
1781 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
1782 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
1783 &quot;A String&quot;,
1784 ],
1785 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
1786 { # The definition of the Rag resource.
1787 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
1788 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
1789 &quot;A String&quot;,
1790 ],
1791 },
1792 ],
1793 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
1794 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
1795 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
1796 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
1797 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
1798 },
1799 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
1800 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
1801 },
1802 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
1803 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
1804 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
1805 },
1806 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
1807 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
1808 },
1809 },
1810 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
1811 },
1812 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
1813 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
1814 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
1815 },
1816 },
1817 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
1818 },
1819 },
1820 ],
1821 },
1822 },
1823 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
1824 { # Represents a single turn/invocation in the conversation.
1825 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
1826 { # Represents a single event in the execution trace.
1827 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
1828 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
1829 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
1830 },
1831 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
1832 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
1833 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
1834 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
1835 &quot;A String&quot;,
1836 ],
1837 },
1838 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
1839 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1840 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1841 &quot;A String&quot;,
1842 ],
1843 },
1844 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
1845 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1846 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1848 },
1849 },
1850 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
1851 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
1852 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
1853 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
1854 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
1855 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
1856 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1857 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1858 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1859 ],
1860 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1861 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1862 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1863 },
1864 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1865 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1866 &quot;A String&quot;,
1867 ],
1868 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1869 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1870 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1871 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1872 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1873 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1874 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1875 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1876 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1877 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1878 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1879 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1880 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1881 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1882 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1883 },
1884 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1885 &quot;A String&quot;,
1886 ],
1887 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1888 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1889 &quot;A String&quot;,
1890 ],
1891 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1892 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1893 },
1894 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
1895 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
1896 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
1897 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1898 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1899 ],
1900 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1901 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
1902 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1903 },
1904 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
1905 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
1906 &quot;A String&quot;,
1907 ],
1908 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1909 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
1910 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1911 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1912 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1913 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1914 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1915 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1916 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1917 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1918 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1919 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1920 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1921 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1922 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1923 },
1924 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
1925 &quot;A String&quot;,
1926 ],
1927 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
1928 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1929 &quot;A String&quot;,
1930 ],
1931 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1932 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1933 },
1934 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
1935 },
1936 ],
1937 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
1938 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
1939 },
1940 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
1941 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1942 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
1943 &quot;A String&quot;,
1944 ],
1945 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
1946 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1947 },
1948 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
1949 },
1950 },
1951 },
1952 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1953 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1954 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1955 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1956 },
1957 },
1958 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
1959 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
1960 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
1961 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1962 },
1963 },
1964 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
1965 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1966 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
1967 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
1968 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1969 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
1970 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1971 },
1972 },
1973 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1974 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1975 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
1976 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
1977 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
1978 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
1979 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
1980 },
1981 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
1982 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
1983 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
1984 },
1985 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
1986 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
1987 },
1988 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
1989 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
1990 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
1991 },
1992 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
1993 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
1994 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
1995 },
1996 },
1997 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
1998 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
1999 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
2000 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
2001 },
2002 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
2003 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
2004 },
2005 },
2006 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
2007 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
2008 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
2009 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2010 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
2011 },
2012 ],
2013 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2014 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
2015 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
2016 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
2017 },
2018 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
2019 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
2020 &quot;A String&quot;,
2021 ],
2022 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
2023 { # The definition of the Rag resource.
2024 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
2025 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
2026 &quot;A String&quot;,
2027 ],
2028 },
2029 ],
2030 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
2031 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
2032 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
2033 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
2034 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
2035 },
2036 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
2037 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
2038 },
2039 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
2040 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
2041 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
2042 },
2043 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
2044 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
2045 },
2046 },
2047 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
2048 },
2049 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
2050 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
2051 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
2052 },
2053 },
2054 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
2055 },
2056 },
2057 ],
2058 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
2059 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
2060 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
2061 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
2062 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
2063 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
2064 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
2065 },
2066 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
2067 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
2068 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
2069 },
2070 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
2071 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2072 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
2073 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2074 },
2075 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
2076 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
2077 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2078 },
2079 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
2080 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
2081 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
2082 { # Partial argument value of the function call.
2083 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
2084 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
2085 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
2086 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
2087 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
2088 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
2089 },
2090 ],
2091 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
2092 },
2093 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
2094 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
2095 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
2096 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
2097 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
2098 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
2099 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2100 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
2101 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2102 },
2103 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
2104 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
2105 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2106 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2107 },
2108 },
2109 ],
2110 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
2111 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2112 },
2113 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
2114 },
2115 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
2116 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
2117 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2118 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2119 },
2120 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
2121 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
2122 },
2123 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
2124 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
2125 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
2126 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
2127 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
2128 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
2129 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
2130 },
2131 },
2132 ],
2133 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
2134 },
2135 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
2136 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
2137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2138 },
2139 },
2140 ],
2141 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
2142 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
2143 },
2144 ],
2145 },
2146 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
2147 &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. Error while scraping model or agent.
2148 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2149 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2150 {
2151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2152 },
2153 ],
2154 &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.
2155 },
2156 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
2157 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
2158 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
2159 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
2160 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
2161 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
2162 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
2163 },
2164 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
2165 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
2166 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
2167 },
2168 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
2169 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2170 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
2171 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2172 },
2173 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
2174 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
2175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2176 },
2177 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
2178 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
2179 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
2180 { # Partial argument value of the function call.
2181 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
2182 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
2183 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
2184 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
2185 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
2186 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
2187 },
2188 ],
2189 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
2190 },
2191 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
2192 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
2193 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
2194 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
2195 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
2196 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
2197 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2198 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
2199 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2200 },
2201 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
2202 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
2203 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2204 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2205 },
2206 },
2207 ],
2208 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
2209 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2210 },
2211 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
2212 },
2213 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
2214 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
2215 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2216 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2217 },
2218 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
2219 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
2220 },
2221 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
2222 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
2223 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
2224 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
2225 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
2226 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
2227 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
2228 },
2229 },
2230 ],
2231 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
2232 },
2233 ],
2234 &quot;text&quot;: &quot;A String&quot;, # Text response.
2235 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
2236 },
2237 ],
2238 &quot;goldenResponse&quot;: { # Responses from model or agent. # Optional. The Ideal response or ground truth.
2239 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
2240 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
2241 &quot;a_key&quot;: { # Represents configuration for an Agent.
2242 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
2243 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
2244 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
2245 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
2246 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
2247 &quot;A String&quot;,
2248 ],
2249 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
2250 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
2251 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
2252 },
2253 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
2254 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
2255 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
2256 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
2257 &quot;A String&quot;,
2258 ],
2259 },
2260 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
2261 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
2262 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
2263 &quot;A String&quot;,
2264 ],
2265 },
2266 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
2267 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
2268 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
2269 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2270 },
2271 },
2272 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
2273 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
2274 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
2275 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
2276 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
2277 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
2278 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2279 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2280 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2281 ],
2282 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2283 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2284 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2285 },
2286 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2287 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2288 &quot;A String&quot;,
2289 ],
2290 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2291 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2292 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2293 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2294 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2295 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2296 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2297 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2298 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2299 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2300 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2301 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
2302 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
2303 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
2304 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2305 },
2306 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
2307 &quot;A String&quot;,
2308 ],
2309 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
2310 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
2311 &quot;A String&quot;,
2312 ],
2313 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
2314 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
2315 },
2316 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
2317 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
2318 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2319 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2320 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2321 ],
2322 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2323 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2324 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2325 },
2326 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2327 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2328 &quot;A String&quot;,
2329 ],
2330 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2331 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2332 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2333 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2334 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2335 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2336 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2337 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2338 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2339 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2340 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2341 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
2342 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
2343 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
2344 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2345 },
2346 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
2347 &quot;A String&quot;,
2348 ],
2349 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
2350 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
2351 &quot;A String&quot;,
2352 ],
2353 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
2354 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
2355 },
2356 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
2357 },
2358 ],
2359 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
2360 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
2361 },
2362 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
2363 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
2364 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
2365 &quot;A String&quot;,
2366 ],
2367 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
2368 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
2369 },
2370 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
2371 },
2372 },
2373 },
2374 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
2375 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
2376 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
2377 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
2378 },
2379 },
2380 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
2381 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
2382 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
2383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2384 },
2385 },
2386 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
2387 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
2388 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
2389 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
2390 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
2391 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
2392 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
2393 },
2394 },
2395 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
2396 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
2397 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
2398 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
2399 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
2400 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
2401 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
2402 },
2403 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
2404 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
2405 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
2406 },
2407 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
2408 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
2409 },
2410 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
2411 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
2412 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
2413 },
2414 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
2415 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
2416 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
2417 },
2418 },
2419 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
2420 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
2421 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
2422 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
2423 },
2424 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
2425 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
2426 },
2427 },
2428 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
2429 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
2430 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
2431 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2432 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
2433 },
2434 ],
2435 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2436 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
2437 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
2438 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
2439 },
2440 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
2441 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
2442 &quot;A String&quot;,
2443 ],
2444 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
2445 { # The definition of the Rag resource.
2446 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
2447 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
2448 &quot;A String&quot;,
2449 ],
2450 },
2451 ],
2452 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
2453 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
2454 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
2455 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
2456 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
2457 },
2458 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
2459 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
2460 },
2461 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
2462 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
2463 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
2464 },
2465 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
2466 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
2467 },
2468 },
2469 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
2470 },
2471 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
2472 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
2473 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
2474 },
2475 },
2476 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
2477 },
2478 },
2479 ],
2480 },
2481 },
2482 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
2483 { # Represents a single turn/invocation in the conversation.
2484 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
2485 { # Represents a single event in the execution trace.
2486 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
2487 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
2488 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
2489 },
2490 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
2491 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
2492 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
2493 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
2494 &quot;A String&quot;,
2495 ],
2496 },
2497 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
2498 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
2499 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
2500 &quot;A String&quot;,
2501 ],
2502 },
2503 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
2504 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
2505 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
2506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2507 },
2508 },
2509 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
2510 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
2511 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
2512 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
2513 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
2514 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
2515 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2516 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2517 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2518 ],
2519 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2520 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2521 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2522 },
2523 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2524 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2525 &quot;A String&quot;,
2526 ],
2527 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2528 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2529 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2530 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2531 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2532 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2533 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2534 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2535 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2536 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2537 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2538 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
2539 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
2540 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
2541 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2542 },
2543 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
2544 &quot;A String&quot;,
2545 ],
2546 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
2547 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
2548 &quot;A String&quot;,
2549 ],
2550 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
2551 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
2552 },
2553 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
2554 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
2555 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2556 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2557 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2558 ],
2559 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2560 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2561 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2562 },
2563 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2564 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2565 &quot;A String&quot;,
2566 ],
2567 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2568 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2569 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2570 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2571 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2572 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2573 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2574 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2575 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2576 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2577 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2578 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
2579 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
2580 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
2581 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2582 },
2583 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
2584 &quot;A String&quot;,
2585 ],
2586 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
2587 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
2588 &quot;A String&quot;,
2589 ],
2590 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
2591 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
2592 },
2593 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
2594 },
2595 ],
2596 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
2597 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
2598 },
2599 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
2600 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
2601 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
2602 &quot;A String&quot;,
2603 ],
2604 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
2605 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
2606 },
2607 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
2608 },
2609 },
2610 },
2611 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
2612 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
2613 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
2614 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
2615 },
2616 },
2617 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
2618 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
2619 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
2620 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2621 },
2622 },
2623 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
2624 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
2625 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
2626 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
2627 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
2628 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
2629 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
2630 },
2631 },
2632 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
2633 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
2634 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
2635 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
2636 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
2637 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
2638 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
2639 },
2640 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
2641 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
2642 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
2643 },
2644 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
2645 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
2646 },
2647 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
2648 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
2649 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
2650 },
2651 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
2652 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
2653 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
2654 },
2655 },
2656 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
2657 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
2658 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
2659 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
2660 },
2661 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
2662 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
2663 },
2664 },
2665 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
2666 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
2667 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
2668 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2669 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
2670 },
2671 ],
2672 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2673 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
2674 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
2675 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
2676 },
2677 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
2678 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
2679 &quot;A String&quot;,
2680 ],
2681 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
2682 { # The definition of the Rag resource.
2683 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
2684 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
2685 &quot;A String&quot;,
2686 ],
2687 },
2688 ],
2689 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
2690 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
2691 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
2692 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
2693 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
2694 },
2695 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
2696 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
2697 },
2698 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
2699 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
2700 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
2701 },
2702 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
2703 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
2704 },
2705 },
2706 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
2707 },
2708 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
2709 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
2710 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
2711 },
2712 },
2713 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
2714 },
2715 },
2716 ],
2717 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
2718 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
2719 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
2720 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
2721 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
2722 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
2723 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
2724 },
2725 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
2726 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
2727 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
2728 },
2729 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
2730 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2731 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
2732 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2733 },
2734 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
2735 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
2736 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2737 },
2738 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
2739 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
2740 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
2741 { # Partial argument value of the function call.
2742 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
2743 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
2744 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
2745 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
2746 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
2747 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
2748 },
2749 ],
2750 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
2751 },
2752 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
2753 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
2754 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
2755 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
2756 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
2757 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
2758 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2759 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
2760 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2761 },
2762 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
2763 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
2764 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2765 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2766 },
2767 },
2768 ],
2769 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
2770 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2771 },
2772 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
2773 },
2774 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
2775 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
2776 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2777 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2778 },
2779 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
2780 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
2781 },
2782 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
2783 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
2784 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
2785 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
2786 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
2787 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
2788 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
2789 },
2790 },
2791 ],
2792 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
2793 },
2794 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
2795 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
2796 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2797 },
2798 },
2799 ],
2800 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
2801 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
2802 },
2803 ],
2804 },
2805 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
2806 &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. Error while scraping model or agent.
2807 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2808 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2809 {
2810 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2811 },
2812 ],
2813 &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.
2814 },
2815 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
2816 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
2817 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
2818 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
2819 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
2820 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
2821 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
2822 },
2823 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
2824 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
2825 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
2826 },
2827 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
2828 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2829 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
2830 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2831 },
2832 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
2833 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
2834 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2835 },
2836 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
2837 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
2838 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
2839 { # Partial argument value of the function call.
2840 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
2841 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
2842 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
2843 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
2844 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
2845 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
2846 },
2847 ],
2848 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
2849 },
2850 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
2851 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
2852 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
2853 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
2854 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
2855 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
2856 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2857 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
2858 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2859 },
2860 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
2861 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
2862 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
2863 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2864 },
2865 },
2866 ],
2867 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
2868 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2869 },
2870 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
2871 },
2872 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
2873 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
2874 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
2875 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
2876 },
2877 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
2878 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
2879 },
2880 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
2881 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
2882 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
2883 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
2884 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
2885 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
2886 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
2887 },
2888 },
2889 ],
2890 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
2891 },
2892 ],
2893 &quot;text&quot;: &quot;A String&quot;, # Text response.
2894 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
2895 },
2896 &quot;prompt&quot;: { # Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for agent evaluations. # Optional. The request/prompt to evaluate.
2897 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This serves as the input context for agent scraping.
2898 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
2899 &quot;a_key&quot;: { # Represents configuration for an Agent.
2900 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
2901 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
2902 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
2903 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
2904 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
2905 &quot;A String&quot;,
2906 ],
2907 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
2908 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
2909 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
2910 },
2911 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
2912 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
2913 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
2914 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
2915 &quot;A String&quot;,
2916 ],
2917 },
2918 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
2919 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
2920 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
2921 &quot;A String&quot;,
2922 ],
2923 },
2924 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
2925 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
2926 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
2927 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2928 },
2929 },
2930 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
2931 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
2932 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
2933 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
2934 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
2935 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
2936 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2937 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2938 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2939 ],
2940 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2941 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2942 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2943 },
2944 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2945 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2946 &quot;A String&quot;,
2947 ],
2948 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2949 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2950 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2951 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2952 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2953 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2954 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2955 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2956 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2957 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2958 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2959 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
2960 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
2961 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
2962 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2963 },
2964 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
2965 &quot;A String&quot;,
2966 ],
2967 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
2968 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
2969 &quot;A String&quot;,
2970 ],
2971 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
2972 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
2973 },
2974 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
2975 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
2976 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
2977 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
2978 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2979 ],
2980 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
2981 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
2982 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
2983 },
2984 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
2985 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
2986 &quot;A String&quot;,
2987 ],
2988 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
2989 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
2990 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
2991 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
2992 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
2993 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
2994 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
2995 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
2996 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
2997 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
2998 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
2999 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
3000 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
3001 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
3002 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3003 },
3004 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
3005 &quot;A String&quot;,
3006 ],
3007 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
3008 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
3009 &quot;A String&quot;,
3010 ],
3011 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
3012 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
3013 },
3014 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
3015 },
3016 ],
3017 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
3018 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
3019 },
3020 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
3021 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
3022 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
3023 &quot;A String&quot;,
3024 ],
3025 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
3026 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
3027 },
3028 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
3029 },
3030 },
3031 },
3032 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
3033 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
3034 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
3035 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
3036 },
3037 },
3038 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
3039 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
3040 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
3041 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3042 },
3043 },
3044 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
3045 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
3046 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
3047 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
3048 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
3049 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
3050 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
3051 },
3052 },
3053 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
3054 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
3055 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
3056 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3057 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
3058 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
3059 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
3060 },
3061 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
3062 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
3063 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
3064 },
3065 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
3066 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3067 },
3068 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
3069 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3070 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
3071 },
3072 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
3073 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3074 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
3075 },
3076 },
3077 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
3078 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
3079 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
3080 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
3081 },
3082 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
3083 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
3084 },
3085 },
3086 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
3087 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
3088 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
3089 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3090 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
3091 },
3092 ],
3093 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3094 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
3095 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
3096 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
3097 },
3098 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
3099 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
3100 &quot;A String&quot;,
3101 ],
3102 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
3103 { # The definition of the Rag resource.
3104 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
3105 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
3106 &quot;A String&quot;,
3107 ],
3108 },
3109 ],
3110 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
3111 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
3112 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
3113 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
3114 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
3115 },
3116 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
3117 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
3118 },
3119 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
3120 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
3121 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
3122 },
3123 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
3124 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
3125 },
3126 },
3127 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
3128 },
3129 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
3130 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
3131 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
3132 },
3133 },
3134 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
3135 },
3136 },
3137 ],
3138 },
3139 },
3140 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
3141 { # Represents a single turn/invocation in the conversation.
3142 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
3143 { # Represents a single event in the execution trace.
3144 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
3145 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
3146 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
3147 },
3148 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
3149 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
3150 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
3151 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
3152 &quot;A String&quot;,
3153 ],
3154 },
3155 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
3156 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
3157 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
3158 &quot;A String&quot;,
3159 ],
3160 },
3161 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
3162 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
3163 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
3164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3165 },
3166 },
3167 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
3168 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
3169 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
3170 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
3171 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
3172 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
3173 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
3174 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
3175 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3176 ],
3177 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
3178 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
3179 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3180 },
3181 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
3182 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
3183 &quot;A String&quot;,
3184 ],
3185 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
3186 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
3187 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
3188 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
3189 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
3190 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
3191 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
3192 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
3193 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
3194 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
3195 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
3196 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
3197 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
3198 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
3199 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3200 },
3201 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
3202 &quot;A String&quot;,
3203 ],
3204 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
3205 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
3206 &quot;A String&quot;,
3207 ],
3208 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
3209 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
3210 },
3211 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
3212 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
3213 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
3214 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
3215 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3216 ],
3217 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
3218 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
3219 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3220 },
3221 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
3222 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
3223 &quot;A String&quot;,
3224 ],
3225 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
3226 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
3227 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
3228 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
3229 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
3230 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
3231 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
3232 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
3233 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
3234 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
3235 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
3236 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
3237 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
3238 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
3239 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3240 },
3241 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
3242 &quot;A String&quot;,
3243 ],
3244 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
3245 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
3246 &quot;A String&quot;,
3247 ],
3248 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
3249 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
3250 },
3251 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
3252 },
3253 ],
3254 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
3255 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
3256 },
3257 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
3258 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
3259 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
3260 &quot;A String&quot;,
3261 ],
3262 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
3263 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
3264 },
3265 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
3266 },
3267 },
3268 },
3269 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
3270 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
3271 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
3272 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
3273 },
3274 },
3275 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
3276 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
3277 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
3278 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3279 },
3280 },
3281 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
3282 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
3283 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
3284 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
3285 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
3286 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
3287 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
3288 },
3289 },
3290 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
3291 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
3292 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
3293 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3294 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
3295 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
3296 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
3297 },
3298 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
3299 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
3300 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
3301 },
3302 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
3303 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3304 },
3305 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
3306 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3307 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
3308 },
3309 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
3310 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3311 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
3312 },
3313 },
3314 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
3315 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
3316 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
3317 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
3318 },
3319 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
3320 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
3321 },
3322 },
3323 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
3324 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
3325 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
3326 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3327 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
3328 },
3329 ],
3330 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3331 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
3332 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
3333 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
3334 },
3335 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
3336 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
3337 &quot;A String&quot;,
3338 ],
3339 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
3340 { # The definition of the Rag resource.
3341 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
3342 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
3343 &quot;A String&quot;,
3344 ],
3345 },
3346 ],
3347 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
3348 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
3349 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
3350 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
3351 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
3352 },
3353 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
3354 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
3355 },
3356 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
3357 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
3358 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
3359 },
3360 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
3361 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
3362 },
3363 },
3364 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
3365 },
3366 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
3367 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
3368 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
3369 },
3370 },
3371 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
3372 },
3373 },
3374 ],
3375 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
3376 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
3377 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
3378 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
3379 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
3380 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
3381 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
3382 },
3383 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
3384 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
3385 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
3386 },
3387 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
3388 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3389 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
3390 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3391 },
3392 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
3393 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
3394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3395 },
3396 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
3397 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
3398 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
3399 { # Partial argument value of the function call.
3400 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
3401 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
3402 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
3403 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
3404 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
3405 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
3406 },
3407 ],
3408 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
3409 },
3410 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
3411 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
3412 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
3413 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
3414 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
3415 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
3416 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3417 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
3418 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3419 },
3420 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
3421 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
3422 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3423 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3424 },
3425 },
3426 ],
3427 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
3428 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3429 },
3430 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
3431 },
3432 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
3433 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
3434 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3435 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3436 },
3437 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
3438 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
3439 },
3440 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
3441 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
3442 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
3443 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
3444 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
3445 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
3446 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
3447 },
3448 },
3449 ],
3450 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
3451 },
3452 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
3453 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
3454 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3455 },
3456 },
3457 ],
3458 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
3459 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
3460 },
3461 ],
3462 },
3463 &quot;promptTemplateData&quot;: { # Message to hold a prompt template and the values to populate the template. # Prompt template data.
3464 &quot;values&quot;: { # The values for fields in the prompt template.
3465 &quot;a_key&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
3466 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
3467 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
3468 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
3469 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
3470 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
3471 },
3472 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
3473 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
3474 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
3475 },
3476 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
3477 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3478 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
3479 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3480 },
3481 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
3482 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
3483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3484 },
3485 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
3486 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
3487 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
3488 { # Partial argument value of the function call.
3489 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
3490 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
3491 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
3492 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
3493 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
3494 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
3495 },
3496 ],
3497 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
3498 },
3499 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
3500 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
3501 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
3502 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
3503 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
3504 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
3505 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3506 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
3507 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3508 },
3509 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
3510 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
3511 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3512 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3513 },
3514 },
3515 ],
3516 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
3517 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3518 },
3519 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
3520 },
3521 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
3522 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
3523 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3524 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3525 },
3526 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
3527 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
3528 },
3529 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
3530 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
3531 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
3532 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
3533 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
3534 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
3535 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
3536 },
3537 },
3538 ],
3539 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
3540 },
3541 },
3542 },
3543 &quot;text&quot;: &quot;A String&quot;, # Text prompt.
3544 &quot;userScenario&quot;: { # User scenario to help simulate multi-turn agent running results. # Optional. The generated user scenario used to drive multi-turn agent running results.
3545 &quot;conversationPlan&quot;: &quot;A String&quot;, # Required. The plan for the conversation, used to drive the multi-turn agent run and generate the simulated agent evaluation dataset.
3546 &quot;startingPrompt&quot;: &quot;A String&quot;, # Required. The prompt that starts the conversation between the simulated user and the agent under test.
3547 },
3548 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the prompt template.
3549 },
3550 &quot;rubrics&quot;: { # Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group.
3551 &quot;a_key&quot;: { # A group of rubrics, used for grouping rubrics based on a metric or a version.
3552 &quot;displayName&quot;: &quot;A String&quot;, # Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: &quot;Instruction Following V1&quot;, &quot;Content Quality - Summarization Task&quot;.
3553 &quot;groupId&quot;: &quot;A String&quot;, # Unique identifier for the group.
3554 &quot;rubrics&quot;: [ # Rubrics that are part of this group.
3555 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
3556 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
3557 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
3558 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
3559 },
3560 },
3561 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
3562 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
3563 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
3564 },
3565 ],
3566 },
3567 },
3568 },
3569 },
3570 &quot;failedRubrics&quot;: [ # The specific rubric(s) that failed and caused this example to be classified here. An example might fail multiple rubrics, but only specific ones trigger this loss pattern.
3571 { # Represents a specific failed rubric and the associated analysis.
3572 &quot;classificationRationale&quot;: &quot;A String&quot;, # The rationale provided by the Loss Analysis Classifier for why this failure maps to this specific Loss Cluster. e.g., &quot;The agent claimed an action without a tool call, matching &#x27;Hallucination of Action&#x27;.&quot;
3573 &quot;rubricId&quot;: &quot;A String&quot;, # The unique ID of the rubric (if available from the metric source). Clients use this ID to query the corresponding rubric verdict.
3574 },
3575 ],
3576 },
3577 ],
3578 &quot;itemCount&quot;: 42, # The total number of EvaluationItems falling into this cluster.
3579 &quot;taxonomyEntry&quot;: { # Defines a specific entry in the loss pattern taxonomy. # The structured definition of the loss taxonomy for this cluster.
3580 &quot;description&quot;: &quot;A String&quot;, # A detailed description of this loss pattern. Example: &quot;The agent verbally confirms an action without executing the tool.&quot;
3581 &quot;l1Category&quot;: &quot;A String&quot;, # The primary category of the loss (e.g., &quot;Hallucination&quot;, &quot;Tool Calling&quot;). This field is typically required.
3582 &quot;l2Category&quot;: &quot;A String&quot;, # The secondary category of the loss (e.g., &quot;Hallucination of Action&quot;, &quot;Incorrect Tool Selection&quot;).
3583 },
3584 },
3585 ],
3586 &quot;config&quot;: { # Configuration for the loss analysis job. # The configuration used to generate this analysis.
3587 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
3588 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
3589 },
3590 },
3591 ],
3592 &quot;summaryMetrics&quot;: { # The summary metrics for the evaluation run. # Optional. The summary metrics for the evaluation run.
3593 &quot;failedItems&quot;: 42, # Optional. The number of items that failed to be evaluated.
3594 &quot;metrics&quot;: { # Optional. Map of metric name to metric value.
3595 &quot;a_key&quot;: &quot;&quot;,
3596 },
3597 &quot;totalItems&quot;: 42, # Optional. The total number of items that were evaluated.
3598 },
3599 },
3600 &quot;evaluationSetSnapshot&quot;: &quot;A String&quot;, # Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it&#x27;s the sampled BigQuery dataset.
3601 &quot;inferenceConfigs&quot;: { # Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.
3602 &quot;a_key&quot;: { # Defines the configuration for a candidate model or agent being evaluated. `InferenceConfig` encapsulates all the necessary information to invoke or scrape the candidate during the evaluation run. This includes direct model inference parameters, agent execution settings, and multi-turn scraping configurations (such as user simulators). It serves as the primary representation of the candidate across different stages of the evaluation process.
3603 &quot;agentConfig&quot;: { # Configuration that describes an agent. # Optional. Deprecated: Use `agents` instead. Agent config used to generate responses.
3604 &quot;developerInstruction&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Optional. The developer instruction for the agent.
3605 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
3606 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
3607 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
3608 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
3609 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
3610 },
3611 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
3612 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
3613 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
3614 },
3615 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
3616 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3617 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
3618 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3619 },
3620 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
3621 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
3622 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3623 },
3624 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
3625 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
3626 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
3627 { # Partial argument value of the function call.
3628 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
3629 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
3630 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
3631 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
3632 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
3633 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
3634 },
3635 ],
3636 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
3637 },
3638 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
3639 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
3640 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
3641 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
3642 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
3643 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
3644 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3645 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
3646 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3647 },
3648 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
3649 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
3650 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
3651 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3652 },
3653 },
3654 ],
3655 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
3656 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3657 },
3658 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
3659 },
3660 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
3661 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
3662 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
3663 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
3664 },
3665 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
3666 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
3667 },
3668 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
3669 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
3670 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
3671 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
3672 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
3673 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
3674 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
3675 },
3676 },
3677 ],
3678 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
3679 },
3680 &quot;tools&quot;: [ # Optional. The tools available to the agent.
3681 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
3682 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
3683 },
3684 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
3685 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
3686 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
3687 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
3688 &quot;A String&quot;,
3689 ],
3690 },
3691 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
3692 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
3693 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
3694 &quot;A String&quot;,
3695 ],
3696 },
3697 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
3698 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
3699 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
3700 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3701 },
3702 },
3703 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
3704 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
3705 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
3706 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
3707 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
3708 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
3709 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
3710 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
3711 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3712 ],
3713 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
3714 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
3715 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3716 },
3717 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
3718 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
3719 &quot;A String&quot;,
3720 ],
3721 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
3722 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
3723 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
3724 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
3725 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
3726 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
3727 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
3728 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
3729 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
3730 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
3731 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
3732 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
3733 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
3734 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
3735 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3736 },
3737 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
3738 &quot;A String&quot;,
3739 ],
3740 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
3741 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
3742 &quot;A String&quot;,
3743 ],
3744 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
3745 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
3746 },
3747 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
3748 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
3749 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
3750 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
3751 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3752 ],
3753 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
3754 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
3755 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3756 },
3757 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
3758 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
3759 &quot;A String&quot;,
3760 ],
3761 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
3762 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
3763 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
3764 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
3765 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
3766 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
3767 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
3768 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
3769 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
3770 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
3771 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
3772 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
3773 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
3774 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
3775 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3776 },
3777 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
3778 &quot;A String&quot;,
3779 ],
3780 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
3781 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
3782 &quot;A String&quot;,
3783 ],
3784 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
3785 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
3786 },
3787 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
3788 },
3789 ],
3790 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
3791 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
3792 },
3793 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
3794 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
3795 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
3796 &quot;A String&quot;,
3797 ],
3798 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
3799 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
3800 },
3801 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
3802 },
3803 },
3804 },
3805 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
3806 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
3807 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
3808 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
3809 },
3810 },
3811 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
3812 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
3813 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
3814 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3815 },
3816 },
3817 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
3818 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
3819 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
3820 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
3821 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
3822 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
3823 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
3824 },
3825 },
3826 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
3827 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
3828 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
3829 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3830 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
3831 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
3832 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
3833 },
3834 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
3835 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
3836 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
3837 },
3838 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
3839 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
3840 },
3841 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
3842 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3843 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
3844 },
3845 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
3846 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
3847 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
3848 },
3849 },
3850 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
3851 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
3852 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
3853 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
3854 },
3855 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
3856 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
3857 },
3858 },
3859 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
3860 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
3861 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
3862 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3863 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
3864 },
3865 ],
3866 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
3867 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
3868 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
3869 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
3870 },
3871 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
3872 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
3873 &quot;A String&quot;,
3874 ],
3875 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
3876 { # The definition of the Rag resource.
3877 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
3878 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
3879 &quot;A String&quot;,
3880 ],
3881 },
3882 ],
3883 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
3884 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
3885 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
3886 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
3887 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
3888 },
3889 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
3890 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
3891 },
3892 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
3893 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
3894 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
3895 },
3896 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
3897 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
3898 },
3899 },
3900 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
3901 },
3902 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
3903 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
3904 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
3905 },
3906 },
3907 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
3908 },
3909 },
3910 ],
3911 },
3912 &quot;agentRunConfig&quot;: { # Configuration for Agent Run. # Optional. Agent run config.
3913 &quot;agentEngine&quot;: &quot;A String&quot;, # Optional. The resource name of the Agent Engine. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} For example: projects/123/locations/us-central1/reasoningEngines/456
3914 &quot;sessionInput&quot;: { # Session input to run an Agent. # Optional. The session input to get agent running results.
3915 &quot;parameters&quot;: { # Optional. Additional parameters for the session, like app_name, etc. For example, {&quot;app_name&quot;: &quot;my-app&quot;}.
3916 &quot;a_key&quot;: &quot;A String&quot;,
3917 },
3918 &quot;sessionState&quot;: { # Optional. Session specific memory which stores key conversation points.
3919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3920 },
3921 &quot;userId&quot;: &quot;A String&quot;, # Optional. The user id for the agent session. The ID can be up to 128 characters long.
3922 },
3923 &quot;userSimulatorConfig&quot;: { # Used for multi-turn agent scraping. Contains configuration for a user simulator that uses an LLM to generate messages on behalf of the user. # The configuration for a user simulator that uses an LLM to generate messages on behalf of the user.
3924 &quot;maxTurn&quot;: 42, # Maximum number of invocations allowed by the multi-turn agent scraping. This property allows us to stop a run-off conversation, where the agent and the user simulator get into a never ending loop. The initial fixed prompt is also counted as an invocation.
3925 &quot;modelConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # The configuration for the model.
3926 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
3927 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
3928 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
3929 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
3930 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
3931 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
3932 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
3933 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
3934 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
3935 },
3936 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
3937 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
3938 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
3939 },
3940 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
3941 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
3942 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
3943 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
3944 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
3945 },
3946 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
3947 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
3948 { # Configuration for the model to configure output formatting and delivery.
3949 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
3950 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
3951 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
3952 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
3953 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
3954 },
3955 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
3956 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
3957 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
3958 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
3959 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
3960 },
3961 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
3962 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
3963 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
3964 },
3965 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
3966 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
3967 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
3968 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
3969 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
3970 },
3971 },
3972 ],
3973 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
3974 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
3975 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
3976 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
3977 &quot;A String&quot;,
3978 ],
3979 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
3980 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
3981 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
3982 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3983 ],
3984 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
3985 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
3986 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
3987 },
3988 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
3989 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
3990 &quot;A String&quot;,
3991 ],
3992 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
3993 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
3994 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
3995 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
3996 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
3997 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
3998 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
3999 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4000 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4001 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4002 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4003 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4004 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4005 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4006 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4007 },
4008 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4009 &quot;A String&quot;,
4010 ],
4011 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4012 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4013 &quot;A String&quot;,
4014 ],
4015 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4016 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4017 },
4018 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
4019 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
4020 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
4021 },
4022 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
4023 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
4024 },
4025 },
4026 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
4027 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
4028 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
4029 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
4030 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
4031 { # Configuration for a single speaker in a multi-speaker setup.
4032 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
4033 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
4034 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4035 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4036 },
4037 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4038 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4039 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4040 },
4041 },
4042 },
4043 ],
4044 },
4045 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
4046 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4047 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4048 },
4049 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4050 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4051 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4052 },
4053 },
4054 },
4055 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
4056 &quot;A String&quot;,
4057 ],
4058 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
4059 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
4060 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
4061 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
4062 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
4063 },
4064 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
4065 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
4066 },
4067 &quot;modelName&quot;: &quot;A String&quot;, # The model name to use for multi-turn agent scraping to get next user message, e.g. &quot;gemini-3-flash-preview&quot;.
4068 },
4069 },
4070 &quot;agents&quot;: { # Optional. Contains the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
4071 &quot;a_key&quot;: { # Represents configuration for an Agent.
4072 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
4073 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
4074 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
4075 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
4076 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
4077 &quot;A String&quot;,
4078 ],
4079 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
4080 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
4081 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
4082 },
4083 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
4084 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
4085 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
4086 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
4087 &quot;A String&quot;,
4088 ],
4089 },
4090 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
4091 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
4092 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
4093 &quot;A String&quot;,
4094 ],
4095 },
4096 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
4097 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
4098 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
4099 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4100 },
4101 },
4102 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
4103 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
4104 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
4105 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
4106 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
4107 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
4108 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4109 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4110 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4111 ],
4112 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4113 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4114 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4115 },
4116 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4117 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4118 &quot;A String&quot;,
4119 ],
4120 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4121 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4122 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4123 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4124 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4125 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4126 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4127 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4128 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4129 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4130 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4131 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4132 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4133 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4134 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4135 },
4136 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4137 &quot;A String&quot;,
4138 ],
4139 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4140 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4141 &quot;A String&quot;,
4142 ],
4143 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4144 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4145 },
4146 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
4147 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
4148 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4149 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4150 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4151 ],
4152 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4153 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4154 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4155 },
4156 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4157 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4158 &quot;A String&quot;,
4159 ],
4160 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4161 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4162 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4163 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4164 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4165 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4166 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4167 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4168 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4169 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4170 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4171 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4172 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4173 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4174 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4175 },
4176 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4177 &quot;A String&quot;,
4178 ],
4179 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4180 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4181 &quot;A String&quot;,
4182 ],
4183 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4184 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4185 },
4186 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
4187 },
4188 ],
4189 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
4190 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
4191 },
4192 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
4193 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
4194 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
4195 &quot;A String&quot;,
4196 ],
4197 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
4198 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
4199 },
4200 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
4201 },
4202 },
4203 },
4204 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
4205 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
4206 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
4207 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
4208 },
4209 },
4210 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
4211 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
4212 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
4213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4214 },
4215 },
4216 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
4217 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
4218 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
4219 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
4220 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
4221 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
4222 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
4223 },
4224 },
4225 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
4226 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
4227 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
4228 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
4229 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
4230 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
4231 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
4232 },
4233 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
4234 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
4235 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
4236 },
4237 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
4238 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
4239 },
4240 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
4241 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
4242 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
4243 },
4244 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
4245 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
4246 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
4247 },
4248 },
4249 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
4250 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
4251 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
4252 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
4253 },
4254 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
4255 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
4256 },
4257 },
4258 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
4259 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
4260 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
4261 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
4262 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
4263 },
4264 ],
4265 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
4266 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
4267 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
4268 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
4269 },
4270 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
4271 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
4272 &quot;A String&quot;,
4273 ],
4274 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
4275 { # The definition of the Rag resource.
4276 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
4277 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
4278 &quot;A String&quot;,
4279 ],
4280 },
4281 ],
4282 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
4283 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
4284 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
4285 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
4286 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
4287 },
4288 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
4289 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
4290 },
4291 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
4292 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
4293 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
4294 },
4295 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
4296 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
4297 },
4298 },
4299 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
4300 },
4301 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
4302 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
4303 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
4304 },
4305 },
4306 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
4307 },
4308 },
4309 ],
4310 },
4311 },
4312 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Generation config.
4313 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
4314 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
4315 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
4316 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
4317 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
4318 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
4319 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
4320 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
4321 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
4322 },
4323 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
4324 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
4325 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
4326 },
4327 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
4328 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
4329 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
4330 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
4331 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
4332 },
4333 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
4334 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
4335 { # Configuration for the model to configure output formatting and delivery.
4336 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
4337 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
4338 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4339 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
4340 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
4341 },
4342 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
4343 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
4344 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4345 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
4346 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
4347 },
4348 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
4349 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
4350 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
4351 },
4352 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
4353 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
4354 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4355 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
4356 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
4357 },
4358 },
4359 ],
4360 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
4361 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
4362 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
4363 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
4364 &quot;A String&quot;,
4365 ],
4366 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
4367 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4368 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4369 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4370 ],
4371 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4372 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4373 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4374 },
4375 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4376 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4377 &quot;A String&quot;,
4378 ],
4379 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4380 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4381 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4382 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4383 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4384 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4385 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4386 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4387 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4388 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4389 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4390 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4391 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4392 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4393 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4394 },
4395 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4396 &quot;A String&quot;,
4397 ],
4398 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4399 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4400 &quot;A String&quot;,
4401 ],
4402 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4403 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4404 },
4405 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
4406 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
4407 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
4408 },
4409 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
4410 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
4411 },
4412 },
4413 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
4414 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
4415 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
4416 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
4417 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
4418 { # Configuration for a single speaker in a multi-speaker setup.
4419 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
4420 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
4421 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4422 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4423 },
4424 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4425 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4426 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4427 },
4428 },
4429 },
4430 ],
4431 },
4432 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
4433 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4434 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4435 },
4436 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4437 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4438 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4439 },
4440 },
4441 },
4442 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
4443 &quot;A String&quot;,
4444 ],
4445 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
4446 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
4447 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
4448 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
4449 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
4450 },
4451 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
4452 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
4453 },
4454 &quot;model&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and Llama third-party models are also supported through Model Garden. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Third-party model formats: `projects/{project}/locations/{location}/publishers/anthropic/models/{model}` or `projects/{project}/locations/{location}/publishers/llama/models/{model}` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
4455 &quot;parallelism&quot;: 42, # Optional. The parallelism of the evaluation run for the inference step. If not specified, the default parallelism will be used.
4456 },
4457 },
4458 &quot;labels&quot;: { # Optional. Labels for the evaluation run.
4459 &quot;a_key&quot;: &quot;A String&quot;,
4460 },
4461 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.
4462 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`
4463 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the evaluation run.
4464 }
4465
4466 x__xgafv: string, V1 error format.
4467 Allowed values
4468 1 - v1 error format
4469 2 - v2 error format
4470
4471 Returns:
4472 An object of the form:
4473
4474 { # EvaluationRun is a resource that represents a single evaluation run, which includes a set of prompts, model responses, evaluation configuration and the resulting metrics.
4475 &quot;completionTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was completed.
4476 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was created.
4477 &quot;dataSource&quot;: { # The data source for the evaluation run. # Required. The data source for the evaluation run.
4478 &quot;bigqueryRequestSet&quot;: { # The request set for the evaluation run. # Evaluation data in bigquery.
4479 &quot;candidateResponseColumns&quot;: { # Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.
4480 &quot;a_key&quot;: &quot;A String&quot;,
4481 },
4482 &quot;promptColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format.
4483 &quot;rubricsColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the rubrics. This is in evaluation_rubric.RubricGroup format.
4484 &quot;samplingConfig&quot;: { # The sampling config. # Optional. The sampling config for the bigquery resource.
4485 &quot;samplingCount&quot;: 42, # Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100.
4486 &quot;samplingDuration&quot;: &quot;A String&quot;, # Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0.
4487 &quot;samplingMethod&quot;: &quot;A String&quot;, # Optional. The sampling method to use.
4488 },
4489 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId
4490 },
4491 &quot;evaluationSet&quot;: &quot;A String&quot;, # The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
4492 },
4493 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Evaluation Run.
4494 &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. Only populated when the evaluation run&#x27;s state is FAILED or CANCELLED.
4495 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4496 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
4497 {
4498 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4499 },
4500 ],
4501 &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.
4502 },
4503 &quot;evaluationConfig&quot;: { # The Evalution configuration used for the evaluation run. # Optional. The configuration used for the evaluation. Optional when analysis_configs is provided.
4504 &quot;autoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. The autorater config for the evaluation run.
4505 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
4506 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
4507 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
4508 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
4509 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
4510 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
4511 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
4512 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
4513 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
4514 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
4515 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
4516 },
4517 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
4518 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
4519 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
4520 },
4521 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
4522 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
4523 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
4524 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
4525 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
4526 },
4527 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
4528 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
4529 { # Configuration for the model to configure output formatting and delivery.
4530 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
4531 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
4532 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4533 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
4534 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
4535 },
4536 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
4537 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
4538 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4539 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
4540 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
4541 },
4542 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
4543 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
4544 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
4545 },
4546 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
4547 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
4548 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4549 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
4550 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
4551 },
4552 },
4553 ],
4554 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
4555 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
4556 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
4557 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
4558 &quot;A String&quot;,
4559 ],
4560 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
4561 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4562 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4563 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4564 ],
4565 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4566 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4567 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4568 },
4569 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4570 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4571 &quot;A String&quot;,
4572 ],
4573 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4574 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4575 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4576 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4577 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4578 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4579 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4580 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4581 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4582 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4583 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4584 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4585 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4586 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4587 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4588 },
4589 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4590 &quot;A String&quot;,
4591 ],
4592 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4593 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4594 &quot;A String&quot;,
4595 ],
4596 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4597 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4598 },
4599 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
4600 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
4601 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
4602 },
4603 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
4604 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
4605 },
4606 },
4607 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
4608 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
4609 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
4610 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
4611 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
4612 { # Configuration for a single speaker in a multi-speaker setup.
4613 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
4614 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
4615 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4616 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4617 },
4618 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4619 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4620 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4621 },
4622 },
4623 },
4624 ],
4625 },
4626 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
4627 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4628 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4629 },
4630 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4631 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4632 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4633 },
4634 },
4635 },
4636 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
4637 &quot;A String&quot;,
4638 ],
4639 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
4640 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
4641 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
4642 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
4643 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
4644 },
4645 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
4646 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
4647 },
4648 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
4649 },
4650 &quot;datasetCustomMetrics&quot;: [ # Optional. Specifications for custom dataset-level aggregations.
4651 { # Defines a custom dataset-level aggregation.
4652 &quot;aggregationFunction&quot;: &quot;A String&quot;, # Required. The Python code string containing the aggregation function. Expected function signature: `def aggregate(instances: list[dict[str, Any]]) -&gt; dict[str, float]:` The `instances` argument is a list of dictionaries, where each dictionary represents a single evaluation result item. The structure of each dictionary corresponds to the fields in the `EvaluationResult` message. This includes: - `&quot;request&quot;`: Contains the original input data and model inputs (from `EvaluationResult.EvaluationRequest`). - `&quot;candidate_results&quot;`: Contains the results of any instance-level metrics (from `EvaluationResult.CandidateResults`). Example of a single item in the `instances` list: { &quot;request&quot;: { &quot;prompt&quot;: {&quot;text&quot;: &quot;What is the capital of France?&quot;}, &quot;golden_response&quot;: {&quot;text&quot;: &quot;Paris&quot;}, &quot;candidate_responses&quot;: [{&quot;candidate&quot;: &quot;model-v1&quot;, &quot;text&quot;: &quot;Paris&quot;}] }, &quot;candidate_results&quot;: [ {&quot;metric&quot;: &quot;exact_match&quot;, &quot;score&quot;: 1.0}, {&quot;metric&quot;: &quot;bleu&quot;, &quot;score&quot;: 0.9} ] }
4653 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A display name for this custom summary metric. Used to prefix keys in the output summaryMetrics map. If not provided, a default name like &quot;dataset_custom_metric_1&quot;, &quot;dataset_custom_metric_2&quot;, etc., will be generated based on the order in the repeated field.
4654 },
4655 ],
4656 &quot;lossAnalysisConfig&quot;: [ # Optional. Specifications for loss analysis. Each config can be specified for one metric.
4657 { # Configuration for the loss analysis job.
4658 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
4659 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
4660 },
4661 ],
4662 &quot;metrics&quot;: [ # Optional. The metrics to be calculated in the evaluation run. Required when analysis_configs is not set.
4663 { # The metric used for evaluation runs.
4664 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
4665 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
4666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4667 },
4668 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
4669 },
4670 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
4671 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
4672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4673 },
4674 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater).
4675 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
4676 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
4677 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
4678 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
4679 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
4680 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
4681 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
4682 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
4683 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
4684 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
4685 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
4686 },
4687 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
4688 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
4689 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
4690 },
4691 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
4692 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
4693 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
4694 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
4695 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
4696 },
4697 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
4698 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
4699 { # Configuration for the model to configure output formatting and delivery.
4700 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
4701 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
4702 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4703 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
4704 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
4705 },
4706 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
4707 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
4708 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4709 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
4710 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
4711 },
4712 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
4713 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
4714 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
4715 },
4716 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
4717 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
4718 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4719 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
4720 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
4721 },
4722 },
4723 ],
4724 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
4725 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
4726 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
4727 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
4728 &quot;A String&quot;,
4729 ],
4730 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
4731 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4732 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4733 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4734 ],
4735 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4736 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4737 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4738 },
4739 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4740 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4741 &quot;A String&quot;,
4742 ],
4743 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4744 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4745 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4746 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4747 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4748 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4749 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4750 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4751 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4752 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4753 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4754 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4755 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4756 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4757 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4758 },
4759 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4760 &quot;A String&quot;,
4761 ],
4762 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4763 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4764 &quot;A String&quot;,
4765 ],
4766 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4767 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4768 },
4769 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
4770 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
4771 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
4772 },
4773 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
4774 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
4775 },
4776 },
4777 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
4778 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
4779 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
4780 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
4781 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
4782 { # Configuration for a single speaker in a multi-speaker setup.
4783 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
4784 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
4785 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4786 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4787 },
4788 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4789 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4790 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4791 },
4792 },
4793 },
4794 ],
4795 },
4796 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
4797 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4798 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4799 },
4800 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4801 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4802 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4803 },
4804 },
4805 },
4806 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
4807 &quot;A String&quot;,
4808 ],
4809 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
4810 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
4811 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
4812 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
4813 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
4814 },
4815 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
4816 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
4817 },
4818 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
4819 },
4820 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
4821 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
4822 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
4823 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
4824 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4825 },
4826 },
4827 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
4828 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
4829 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
4830 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
4831 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
4832 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
4833 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
4834 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
4835 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
4836 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
4837 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
4838 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
4839 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
4840 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
4841 },
4842 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
4843 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
4844 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
4845 },
4846 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
4847 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
4848 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
4849 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
4850 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
4851 },
4852 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
4853 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
4854 { # Configuration for the model to configure output formatting and delivery.
4855 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
4856 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
4857 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4858 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
4859 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
4860 },
4861 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
4862 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
4863 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4864 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
4865 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
4866 },
4867 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
4868 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
4869 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
4870 },
4871 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
4872 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
4873 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
4874 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
4875 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
4876 },
4877 },
4878 ],
4879 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
4880 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
4881 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
4882 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
4883 &quot;A String&quot;,
4884 ],
4885 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
4886 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
4887 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
4888 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4889 ],
4890 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
4891 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
4892 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4893 },
4894 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
4895 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
4896 &quot;A String&quot;,
4897 ],
4898 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
4899 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
4900 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
4901 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
4902 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
4903 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
4904 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
4905 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
4906 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
4907 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
4908 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
4909 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
4910 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
4911 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
4912 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
4913 },
4914 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
4915 &quot;A String&quot;,
4916 ],
4917 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
4918 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
4919 &quot;A String&quot;,
4920 ],
4921 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
4922 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
4923 },
4924 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
4925 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
4926 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
4927 },
4928 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
4929 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
4930 },
4931 },
4932 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
4933 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
4934 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
4935 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
4936 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
4937 { # Configuration for a single speaker in a multi-speaker setup.
4938 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
4939 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
4940 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4941 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4942 },
4943 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4944 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4945 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4946 },
4947 },
4948 },
4949 ],
4950 },
4951 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
4952 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
4953 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
4954 },
4955 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
4956 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
4957 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
4958 },
4959 },
4960 },
4961 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
4962 &quot;A String&quot;,
4963 ],
4964 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
4965 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
4966 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
4967 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
4968 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
4969 },
4970 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
4971 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
4972 },
4973 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
4974 },
4975 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
4976 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
4977 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
4978 &quot;A String&quot;,
4979 ],
4980 },
4981 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
4982 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
4983 },
4984 &quot;metric&quot;: &quot;A String&quot;, # Required. The name of the metric.
4985 &quot;metricConfig&quot;: { # The metric used for running evaluations. # The metric config.
4986 &quot;aggregationMetrics&quot;: [ # Optional. The aggregation metrics to use.
4987 &quot;A String&quot;,
4988 ],
4989 &quot;bleuSpec&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. # Spec for bleu metric.
4990 &quot;useEffectiveOrder&quot;: True or False, # Optional. Whether to use_effective_order to compute bleu score.
4991 },
4992 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
4993 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
4994 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4995 },
4996 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
4997 },
4998 &quot;customCodeExecutionSpec&quot;: { # Specificies a metric that is populated by evaluating user-defined Python code. # Spec for Custom Code Execution metric.
4999 &quot;evaluationFunction&quot;: &quot;A String&quot;, # Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -&gt; float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=&quot;The answer is 4.&quot;), reference=EvaluationInstance.InstanceData(text=&quot;4&quot;) ) ``` Example converted input: ``` { &#x27;response&#x27;: {&#x27;text&#x27;: &#x27;The answer is 4.&#x27;}, &#x27;reference&#x27;: {&#x27;text&#x27;: &#x27;4&#x27;} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -&gt; float: if instance&#x27;response&#x27; == instance&#x27;reference&#x27;: return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function.
5000 },
5001 &quot;exactMatchSpec&quot;: { # Spec for exact match metric - returns 1 if prediction and reference exactly matches, otherwise 0. # Spec for exact match metric.
5002 },
5003 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
5004 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
5005 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5006 },
5007 &quot;judgeAutoraterConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Optional. Optional configuration for the judge LLM (Autorater).
5008 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
5009 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
5010 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
5011 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
5012 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
5013 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
5014 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
5015 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
5016 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
5017 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
5018 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
5019 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
5020 },
5021 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
5022 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
5023 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
5024 },
5025 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
5026 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
5027 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
5028 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
5029 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
5030 },
5031 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
5032 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
5033 { # Configuration for the model to configure output formatting and delivery.
5034 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
5035 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
5036 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5037 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
5038 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
5039 },
5040 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
5041 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
5042 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5043 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
5044 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
5045 },
5046 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
5047 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
5048 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
5049 },
5050 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
5051 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
5052 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5053 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
5054 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
5055 },
5056 },
5057 ],
5058 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
5059 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
5060 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
5061 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
5062 &quot;A String&quot;,
5063 ],
5064 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
5065 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5066 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5067 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5068 ],
5069 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5070 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5071 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5072 },
5073 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5074 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5075 &quot;A String&quot;,
5076 ],
5077 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5078 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5079 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5080 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5081 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5082 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5083 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5084 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5085 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5086 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5087 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5088 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5089 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5090 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5091 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5092 },
5093 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5094 &quot;A String&quot;,
5095 ],
5096 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5097 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5098 &quot;A String&quot;,
5099 ],
5100 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5101 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5102 },
5103 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
5104 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
5105 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
5106 },
5107 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
5108 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
5109 },
5110 },
5111 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
5112 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
5113 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
5114 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
5115 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
5116 { # Configuration for a single speaker in a multi-speaker setup.
5117 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
5118 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
5119 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5120 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5121 },
5122 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5123 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5124 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5125 },
5126 },
5127 },
5128 ],
5129 },
5130 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
5131 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5132 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5133 },
5134 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5135 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5136 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5137 },
5138 },
5139 },
5140 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
5141 &quot;A String&quot;,
5142 ],
5143 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
5144 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
5145 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
5146 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
5147 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
5148 },
5149 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
5150 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
5151 },
5152 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
5153 },
5154 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
5155 &quot;predefinedRubricGenerationSpec&quot;: { # The spec for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
5156 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
5157 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
5158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5159 },
5160 },
5161 &quot;resultParserConfig&quot;: { # Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters. # Optional. The parser config for the metric result.
5162 &quot;customCodeParserConfig&quot;: { # Configuration for parsing the LLM response using custom code. # Optional. Use custom code to parse the LLM response.
5163 &quot;parsingFunction&quot;: &quot;A String&quot;, # Required. Python function for parsing results. The function should be defined within this string. The function takes a list of strings (LLM responses) and should return either a list of dictionaries (for rubrics) or a single dictionary (for a metric result). Example function signature: def parse(responses: list[str]) -&gt; list[dict[str, Any]] | dict[str, Any]: When parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric. Example for rubrics: [ { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is factual.&quot;}}, &quot;type&quot;: &quot;FACTUALITY&quot;, &quot;importance&quot;: &quot;HIGH&quot; }, { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is fluent.&quot;}}, &quot;type&quot;: &quot;FLUENCY&quot;, &quot;importance&quot;: &quot;MEDIUM&quot; } ] When parsing critique results, return a dictionary representing a MetricResult. Example for a metric result: { &quot;score&quot;: 0.8, &quot;explanation&quot;: &quot;The model followed most instructions.&quot;, &quot;rubric_verdicts&quot;: [...] } ... code for result extraction and aggregation
5164 },
5165 },
5166 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
5167 &quot;modelConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
5168 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
5169 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
5170 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
5171 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
5172 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
5173 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
5174 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
5175 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
5176 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
5177 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
5178 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
5179 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
5180 },
5181 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
5182 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
5183 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
5184 },
5185 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
5186 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
5187 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
5188 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
5189 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
5190 },
5191 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
5192 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
5193 { # Configuration for the model to configure output formatting and delivery.
5194 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
5195 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
5196 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5197 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
5198 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
5199 },
5200 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
5201 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
5202 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5203 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
5204 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
5205 },
5206 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
5207 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
5208 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
5209 },
5210 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
5211 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
5212 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5213 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
5214 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
5215 },
5216 },
5217 ],
5218 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
5219 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
5220 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
5221 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
5222 &quot;A String&quot;,
5223 ],
5224 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
5225 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5226 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5227 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5228 ],
5229 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5230 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5231 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5232 },
5233 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5234 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5235 &quot;A String&quot;,
5236 ],
5237 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5238 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5239 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5240 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5241 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5242 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5243 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5244 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5245 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5246 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5247 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5248 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5249 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5250 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5251 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5252 },
5253 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5254 &quot;A String&quot;,
5255 ],
5256 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5257 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5258 &quot;A String&quot;,
5259 ],
5260 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5261 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5262 },
5263 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
5264 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
5265 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
5266 },
5267 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
5268 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
5269 },
5270 },
5271 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
5272 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
5273 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
5274 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
5275 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
5276 { # Configuration for a single speaker in a multi-speaker setup.
5277 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
5278 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
5279 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5280 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5281 },
5282 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5283 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5284 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5285 },
5286 },
5287 },
5288 ],
5289 },
5290 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
5291 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5292 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5293 },
5294 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5295 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5296 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5297 },
5298 },
5299 },
5300 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
5301 &quot;A String&quot;,
5302 ],
5303 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
5304 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
5305 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
5306 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
5307 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
5308 },
5309 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
5310 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
5311 },
5312 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
5313 },
5314 &quot;promptTemplate&quot;: &quot;A String&quot;, # Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
5315 &quot;rubricContentType&quot;: &quot;A String&quot;, # The type of rubric content to be generated.
5316 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
5317 &quot;A String&quot;,
5318 ],
5319 },
5320 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
5321 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
5322 },
5323 &quot;metadata&quot;: { # Metadata about the metric, used for visualization and organization. # Optional. Metadata about the metric, used for visualization and organization.
5324 &quot;otherMetadata&quot;: { # Optional. Flexible metadata for user-defined attributes.
5325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5326 },
5327 &quot;scoreRange&quot;: { # The range of possible scores for this metric, used for plotting. # Optional. The range of possible scores for this metric, used for plotting.
5328 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the score explaining the directionality etc.
5329 &quot;max&quot;: 3.14, # Required. The maximum value of the score range (inclusive).
5330 &quot;min&quot;: 3.14, # Required. The minimum value of the score range (inclusive).
5331 &quot;step&quot;: 3.14, # Optional. The distance between discrete steps in the range. If unset, the range is assumed to be continuous.
5332 },
5333 &quot;title&quot;: &quot;A String&quot;, # Optional. The user-friendly name for the metric. If not set for a registered metric, it will default to the metric&#x27;s display name.
5334 },
5335 &quot;pairwiseMetricSpec&quot;: { # Spec for pairwise metric. # Spec for pairwise metric.
5336 &quot;baselineResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the baseline response.
5337 &quot;candidateResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the candidate response.
5338 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
5339 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
5340 },
5341 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pairwise metric.
5342 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pairwise metric.
5343 },
5344 &quot;pointwiseMetricSpec&quot;: { # Spec for pointwise metric. # Spec for pointwise metric.
5345 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
5346 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
5347 },
5348 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pointwise metric.
5349 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pointwise metric.
5350 },
5351 &quot;predefinedMetricSpec&quot;: { # The spec for a pre-defined metric. # The spec for a pre-defined metric.
5352 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
5353 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
5354 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5355 },
5356 },
5357 &quot;rougeSpec&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. # Spec for rouge metric.
5358 &quot;rougeType&quot;: &quot;A String&quot;, # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
5359 &quot;splitSummaries&quot;: True or False, # Optional. Whether to split summaries while using rougeLsum.
5360 &quot;useStemmer&quot;: True or False, # Optional. Whether to use stemmer to compute rouge score.
5361 },
5362 },
5363 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. The resource name of the metric definition.
5364 &quot;predefinedMetricSpec&quot;: { # Specification for a pre-defined metric. # Spec for a pre-defined metric.
5365 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
5366 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
5367 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5368 },
5369 },
5370 &quot;rubricBasedMetricSpec&quot;: { # Specification for a metric that is based on rubrics. # Spec for rubric based metric.
5371 &quot;inlineRubrics&quot;: { # Defines a list of rubrics, used when providing rubrics inline. # Use rubrics provided directly in the spec.
5372 &quot;rubrics&quot;: [ # The list of rubrics.
5373 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
5374 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
5375 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
5376 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
5377 },
5378 },
5379 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
5380 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
5381 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
5382 },
5383 ],
5384 },
5385 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided.
5386 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
5387 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
5388 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
5389 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
5390 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
5391 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
5392 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
5393 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
5394 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
5395 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
5396 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
5397 },
5398 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
5399 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
5400 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
5401 },
5402 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
5403 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
5404 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
5405 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
5406 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
5407 },
5408 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
5409 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
5410 { # Configuration for the model to configure output formatting and delivery.
5411 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
5412 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
5413 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5414 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
5415 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
5416 },
5417 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
5418 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
5419 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5420 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
5421 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
5422 },
5423 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
5424 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
5425 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
5426 },
5427 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
5428 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
5429 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5430 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
5431 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
5432 },
5433 },
5434 ],
5435 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
5436 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
5437 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
5438 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
5439 &quot;A String&quot;,
5440 ],
5441 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
5442 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5443 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5444 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5445 ],
5446 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5447 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5448 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5449 },
5450 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5451 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5452 &quot;A String&quot;,
5453 ],
5454 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5455 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5456 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5457 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5458 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5459 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5460 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5461 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5462 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5463 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5464 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5465 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5466 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5467 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5468 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5469 },
5470 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5471 &quot;A String&quot;,
5472 ],
5473 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5474 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5475 &quot;A String&quot;,
5476 ],
5477 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5478 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5479 },
5480 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
5481 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
5482 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
5483 },
5484 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
5485 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
5486 },
5487 },
5488 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
5489 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
5490 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
5491 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
5492 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
5493 { # Configuration for a single speaker in a multi-speaker setup.
5494 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
5495 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
5496 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5497 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5498 },
5499 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5500 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5501 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5502 },
5503 },
5504 },
5505 ],
5506 },
5507 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
5508 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5509 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5510 },
5511 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5512 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5513 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5514 },
5515 },
5516 },
5517 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
5518 &quot;A String&quot;,
5519 ],
5520 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
5521 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
5522 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
5523 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
5524 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
5525 },
5526 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
5527 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
5528 },
5529 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
5530 },
5531 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used by the judge model to evaluate against rubrics.
5532 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics for evaluation using this specification.
5533 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
5534 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
5535 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
5536 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
5537 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
5538 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
5539 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
5540 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
5541 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
5542 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
5543 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
5544 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
5545 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
5546 },
5547 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
5548 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
5549 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
5550 },
5551 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
5552 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
5553 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
5554 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
5555 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
5556 },
5557 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
5558 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
5559 { # Configuration for the model to configure output formatting and delivery.
5560 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
5561 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
5562 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5563 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
5564 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
5565 },
5566 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
5567 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
5568 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5569 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
5570 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
5571 },
5572 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
5573 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
5574 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
5575 },
5576 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
5577 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
5578 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5579 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
5580 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
5581 },
5582 },
5583 ],
5584 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
5585 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
5586 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
5587 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
5588 &quot;A String&quot;,
5589 ],
5590 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
5591 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5592 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5593 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5594 ],
5595 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5596 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5597 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5598 },
5599 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5600 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5601 &quot;A String&quot;,
5602 ],
5603 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5604 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5605 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5606 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5607 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5608 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5609 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5610 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5611 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5612 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5613 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5614 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5615 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5616 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5617 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5618 },
5619 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5620 &quot;A String&quot;,
5621 ],
5622 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5623 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5624 &quot;A String&quot;,
5625 ],
5626 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5627 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5628 },
5629 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
5630 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
5631 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
5632 },
5633 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
5634 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
5635 },
5636 },
5637 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
5638 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
5639 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
5640 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
5641 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
5642 { # Configuration for a single speaker in a multi-speaker setup.
5643 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
5644 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
5645 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5646 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5647 },
5648 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5649 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5650 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5651 },
5652 },
5653 },
5654 ],
5655 },
5656 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
5657 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5658 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5659 },
5660 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5661 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5662 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5663 },
5664 },
5665 },
5666 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
5667 &quot;A String&quot;,
5668 ],
5669 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
5670 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
5671 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
5672 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
5673 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
5674 },
5675 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
5676 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
5677 },
5678 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
5679 },
5680 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
5681 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
5682 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
5683 &quot;A String&quot;,
5684 ],
5685 },
5686 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`.
5687 },
5688 },
5689 ],
5690 &quot;outputConfig&quot;: { # The output config for the evaluation run. # Optional. The output config for the evaluation run.
5691 &quot;bigqueryDestination&quot;: { # The BigQuery location for the output content. # BigQuery destination for evaluation output.
5692 &quot;outputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a project or table, up to 2000 characters long. When only the project is specified, the Dataset and Table is created. When the full table reference is specified, the Dataset must exist and table must not exist. Accepted forms: * BigQuery path. For example: `bq://projectId` or `bq://projectId.bqDatasetId` or `bq://projectId.bqDatasetId.bqTableId`.
5693 },
5694 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output is to be written to. # Cloud Storage destination for evaluation output.
5695 &quot;outputUriPrefix&quot;: &quot;A String&quot;, # Required. Google Cloud Storage URI to output directory. If the uri doesn&#x27;t end with &#x27;/&#x27;, a &#x27;/&#x27; will be automatically appended. The directory is created if it doesn&#x27;t exist.
5696 },
5697 },
5698 &quot;promptTemplate&quot;: { # Prompt template used for inference. # The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values.
5699 &quot;gcsUri&quot;: &quot;A String&quot;, # Prompt template stored in Cloud Storage. Format: &quot;gs://my-bucket/file-name.txt&quot;.
5700 &quot;promptTemplate&quot;: &quot;A String&quot;, # Inline prompt template. Template variables should be in the format &quot;{var_name}&quot;. Example: &quot;Translate the following from {source_lang} to {target_lang}: {text}&quot;
5701 },
5702 &quot;rubricConfigs&quot;: [ # Optional. The rubric configs for the evaluation run. They are used to generate rubrics which can be used by rubric-based metrics. Multiple rubric configs can be specified for rubric generation but only one rubric config can be used for a rubric-based metric. If more than one rubric config is provided, the evaluation metric must specify a rubric group key. Note that if a generation spec is specified on both a rubric config and an evaluation metric, the rubrics generated for the metric will be used for evaluation.
5703 { # Configuration for a rubric group to be generated/saved for evaluation.
5704 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
5705 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
5706 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
5707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5708 },
5709 },
5710 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
5711 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
5712 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
5713 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
5714 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
5715 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
5716 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
5717 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
5718 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
5719 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
5720 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
5721 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
5722 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
5723 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
5724 },
5725 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
5726 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
5727 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
5728 },
5729 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
5730 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
5731 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
5732 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
5733 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
5734 },
5735 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
5736 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
5737 { # Configuration for the model to configure output formatting and delivery.
5738 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
5739 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
5740 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5741 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
5742 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
5743 },
5744 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
5745 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
5746 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5747 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
5748 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
5749 },
5750 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
5751 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
5752 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
5753 },
5754 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
5755 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
5756 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
5757 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
5758 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
5759 },
5760 },
5761 ],
5762 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
5763 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
5764 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
5765 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
5766 &quot;A String&quot;,
5767 ],
5768 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
5769 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5770 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5771 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5772 ],
5773 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5774 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5775 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5776 },
5777 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5778 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5779 &quot;A String&quot;,
5780 ],
5781 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5782 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5783 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5784 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5785 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5786 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5787 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5788 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5789 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5790 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5791 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5792 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5793 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5794 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5795 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5796 },
5797 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5798 &quot;A String&quot;,
5799 ],
5800 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5801 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5802 &quot;A String&quot;,
5803 ],
5804 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5805 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5806 },
5807 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
5808 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
5809 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
5810 },
5811 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
5812 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
5813 },
5814 },
5815 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
5816 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
5817 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
5818 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
5819 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
5820 { # Configuration for a single speaker in a multi-speaker setup.
5821 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
5822 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
5823 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5824 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5825 },
5826 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5827 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5828 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5829 },
5830 },
5831 },
5832 ],
5833 },
5834 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
5835 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
5836 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
5837 },
5838 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
5839 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
5840 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
5841 },
5842 },
5843 },
5844 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
5845 &quot;A String&quot;,
5846 ],
5847 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
5848 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
5849 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
5850 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
5851 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
5852 },
5853 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
5854 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
5855 },
5856 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
5857 },
5858 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
5859 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
5860 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
5861 &quot;A String&quot;,
5862 ],
5863 },
5864 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Required. The key used to save the generated rubrics. If a generation spec is provided, this key will be used for the name of the generated rubric group. Otherwise, this key will be used to look up the existing rubric group on the evaluation item. Note that if a rubric group key is specified on both a rubric config and an evaluation metric, the key from the metric will be used to select the rubrics for evaluation.
5865 },
5866 ],
5867 },
5868 &quot;evaluationResults&quot;: { # The results of the evaluation run. # Output only. The results of the evaluation run. Only populated when the evaluation run&#x27;s state is SUCCEEDED.
5869 &quot;evaluationSet&quot;: &quot;A String&quot;, # The evaluation set where item level results are stored.
5870 &quot;lossAnalysisResults&quot;: [ # Output only. The results of the auto-loss analysis performed on the eval set associated with the run.
5871 { # The top-level result for loss analysis, stored within an EvalSet.
5872 &quot;analysisTime&quot;: &quot;A String&quot;, # The timestamp when this analysis was performed.
5873 &quot;clusters&quot;: [ # The list of identified loss clusters.
5874 { # Represents a semantic grouping of failures (e.g., &quot;Hallucination of Action&quot;).
5875 &quot;clusterId&quot;: &quot;A String&quot;, # Unique identifier for the loss cluster within the scope of the analysis result.
5876 &quot;examples&quot;: [ # A list of examples that belong to this cluster. This links the cluster back to the specific EvaluationItems and Rubrics.
5877 { # Represents a specific example of a loss pattern.
5878 &quot;evaluationItem&quot;: &quot;A String&quot;, # Reference to the persisted EvalItem resource name. Format: projects/.../locations/.../evaluationItems/{item_id} Used when analysis is run on an EvalSet.
5879 &quot;evaluationResult&quot;: { # Evaluation result. # The full evaluation result object provided inline. Used when the analysis is performed on ephemeral data (without an EvaluationSet).
5880 &quot;candidateResults&quot;: [ # Optional. The results for the metric.
5881 { # Result for a single candidate.
5882 &quot;additionalResults&quot;: &quot;&quot;, # Optional. Additional results for the metric.
5883 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.
5884 &quot;explanation&quot;: &quot;A String&quot;, # Optional. The explanation for the metric.
5885 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
5886 &quot;rubricVerdicts&quot;: [ # Optional. The rubric verdicts for the metric.
5887 { # Represents the verdict of an evaluation against a single rubric.
5888 &quot;evaluatedRubric&quot;: { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics. # Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
5889 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
5890 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
5891 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
5892 },
5893 },
5894 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
5895 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
5896 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
5897 },
5898 &quot;reasoning&quot;: &quot;A String&quot;, # Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
5899 &quot;verdict&quot;: True or False, # Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a &quot;Pass&quot;, `false` indicates a &quot;Fail&quot;.
5900 },
5901 ],
5902 &quot;score&quot;: 3.14, # Optional. The score for the metric.
5903 },
5904 ],
5905 &quot;evaluationRequest&quot;: &quot;A String&quot;, # Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}
5906 &quot;evaluationRun&quot;: &quot;A String&quot;, # Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}
5907 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation result.
5908 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
5909 &quot;request&quot;: { # A single evaluation request supporting input for both single-turn model generation and multi-turn agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at least one of the `candidate_responses` must contain `agent_data`. # Required. The request that was evaluated.
5910 &quot;candidateResponses&quot;: [ # Optional. Responses from model under test and other baseline models for comparison.
5911 { # Responses from model or agent.
5912 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
5913 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
5914 &quot;a_key&quot;: { # Represents configuration for an Agent.
5915 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
5916 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
5917 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
5918 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
5919 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
5920 &quot;A String&quot;,
5921 ],
5922 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
5923 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
5924 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
5925 },
5926 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
5927 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
5928 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
5929 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
5930 &quot;A String&quot;,
5931 ],
5932 },
5933 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
5934 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
5935 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
5936 &quot;A String&quot;,
5937 ],
5938 },
5939 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
5940 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
5941 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
5942 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5943 },
5944 },
5945 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
5946 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
5947 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
5948 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
5949 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
5950 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
5951 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5952 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5953 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5954 ],
5955 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5956 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5957 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5958 },
5959 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
5960 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
5961 &quot;A String&quot;,
5962 ],
5963 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
5964 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
5965 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
5966 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
5967 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
5968 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
5969 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
5970 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
5971 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
5972 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
5973 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
5974 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
5975 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
5976 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
5977 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5978 },
5979 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
5980 &quot;A String&quot;,
5981 ],
5982 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
5983 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
5984 &quot;A String&quot;,
5985 ],
5986 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
5987 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
5988 },
5989 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
5990 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
5991 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
5992 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
5993 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5994 ],
5995 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
5996 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
5997 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
5998 },
5999 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6000 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6001 &quot;A String&quot;,
6002 ],
6003 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6004 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6005 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6006 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6007 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6008 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6009 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6010 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6011 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6012 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6013 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6014 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6015 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6016 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6017 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6018 },
6019 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6020 &quot;A String&quot;,
6021 ],
6022 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6023 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6024 &quot;A String&quot;,
6025 ],
6026 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6027 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6028 },
6029 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
6030 },
6031 ],
6032 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
6033 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
6034 },
6035 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
6036 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6037 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
6038 &quot;A String&quot;,
6039 ],
6040 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
6041 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
6042 },
6043 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
6044 },
6045 },
6046 },
6047 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
6048 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
6049 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
6050 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
6051 },
6052 },
6053 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
6054 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
6055 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
6056 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6057 },
6058 },
6059 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
6060 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
6061 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
6062 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
6063 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
6064 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
6065 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
6066 },
6067 },
6068 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
6069 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
6070 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
6071 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6072 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
6073 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
6074 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
6075 },
6076 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
6077 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
6078 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
6079 },
6080 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
6081 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6082 },
6083 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
6084 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6085 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
6086 },
6087 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
6088 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6089 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
6090 },
6091 },
6092 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
6093 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
6094 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
6095 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
6096 },
6097 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
6098 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
6099 },
6100 },
6101 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
6102 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
6103 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
6104 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6105 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
6106 },
6107 ],
6108 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6109 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
6110 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
6111 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
6112 },
6113 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
6114 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
6115 &quot;A String&quot;,
6116 ],
6117 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
6118 { # The definition of the Rag resource.
6119 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
6120 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
6121 &quot;A String&quot;,
6122 ],
6123 },
6124 ],
6125 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
6126 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
6127 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
6128 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
6129 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
6130 },
6131 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
6132 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
6133 },
6134 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
6135 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
6136 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
6137 },
6138 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
6139 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
6140 },
6141 },
6142 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
6143 },
6144 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
6145 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
6146 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
6147 },
6148 },
6149 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
6150 },
6151 },
6152 ],
6153 },
6154 },
6155 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
6156 { # Represents a single turn/invocation in the conversation.
6157 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
6158 { # Represents a single event in the execution trace.
6159 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
6160 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
6161 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
6162 },
6163 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
6164 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
6165 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
6166 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
6167 &quot;A String&quot;,
6168 ],
6169 },
6170 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
6171 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6172 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
6173 &quot;A String&quot;,
6174 ],
6175 },
6176 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
6177 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
6178 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
6179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6180 },
6181 },
6182 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
6183 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
6184 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
6185 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
6186 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
6187 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
6188 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6189 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6190 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6191 ],
6192 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6193 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6194 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6195 },
6196 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6197 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6198 &quot;A String&quot;,
6199 ],
6200 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6201 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6202 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6203 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6204 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6205 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6206 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6207 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6208 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6209 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6210 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6211 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6212 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6213 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6214 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6215 },
6216 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6217 &quot;A String&quot;,
6218 ],
6219 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6220 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6221 &quot;A String&quot;,
6222 ],
6223 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6224 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6225 },
6226 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
6227 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
6228 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6229 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6230 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6231 ],
6232 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6233 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6234 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6235 },
6236 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6237 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6238 &quot;A String&quot;,
6239 ],
6240 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6241 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6242 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6243 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6244 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6245 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6246 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6247 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6248 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6249 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6250 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6251 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6252 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6253 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6254 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6255 },
6256 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6257 &quot;A String&quot;,
6258 ],
6259 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6260 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6261 &quot;A String&quot;,
6262 ],
6263 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6264 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6265 },
6266 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
6267 },
6268 ],
6269 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
6270 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
6271 },
6272 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
6273 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6274 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
6275 &quot;A String&quot;,
6276 ],
6277 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
6278 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
6279 },
6280 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
6281 },
6282 },
6283 },
6284 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
6285 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
6286 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
6287 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
6288 },
6289 },
6290 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
6291 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
6292 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
6293 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6294 },
6295 },
6296 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
6297 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
6298 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
6299 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
6300 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
6301 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
6302 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
6303 },
6304 },
6305 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
6306 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
6307 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
6308 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6309 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
6310 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
6311 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
6312 },
6313 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
6314 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
6315 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
6316 },
6317 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
6318 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6319 },
6320 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
6321 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6322 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
6323 },
6324 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
6325 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6326 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
6327 },
6328 },
6329 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
6330 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
6331 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
6332 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
6333 },
6334 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
6335 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
6336 },
6337 },
6338 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
6339 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
6340 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
6341 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6342 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
6343 },
6344 ],
6345 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6346 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
6347 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
6348 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
6349 },
6350 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
6351 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
6352 &quot;A String&quot;,
6353 ],
6354 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
6355 { # The definition of the Rag resource.
6356 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
6357 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
6358 &quot;A String&quot;,
6359 ],
6360 },
6361 ],
6362 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
6363 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
6364 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
6365 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
6366 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
6367 },
6368 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
6369 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
6370 },
6371 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
6372 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
6373 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
6374 },
6375 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
6376 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
6377 },
6378 },
6379 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
6380 },
6381 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
6382 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
6383 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
6384 },
6385 },
6386 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
6387 },
6388 },
6389 ],
6390 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
6391 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
6392 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
6393 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
6394 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
6395 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
6396 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
6397 },
6398 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
6399 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
6400 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
6401 },
6402 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
6403 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
6404 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
6405 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6406 },
6407 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
6408 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
6409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6410 },
6411 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
6412 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
6413 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
6414 { # Partial argument value of the function call.
6415 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
6416 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
6417 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
6418 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
6419 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
6420 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
6421 },
6422 ],
6423 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
6424 },
6425 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
6426 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
6427 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
6428 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
6429 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
6430 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
6431 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
6432 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
6433 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6434 },
6435 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
6436 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
6437 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
6438 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6439 },
6440 },
6441 ],
6442 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
6443 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6444 },
6445 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
6446 },
6447 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
6448 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
6449 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
6450 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6451 },
6452 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
6453 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
6454 },
6455 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
6456 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
6457 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
6458 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
6459 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
6460 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
6461 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
6462 },
6463 },
6464 ],
6465 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
6466 },
6467 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
6468 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
6469 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6470 },
6471 },
6472 ],
6473 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
6474 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
6475 },
6476 ],
6477 },
6478 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
6479 &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. Error while scraping model or agent.
6480 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6481 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
6482 {
6483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6484 },
6485 ],
6486 &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.
6487 },
6488 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
6489 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
6490 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
6491 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
6492 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
6493 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
6494 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
6495 },
6496 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
6497 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
6498 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
6499 },
6500 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
6501 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
6502 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
6503 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6504 },
6505 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
6506 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
6507 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6508 },
6509 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
6510 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
6511 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
6512 { # Partial argument value of the function call.
6513 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
6514 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
6515 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
6516 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
6517 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
6518 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
6519 },
6520 ],
6521 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
6522 },
6523 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
6524 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
6525 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
6526 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
6527 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
6528 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
6529 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
6530 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
6531 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6532 },
6533 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
6534 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
6535 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
6536 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6537 },
6538 },
6539 ],
6540 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
6541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6542 },
6543 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
6544 },
6545 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
6546 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
6547 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
6548 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
6549 },
6550 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
6551 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
6552 },
6553 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
6554 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
6555 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
6556 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
6557 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
6558 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
6559 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
6560 },
6561 },
6562 ],
6563 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
6564 },
6565 ],
6566 &quot;text&quot;: &quot;A String&quot;, # Text response.
6567 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
6568 },
6569 ],
6570 &quot;goldenResponse&quot;: { # Responses from model or agent. # Optional. The Ideal response or ground truth.
6571 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
6572 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
6573 &quot;a_key&quot;: { # Represents configuration for an Agent.
6574 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
6575 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
6576 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
6577 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
6578 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
6579 &quot;A String&quot;,
6580 ],
6581 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
6582 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
6583 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
6584 },
6585 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
6586 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
6587 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
6588 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
6589 &quot;A String&quot;,
6590 ],
6591 },
6592 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
6593 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6594 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
6595 &quot;A String&quot;,
6596 ],
6597 },
6598 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
6599 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
6600 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
6601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6602 },
6603 },
6604 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
6605 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
6606 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
6607 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
6608 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
6609 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
6610 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6611 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6612 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6613 ],
6614 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6615 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6616 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6617 },
6618 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6619 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6620 &quot;A String&quot;,
6621 ],
6622 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6623 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6624 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6625 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6626 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6627 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6628 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6629 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6630 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6631 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6632 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6633 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6634 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6635 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6636 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6637 },
6638 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6639 &quot;A String&quot;,
6640 ],
6641 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6642 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6643 &quot;A String&quot;,
6644 ],
6645 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6646 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6647 },
6648 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
6649 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
6650 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6651 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6652 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6653 ],
6654 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6655 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6656 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6657 },
6658 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6659 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6660 &quot;A String&quot;,
6661 ],
6662 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6663 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6664 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6665 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6666 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6667 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6668 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6669 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6670 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6671 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6672 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6673 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6674 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6675 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6676 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6677 },
6678 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6679 &quot;A String&quot;,
6680 ],
6681 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6682 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6683 &quot;A String&quot;,
6684 ],
6685 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6686 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6687 },
6688 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
6689 },
6690 ],
6691 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
6692 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
6693 },
6694 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
6695 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6696 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
6697 &quot;A String&quot;,
6698 ],
6699 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
6700 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
6701 },
6702 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
6703 },
6704 },
6705 },
6706 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
6707 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
6708 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
6709 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
6710 },
6711 },
6712 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
6713 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
6714 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
6715 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6716 },
6717 },
6718 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
6719 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
6720 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
6721 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
6722 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
6723 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
6724 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
6725 },
6726 },
6727 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
6728 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
6729 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
6730 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6731 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
6732 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
6733 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
6734 },
6735 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
6736 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
6737 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
6738 },
6739 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
6740 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6741 },
6742 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
6743 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6744 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
6745 },
6746 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
6747 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6748 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
6749 },
6750 },
6751 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
6752 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
6753 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
6754 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
6755 },
6756 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
6757 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
6758 },
6759 },
6760 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
6761 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
6762 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
6763 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6764 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
6765 },
6766 ],
6767 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
6768 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
6769 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
6770 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
6771 },
6772 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
6773 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
6774 &quot;A String&quot;,
6775 ],
6776 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
6777 { # The definition of the Rag resource.
6778 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
6779 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
6780 &quot;A String&quot;,
6781 ],
6782 },
6783 ],
6784 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
6785 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
6786 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
6787 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
6788 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
6789 },
6790 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
6791 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
6792 },
6793 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
6794 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
6795 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
6796 },
6797 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
6798 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
6799 },
6800 },
6801 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
6802 },
6803 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
6804 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
6805 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
6806 },
6807 },
6808 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
6809 },
6810 },
6811 ],
6812 },
6813 },
6814 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
6815 { # Represents a single turn/invocation in the conversation.
6816 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
6817 { # Represents a single event in the execution trace.
6818 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
6819 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
6820 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
6821 },
6822 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
6823 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
6824 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
6825 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
6826 &quot;A String&quot;,
6827 ],
6828 },
6829 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
6830 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6831 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
6832 &quot;A String&quot;,
6833 ],
6834 },
6835 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
6836 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
6837 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
6838 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6839 },
6840 },
6841 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
6842 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
6843 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
6844 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
6845 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
6846 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
6847 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6848 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6849 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6850 ],
6851 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6852 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6853 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6854 },
6855 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6856 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6857 &quot;A String&quot;,
6858 ],
6859 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6860 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6861 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6862 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6863 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6864 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6865 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6866 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6867 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6868 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6869 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6870 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6871 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6872 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6873 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6874 },
6875 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6876 &quot;A String&quot;,
6877 ],
6878 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6879 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6880 &quot;A String&quot;,
6881 ],
6882 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6883 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6884 },
6885 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
6886 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
6887 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
6888 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
6889 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6890 ],
6891 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
6892 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
6893 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6894 },
6895 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
6896 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
6897 &quot;A String&quot;,
6898 ],
6899 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
6900 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
6901 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
6902 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
6903 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
6904 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
6905 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
6906 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
6907 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
6908 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
6909 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
6910 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
6911 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
6912 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
6913 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
6914 },
6915 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
6916 &quot;A String&quot;,
6917 ],
6918 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
6919 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
6920 &quot;A String&quot;,
6921 ],
6922 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
6923 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
6924 },
6925 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
6926 },
6927 ],
6928 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
6929 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
6930 },
6931 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
6932 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
6933 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
6934 &quot;A String&quot;,
6935 ],
6936 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
6937 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
6938 },
6939 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
6940 },
6941 },
6942 },
6943 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
6944 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
6945 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
6946 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
6947 },
6948 },
6949 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
6950 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
6951 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
6952 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
6953 },
6954 },
6955 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
6956 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
6957 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
6958 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
6959 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
6960 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
6961 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
6962 },
6963 },
6964 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
6965 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
6966 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
6967 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6968 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
6969 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
6970 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
6971 },
6972 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
6973 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
6974 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
6975 },
6976 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
6977 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
6978 },
6979 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
6980 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6981 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
6982 },
6983 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
6984 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
6985 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
6986 },
6987 },
6988 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
6989 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
6990 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
6991 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
6992 },
6993 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
6994 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
6995 },
6996 },
6997 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
6998 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
6999 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
7000 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7001 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
7002 },
7003 ],
7004 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7005 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
7006 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
7007 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
7008 },
7009 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
7010 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
7011 &quot;A String&quot;,
7012 ],
7013 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
7014 { # The definition of the Rag resource.
7015 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
7016 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
7017 &quot;A String&quot;,
7018 ],
7019 },
7020 ],
7021 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
7022 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
7023 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
7024 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
7025 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
7026 },
7027 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
7028 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
7029 },
7030 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
7031 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
7032 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
7033 },
7034 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
7035 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
7036 },
7037 },
7038 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
7039 },
7040 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
7041 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
7042 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
7043 },
7044 },
7045 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
7046 },
7047 },
7048 ],
7049 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
7050 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
7051 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
7052 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
7053 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
7054 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
7055 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
7056 },
7057 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
7058 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
7059 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
7060 },
7061 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
7062 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7063 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
7064 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7065 },
7066 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
7067 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
7068 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7069 },
7070 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
7071 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
7072 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
7073 { # Partial argument value of the function call.
7074 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
7075 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
7076 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
7077 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
7078 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
7079 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
7080 },
7081 ],
7082 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
7083 },
7084 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
7085 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
7086 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
7087 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
7088 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
7089 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
7090 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7091 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
7092 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7093 },
7094 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
7095 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
7096 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7097 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7098 },
7099 },
7100 ],
7101 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
7102 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7103 },
7104 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
7105 },
7106 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
7107 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
7108 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7109 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7110 },
7111 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
7112 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
7113 },
7114 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
7115 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
7116 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
7117 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
7118 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
7119 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
7120 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
7121 },
7122 },
7123 ],
7124 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
7125 },
7126 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
7127 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
7128 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7129 },
7130 },
7131 ],
7132 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
7133 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
7134 },
7135 ],
7136 },
7137 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
7138 &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. Error while scraping model or agent.
7139 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7140 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
7141 {
7142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7143 },
7144 ],
7145 &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.
7146 },
7147 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
7148 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
7149 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
7150 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
7151 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
7152 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
7153 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
7154 },
7155 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
7156 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
7157 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
7158 },
7159 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
7160 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7161 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
7162 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7163 },
7164 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
7165 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
7166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7167 },
7168 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
7169 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
7170 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
7171 { # Partial argument value of the function call.
7172 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
7173 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
7174 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
7175 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
7176 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
7177 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
7178 },
7179 ],
7180 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
7181 },
7182 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
7183 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
7184 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
7185 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
7186 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
7187 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
7188 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7189 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
7190 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7191 },
7192 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
7193 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
7194 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7195 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7196 },
7197 },
7198 ],
7199 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
7200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7201 },
7202 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
7203 },
7204 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
7205 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
7206 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7207 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7208 },
7209 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
7210 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
7211 },
7212 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
7213 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
7214 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
7215 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
7216 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
7217 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
7218 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
7219 },
7220 },
7221 ],
7222 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
7223 },
7224 ],
7225 &quot;text&quot;: &quot;A String&quot;, # Text response.
7226 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
7227 },
7228 &quot;prompt&quot;: { # Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for agent evaluations. # Optional. The request/prompt to evaluate.
7229 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This serves as the input context for agent scraping.
7230 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
7231 &quot;a_key&quot;: { # Represents configuration for an Agent.
7232 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
7233 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
7234 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
7235 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
7236 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
7237 &quot;A String&quot;,
7238 ],
7239 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
7240 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
7241 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
7242 },
7243 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
7244 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
7245 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
7246 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
7247 &quot;A String&quot;,
7248 ],
7249 },
7250 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
7251 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
7252 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
7253 &quot;A String&quot;,
7254 ],
7255 },
7256 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
7257 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
7258 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
7259 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7260 },
7261 },
7262 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
7263 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
7264 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
7265 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
7266 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
7267 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
7268 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
7269 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
7270 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7271 ],
7272 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
7273 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
7274 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7275 },
7276 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
7277 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
7278 &quot;A String&quot;,
7279 ],
7280 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
7281 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
7282 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
7283 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
7284 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
7285 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
7286 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
7287 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
7288 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
7289 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
7290 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
7291 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
7292 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
7293 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
7294 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7295 },
7296 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
7297 &quot;A String&quot;,
7298 ],
7299 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
7300 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
7301 &quot;A String&quot;,
7302 ],
7303 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
7304 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
7305 },
7306 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
7307 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
7308 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
7309 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
7310 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7311 ],
7312 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
7313 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
7314 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7315 },
7316 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
7317 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
7318 &quot;A String&quot;,
7319 ],
7320 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
7321 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
7322 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
7323 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
7324 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
7325 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
7326 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
7327 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
7328 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
7329 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
7330 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
7331 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
7332 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
7333 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
7334 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7335 },
7336 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
7337 &quot;A String&quot;,
7338 ],
7339 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
7340 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
7341 &quot;A String&quot;,
7342 ],
7343 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
7344 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
7345 },
7346 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
7347 },
7348 ],
7349 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
7350 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
7351 },
7352 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
7353 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
7354 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
7355 &quot;A String&quot;,
7356 ],
7357 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
7358 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
7359 },
7360 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
7361 },
7362 },
7363 },
7364 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
7365 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
7366 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
7367 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
7368 },
7369 },
7370 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
7371 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
7372 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
7373 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7374 },
7375 },
7376 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
7377 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
7378 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
7379 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
7380 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
7381 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
7382 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
7383 },
7384 },
7385 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
7386 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
7387 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
7388 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
7389 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
7390 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
7391 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
7392 },
7393 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
7394 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
7395 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
7396 },
7397 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
7398 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
7399 },
7400 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
7401 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
7402 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
7403 },
7404 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
7405 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
7406 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
7407 },
7408 },
7409 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
7410 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
7411 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
7412 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
7413 },
7414 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
7415 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
7416 },
7417 },
7418 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
7419 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
7420 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
7421 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7422 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
7423 },
7424 ],
7425 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7426 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
7427 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
7428 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
7429 },
7430 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
7431 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
7432 &quot;A String&quot;,
7433 ],
7434 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
7435 { # The definition of the Rag resource.
7436 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
7437 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
7438 &quot;A String&quot;,
7439 ],
7440 },
7441 ],
7442 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
7443 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
7444 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
7445 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
7446 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
7447 },
7448 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
7449 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
7450 },
7451 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
7452 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
7453 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
7454 },
7455 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
7456 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
7457 },
7458 },
7459 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
7460 },
7461 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
7462 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
7463 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
7464 },
7465 },
7466 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
7467 },
7468 },
7469 ],
7470 },
7471 },
7472 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
7473 { # Represents a single turn/invocation in the conversation.
7474 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
7475 { # Represents a single event in the execution trace.
7476 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
7477 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
7478 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
7479 },
7480 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
7481 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
7482 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
7483 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
7484 &quot;A String&quot;,
7485 ],
7486 },
7487 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
7488 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
7489 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
7490 &quot;A String&quot;,
7491 ],
7492 },
7493 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
7494 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
7495 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
7496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7497 },
7498 },
7499 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
7500 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
7501 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
7502 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
7503 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
7504 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
7505 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
7506 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
7507 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7508 ],
7509 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
7510 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
7511 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7512 },
7513 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
7514 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
7515 &quot;A String&quot;,
7516 ],
7517 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
7518 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
7519 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
7520 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
7521 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
7522 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
7523 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
7524 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
7525 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
7526 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
7527 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
7528 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
7529 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
7530 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
7531 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7532 },
7533 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
7534 &quot;A String&quot;,
7535 ],
7536 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
7537 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
7538 &quot;A String&quot;,
7539 ],
7540 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
7541 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
7542 },
7543 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
7544 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
7545 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
7546 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
7547 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7548 ],
7549 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
7550 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
7551 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7552 },
7553 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
7554 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
7555 &quot;A String&quot;,
7556 ],
7557 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
7558 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
7559 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
7560 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
7561 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
7562 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
7563 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
7564 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
7565 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
7566 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
7567 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
7568 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
7569 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
7570 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
7571 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
7572 },
7573 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
7574 &quot;A String&quot;,
7575 ],
7576 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
7577 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
7578 &quot;A String&quot;,
7579 ],
7580 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
7581 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
7582 },
7583 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
7584 },
7585 ],
7586 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
7587 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
7588 },
7589 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
7590 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
7591 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
7592 &quot;A String&quot;,
7593 ],
7594 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
7595 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
7596 },
7597 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
7598 },
7599 },
7600 },
7601 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
7602 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
7603 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
7604 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
7605 },
7606 },
7607 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
7608 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
7609 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
7610 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7611 },
7612 },
7613 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
7614 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
7615 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
7616 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
7617 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
7618 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
7619 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
7620 },
7621 },
7622 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
7623 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
7624 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
7625 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
7626 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
7627 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
7628 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
7629 },
7630 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
7631 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
7632 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
7633 },
7634 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
7635 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
7636 },
7637 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
7638 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
7639 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
7640 },
7641 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
7642 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
7643 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
7644 },
7645 },
7646 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
7647 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
7648 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
7649 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
7650 },
7651 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
7652 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
7653 },
7654 },
7655 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
7656 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
7657 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
7658 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7659 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
7660 },
7661 ],
7662 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
7663 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
7664 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
7665 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
7666 },
7667 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
7668 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
7669 &quot;A String&quot;,
7670 ],
7671 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
7672 { # The definition of the Rag resource.
7673 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
7674 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
7675 &quot;A String&quot;,
7676 ],
7677 },
7678 ],
7679 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
7680 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
7681 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
7682 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
7683 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
7684 },
7685 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
7686 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
7687 },
7688 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
7689 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
7690 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
7691 },
7692 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
7693 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
7694 },
7695 },
7696 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
7697 },
7698 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
7699 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
7700 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
7701 },
7702 },
7703 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
7704 },
7705 },
7706 ],
7707 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
7708 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
7709 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
7710 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
7711 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
7712 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
7713 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
7714 },
7715 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
7716 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
7717 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
7718 },
7719 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
7720 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7721 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
7722 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7723 },
7724 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
7725 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
7726 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7727 },
7728 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
7729 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
7730 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
7731 { # Partial argument value of the function call.
7732 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
7733 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
7734 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
7735 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
7736 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
7737 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
7738 },
7739 ],
7740 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
7741 },
7742 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
7743 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
7744 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
7745 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
7746 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
7747 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
7748 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7749 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
7750 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7751 },
7752 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
7753 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
7754 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7755 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7756 },
7757 },
7758 ],
7759 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
7760 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7761 },
7762 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
7763 },
7764 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
7765 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
7766 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7767 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7768 },
7769 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
7770 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
7771 },
7772 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
7773 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
7774 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
7775 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
7776 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
7777 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
7778 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
7779 },
7780 },
7781 ],
7782 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
7783 },
7784 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
7785 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
7786 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7787 },
7788 },
7789 ],
7790 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
7791 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
7792 },
7793 ],
7794 },
7795 &quot;promptTemplateData&quot;: { # Message to hold a prompt template and the values to populate the template. # Prompt template data.
7796 &quot;values&quot;: { # The values for fields in the prompt template.
7797 &quot;a_key&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
7798 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
7799 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
7800 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
7801 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
7802 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
7803 },
7804 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
7805 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
7806 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
7807 },
7808 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
7809 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7810 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
7811 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7812 },
7813 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
7814 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
7815 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7816 },
7817 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
7818 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
7819 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
7820 { # Partial argument value of the function call.
7821 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
7822 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
7823 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
7824 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
7825 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
7826 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
7827 },
7828 ],
7829 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
7830 },
7831 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
7832 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
7833 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
7834 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
7835 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
7836 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
7837 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7838 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
7839 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7840 },
7841 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
7842 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
7843 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7844 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7845 },
7846 },
7847 ],
7848 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
7849 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7850 },
7851 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
7852 },
7853 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
7854 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
7855 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7856 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7857 },
7858 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
7859 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
7860 },
7861 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
7862 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
7863 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
7864 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
7865 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
7866 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
7867 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
7868 },
7869 },
7870 ],
7871 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
7872 },
7873 },
7874 },
7875 &quot;text&quot;: &quot;A String&quot;, # Text prompt.
7876 &quot;userScenario&quot;: { # User scenario to help simulate multi-turn agent running results. # Optional. The generated user scenario used to drive multi-turn agent running results.
7877 &quot;conversationPlan&quot;: &quot;A String&quot;, # Required. The plan for the conversation, used to drive the multi-turn agent run and generate the simulated agent evaluation dataset.
7878 &quot;startingPrompt&quot;: &quot;A String&quot;, # Required. The prompt that starts the conversation between the simulated user and the agent under test.
7879 },
7880 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the prompt template.
7881 },
7882 &quot;rubrics&quot;: { # Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group.
7883 &quot;a_key&quot;: { # A group of rubrics, used for grouping rubrics based on a metric or a version.
7884 &quot;displayName&quot;: &quot;A String&quot;, # Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: &quot;Instruction Following V1&quot;, &quot;Content Quality - Summarization Task&quot;.
7885 &quot;groupId&quot;: &quot;A String&quot;, # Unique identifier for the group.
7886 &quot;rubrics&quot;: [ # Rubrics that are part of this group.
7887 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
7888 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
7889 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
7890 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
7891 },
7892 },
7893 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
7894 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
7895 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
7896 },
7897 ],
7898 },
7899 },
7900 },
7901 },
7902 &quot;failedRubrics&quot;: [ # The specific rubric(s) that failed and caused this example to be classified here. An example might fail multiple rubrics, but only specific ones trigger this loss pattern.
7903 { # Represents a specific failed rubric and the associated analysis.
7904 &quot;classificationRationale&quot;: &quot;A String&quot;, # The rationale provided by the Loss Analysis Classifier for why this failure maps to this specific Loss Cluster. e.g., &quot;The agent claimed an action without a tool call, matching &#x27;Hallucination of Action&#x27;.&quot;
7905 &quot;rubricId&quot;: &quot;A String&quot;, # The unique ID of the rubric (if available from the metric source). Clients use this ID to query the corresponding rubric verdict.
7906 },
7907 ],
7908 },
7909 ],
7910 &quot;itemCount&quot;: 42, # The total number of EvaluationItems falling into this cluster.
7911 &quot;taxonomyEntry&quot;: { # Defines a specific entry in the loss pattern taxonomy. # The structured definition of the loss taxonomy for this cluster.
7912 &quot;description&quot;: &quot;A String&quot;, # A detailed description of this loss pattern. Example: &quot;The agent verbally confirms an action without executing the tool.&quot;
7913 &quot;l1Category&quot;: &quot;A String&quot;, # The primary category of the loss (e.g., &quot;Hallucination&quot;, &quot;Tool Calling&quot;). This field is typically required.
7914 &quot;l2Category&quot;: &quot;A String&quot;, # The secondary category of the loss (e.g., &quot;Hallucination of Action&quot;, &quot;Incorrect Tool Selection&quot;).
7915 },
7916 },
7917 ],
7918 &quot;config&quot;: { # Configuration for the loss analysis job. # The configuration used to generate this analysis.
7919 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
7920 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
7921 },
7922 },
7923 ],
7924 &quot;summaryMetrics&quot;: { # The summary metrics for the evaluation run. # Optional. The summary metrics for the evaluation run.
7925 &quot;failedItems&quot;: 42, # Optional. The number of items that failed to be evaluated.
7926 &quot;metrics&quot;: { # Optional. Map of metric name to metric value.
7927 &quot;a_key&quot;: &quot;&quot;,
7928 },
7929 &quot;totalItems&quot;: 42, # Optional. The total number of items that were evaluated.
7930 },
7931 },
7932 &quot;evaluationSetSnapshot&quot;: &quot;A String&quot;, # Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it&#x27;s the sampled BigQuery dataset.
7933 &quot;inferenceConfigs&quot;: { # Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.
7934 &quot;a_key&quot;: { # Defines the configuration for a candidate model or agent being evaluated. `InferenceConfig` encapsulates all the necessary information to invoke or scrape the candidate during the evaluation run. This includes direct model inference parameters, agent execution settings, and multi-turn scraping configurations (such as user simulators). It serves as the primary representation of the candidate across different stages of the evaluation process.
7935 &quot;agentConfig&quot;: { # Configuration that describes an agent. # Optional. Deprecated: Use `agents` instead. Agent config used to generate responses.
7936 &quot;developerInstruction&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Optional. The developer instruction for the agent.
7937 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
7938 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
7939 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
7940 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
7941 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
7942 },
7943 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
7944 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
7945 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
7946 },
7947 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
7948 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7949 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
7950 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7951 },
7952 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
7953 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
7954 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7955 },
7956 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
7957 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
7958 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
7959 { # Partial argument value of the function call.
7960 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
7961 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
7962 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
7963 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
7964 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
7965 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
7966 },
7967 ],
7968 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
7969 },
7970 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
7971 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
7972 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
7973 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
7974 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
7975 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
7976 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7977 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
7978 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7979 },
7980 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
7981 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
7982 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
7983 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7984 },
7985 },
7986 ],
7987 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
7988 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
7989 },
7990 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
7991 },
7992 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
7993 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
7994 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
7995 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
7996 },
7997 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
7998 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
7999 },
8000 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
8001 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
8002 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
8003 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
8004 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
8005 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
8006 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
8007 },
8008 },
8009 ],
8010 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
8011 },
8012 &quot;tools&quot;: [ # Optional. The tools available to the agent.
8013 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
8014 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
8015 },
8016 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
8017 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
8018 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
8019 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
8020 &quot;A String&quot;,
8021 ],
8022 },
8023 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
8024 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
8025 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
8026 &quot;A String&quot;,
8027 ],
8028 },
8029 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
8030 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
8031 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
8032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8033 },
8034 },
8035 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
8036 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
8037 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
8038 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
8039 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
8040 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
8041 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8042 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8043 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8044 ],
8045 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8046 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8047 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8048 },
8049 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8050 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8051 &quot;A String&quot;,
8052 ],
8053 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8054 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8055 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8056 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8057 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8058 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8059 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8060 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8061 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8062 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8063 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8064 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8065 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8066 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8067 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8068 },
8069 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8070 &quot;A String&quot;,
8071 ],
8072 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8073 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8074 &quot;A String&quot;,
8075 ],
8076 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8077 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8078 },
8079 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
8080 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
8081 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8082 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8083 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8084 ],
8085 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8086 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8087 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8088 },
8089 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8090 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8091 &quot;A String&quot;,
8092 ],
8093 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8094 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8095 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8096 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8097 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8098 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8099 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8100 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8101 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8102 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8103 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8104 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8105 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8106 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8107 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8108 },
8109 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8110 &quot;A String&quot;,
8111 ],
8112 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8113 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8114 &quot;A String&quot;,
8115 ],
8116 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8117 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8118 },
8119 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
8120 },
8121 ],
8122 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
8123 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
8124 },
8125 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
8126 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
8127 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
8128 &quot;A String&quot;,
8129 ],
8130 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
8131 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
8132 },
8133 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
8134 },
8135 },
8136 },
8137 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
8138 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
8139 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
8140 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
8141 },
8142 },
8143 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
8144 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
8145 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
8146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8147 },
8148 },
8149 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
8150 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
8151 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
8152 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
8153 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
8154 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
8155 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
8156 },
8157 },
8158 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
8159 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
8160 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
8161 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
8162 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
8163 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
8164 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
8165 },
8166 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
8167 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
8168 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
8169 },
8170 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
8171 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
8172 },
8173 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
8174 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
8175 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
8176 },
8177 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
8178 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
8179 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
8180 },
8181 },
8182 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
8183 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
8184 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
8185 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
8186 },
8187 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
8188 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
8189 },
8190 },
8191 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
8192 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
8193 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
8194 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
8195 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
8196 },
8197 ],
8198 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
8199 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
8200 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
8201 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
8202 },
8203 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
8204 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
8205 &quot;A String&quot;,
8206 ],
8207 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
8208 { # The definition of the Rag resource.
8209 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
8210 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
8211 &quot;A String&quot;,
8212 ],
8213 },
8214 ],
8215 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
8216 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
8217 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
8218 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
8219 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
8220 },
8221 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
8222 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
8223 },
8224 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
8225 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
8226 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
8227 },
8228 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
8229 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
8230 },
8231 },
8232 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
8233 },
8234 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
8235 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
8236 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
8237 },
8238 },
8239 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
8240 },
8241 },
8242 ],
8243 },
8244 &quot;agentRunConfig&quot;: { # Configuration for Agent Run. # Optional. Agent run config.
8245 &quot;agentEngine&quot;: &quot;A String&quot;, # Optional. The resource name of the Agent Engine. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} For example: projects/123/locations/us-central1/reasoningEngines/456
8246 &quot;sessionInput&quot;: { # Session input to run an Agent. # Optional. The session input to get agent running results.
8247 &quot;parameters&quot;: { # Optional. Additional parameters for the session, like app_name, etc. For example, {&quot;app_name&quot;: &quot;my-app&quot;}.
8248 &quot;a_key&quot;: &quot;A String&quot;,
8249 },
8250 &quot;sessionState&quot;: { # Optional. Session specific memory which stores key conversation points.
8251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8252 },
8253 &quot;userId&quot;: &quot;A String&quot;, # Optional. The user id for the agent session. The ID can be up to 128 characters long.
8254 },
8255 &quot;userSimulatorConfig&quot;: { # Used for multi-turn agent scraping. Contains configuration for a user simulator that uses an LLM to generate messages on behalf of the user. # The configuration for a user simulator that uses an LLM to generate messages on behalf of the user.
8256 &quot;maxTurn&quot;: 42, # Maximum number of invocations allowed by the multi-turn agent scraping. This property allows us to stop a run-off conversation, where the agent and the user simulator get into a never ending loop. The initial fixed prompt is also counted as an invocation.
8257 &quot;modelConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # The configuration for the model.
8258 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
8259 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
8260 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
8261 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
8262 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
8263 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
8264 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
8265 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
8266 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
8267 },
8268 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
8269 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
8270 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
8271 },
8272 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
8273 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
8274 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
8275 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
8276 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
8277 },
8278 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
8279 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
8280 { # Configuration for the model to configure output formatting and delivery.
8281 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
8282 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
8283 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8284 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
8285 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
8286 },
8287 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
8288 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
8289 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8290 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
8291 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
8292 },
8293 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
8294 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
8295 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
8296 },
8297 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
8298 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
8299 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8300 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
8301 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
8302 },
8303 },
8304 ],
8305 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
8306 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
8307 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
8308 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
8309 &quot;A String&quot;,
8310 ],
8311 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
8312 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8313 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8314 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8315 ],
8316 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8317 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8318 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8319 },
8320 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8321 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8322 &quot;A String&quot;,
8323 ],
8324 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8325 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8326 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8327 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8328 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8329 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8330 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8331 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8332 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8333 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8334 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8335 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8336 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8337 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8338 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8339 },
8340 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8341 &quot;A String&quot;,
8342 ],
8343 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8344 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8345 &quot;A String&quot;,
8346 ],
8347 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8348 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8349 },
8350 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
8351 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
8352 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
8353 },
8354 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
8355 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
8356 },
8357 },
8358 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
8359 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
8360 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
8361 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
8362 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
8363 { # Configuration for a single speaker in a multi-speaker setup.
8364 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
8365 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
8366 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
8367 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
8368 },
8369 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
8370 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
8371 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
8372 },
8373 },
8374 },
8375 ],
8376 },
8377 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
8378 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
8379 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
8380 },
8381 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
8382 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
8383 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
8384 },
8385 },
8386 },
8387 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
8388 &quot;A String&quot;,
8389 ],
8390 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
8391 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
8392 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
8393 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
8394 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
8395 },
8396 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
8397 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
8398 },
8399 &quot;modelName&quot;: &quot;A String&quot;, # The model name to use for multi-turn agent scraping to get next user message, e.g. &quot;gemini-3-flash-preview&quot;.
8400 },
8401 },
8402 &quot;agents&quot;: { # Optional. Contains the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
8403 &quot;a_key&quot;: { # Represents configuration for an Agent.
8404 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
8405 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
8406 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
8407 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
8408 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
8409 &quot;A String&quot;,
8410 ],
8411 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
8412 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
8413 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
8414 },
8415 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
8416 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
8417 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
8418 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
8419 &quot;A String&quot;,
8420 ],
8421 },
8422 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
8423 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
8424 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
8425 &quot;A String&quot;,
8426 ],
8427 },
8428 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
8429 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
8430 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
8431 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8432 },
8433 },
8434 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
8435 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
8436 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
8437 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
8438 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
8439 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
8440 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8441 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8442 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8443 ],
8444 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8445 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8446 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8447 },
8448 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8449 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8450 &quot;A String&quot;,
8451 ],
8452 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8453 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8454 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8455 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8456 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8457 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8458 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8459 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8460 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8461 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8462 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8463 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8464 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8465 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8466 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8467 },
8468 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8469 &quot;A String&quot;,
8470 ],
8471 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8472 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8473 &quot;A String&quot;,
8474 ],
8475 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8476 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8477 },
8478 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
8479 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
8480 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8481 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8482 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8483 ],
8484 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8485 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8486 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8487 },
8488 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8489 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8490 &quot;A String&quot;,
8491 ],
8492 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8493 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8494 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8495 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8496 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8497 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8498 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8499 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8500 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8501 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8502 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8503 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8504 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8505 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8506 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8507 },
8508 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8509 &quot;A String&quot;,
8510 ],
8511 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8512 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8513 &quot;A String&quot;,
8514 ],
8515 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8516 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8517 },
8518 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
8519 },
8520 ],
8521 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
8522 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
8523 },
8524 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
8525 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
8526 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
8527 &quot;A String&quot;,
8528 ],
8529 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
8530 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
8531 },
8532 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
8533 },
8534 },
8535 },
8536 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
8537 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
8538 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
8539 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
8540 },
8541 },
8542 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
8543 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
8544 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
8545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
8546 },
8547 },
8548 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
8549 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
8550 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
8551 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
8552 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
8553 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
8554 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
8555 },
8556 },
8557 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
8558 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
8559 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
8560 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
8561 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
8562 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
8563 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
8564 },
8565 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
8566 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
8567 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
8568 },
8569 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
8570 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
8571 },
8572 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
8573 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
8574 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
8575 },
8576 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
8577 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
8578 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
8579 },
8580 },
8581 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
8582 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
8583 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
8584 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
8585 },
8586 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
8587 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
8588 },
8589 },
8590 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
8591 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
8592 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
8593 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
8594 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
8595 },
8596 ],
8597 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
8598 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
8599 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
8600 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
8601 },
8602 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
8603 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
8604 &quot;A String&quot;,
8605 ],
8606 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
8607 { # The definition of the Rag resource.
8608 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
8609 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
8610 &quot;A String&quot;,
8611 ],
8612 },
8613 ],
8614 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
8615 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
8616 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
8617 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
8618 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
8619 },
8620 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
8621 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
8622 },
8623 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
8624 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
8625 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
8626 },
8627 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
8628 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
8629 },
8630 },
8631 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
8632 },
8633 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
8634 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
8635 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
8636 },
8637 },
8638 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
8639 },
8640 },
8641 ],
8642 },
8643 },
8644 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Generation config.
8645 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
8646 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
8647 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
8648 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
8649 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
8650 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
8651 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
8652 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
8653 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
8654 },
8655 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
8656 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
8657 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
8658 },
8659 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
8660 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
8661 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
8662 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
8663 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
8664 },
8665 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
8666 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
8667 { # Configuration for the model to configure output formatting and delivery.
8668 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
8669 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
8670 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8671 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
8672 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
8673 },
8674 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
8675 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
8676 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8677 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
8678 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
8679 },
8680 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
8681 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
8682 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
8683 },
8684 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
8685 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
8686 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8687 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
8688 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
8689 },
8690 },
8691 ],
8692 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
8693 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
8694 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
8695 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
8696 &quot;A String&quot;,
8697 ],
8698 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
8699 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8700 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8701 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8702 ],
8703 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8704 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8705 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8706 },
8707 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8708 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8709 &quot;A String&quot;,
8710 ],
8711 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8712 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8713 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8714 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8715 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8716 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8717 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8718 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8719 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8720 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8721 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8722 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8723 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8724 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8725 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8726 },
8727 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8728 &quot;A String&quot;,
8729 ],
8730 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8731 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8732 &quot;A String&quot;,
8733 ],
8734 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8735 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8736 },
8737 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
8738 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
8739 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
8740 },
8741 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
8742 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
8743 },
8744 },
8745 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
8746 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
8747 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
8748 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
8749 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
8750 { # Configuration for a single speaker in a multi-speaker setup.
8751 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
8752 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
8753 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
8754 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
8755 },
8756 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
8757 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
8758 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
8759 },
8760 },
8761 },
8762 ],
8763 },
8764 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
8765 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
8766 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
8767 },
8768 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
8769 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
8770 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
8771 },
8772 },
8773 },
8774 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
8775 &quot;A String&quot;,
8776 ],
8777 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
8778 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
8779 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
8780 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
8781 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
8782 },
8783 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
8784 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
8785 },
8786 &quot;model&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and Llama third-party models are also supported through Model Garden. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Third-party model formats: `projects/{project}/locations/{location}/publishers/anthropic/models/{model}` or `projects/{project}/locations/{location}/publishers/llama/models/{model}` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
8787 &quot;parallelism&quot;: 42, # Optional. The parallelism of the evaluation run for the inference step. If not specified, the default parallelism will be used.
8788 },
8789 },
8790 &quot;labels&quot;: { # Optional. Labels for the evaluation run.
8791 &quot;a_key&quot;: &quot;A String&quot;,
8792 },
8793 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.
8794 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`
8795 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the evaluation run.
8796 }</pre>
8797 </div>
8798
8799 <div class="method">
8800 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
8801 <pre>Deletes an Evaluation Run.
8802
8803 Args:
8804 name: string, Required. The name of the EvaluationRun resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` (required)
8805 x__xgafv: string, V1 error format.
8806 Allowed values
8807 1 - v1 error format
8808 2 - v2 error format
8809
8810 Returns:
8811 An object of the form:
8812
8813 { # This resource represents a long-running operation that is the result of a network API call.
8814 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
8815 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
8816 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
8817 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
8818 {
8819 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
8820 },
8821 ],
8822 &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.
8823 },
8824 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
8825 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
8826 },
8827 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
8828 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
8829 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
8830 },
8831 }</pre>
8832 </div>
8833
8834 <div class="method">
8835 <code class="details" id="get">get(name, x__xgafv=None)</code>
8836 <pre>Gets an Evaluation Run.
8837
8838 Args:
8839 name: string, Required. The name of the EvaluationRun resource. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` (required)
8840 x__xgafv: string, V1 error format.
8841 Allowed values
8842 1 - v1 error format
8843 2 - v2 error format
8844
8845 Returns:
8846 An object of the form:
8847
8848 { # EvaluationRun is a resource that represents a single evaluation run, which includes a set of prompts, model responses, evaluation configuration and the resulting metrics.
8849 &quot;completionTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was completed.
8850 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was created.
8851 &quot;dataSource&quot;: { # The data source for the evaluation run. # Required. The data source for the evaluation run.
8852 &quot;bigqueryRequestSet&quot;: { # The request set for the evaluation run. # Evaluation data in bigquery.
8853 &quot;candidateResponseColumns&quot;: { # Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.
8854 &quot;a_key&quot;: &quot;A String&quot;,
8855 },
8856 &quot;promptColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format.
8857 &quot;rubricsColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the rubrics. This is in evaluation_rubric.RubricGroup format.
8858 &quot;samplingConfig&quot;: { # The sampling config. # Optional. The sampling config for the bigquery resource.
8859 &quot;samplingCount&quot;: 42, # Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100.
8860 &quot;samplingDuration&quot;: &quot;A String&quot;, # Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0.
8861 &quot;samplingMethod&quot;: &quot;A String&quot;, # Optional. The sampling method to use.
8862 },
8863 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId
8864 },
8865 &quot;evaluationSet&quot;: &quot;A String&quot;, # The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
8866 },
8867 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Evaluation Run.
8868 &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. Only populated when the evaluation run&#x27;s state is FAILED or CANCELLED.
8869 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
8870 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
8871 {
8872 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
8873 },
8874 ],
8875 &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.
8876 },
8877 &quot;evaluationConfig&quot;: { # The Evalution configuration used for the evaluation run. # Optional. The configuration used for the evaluation. Optional when analysis_configs is provided.
8878 &quot;autoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. The autorater config for the evaluation run.
8879 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
8880 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
8881 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
8882 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
8883 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
8884 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
8885 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
8886 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
8887 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
8888 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
8889 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
8890 },
8891 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
8892 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
8893 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
8894 },
8895 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
8896 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
8897 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
8898 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
8899 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
8900 },
8901 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
8902 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
8903 { # Configuration for the model to configure output formatting and delivery.
8904 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
8905 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
8906 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8907 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
8908 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
8909 },
8910 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
8911 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
8912 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8913 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
8914 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
8915 },
8916 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
8917 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
8918 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
8919 },
8920 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
8921 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
8922 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
8923 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
8924 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
8925 },
8926 },
8927 ],
8928 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
8929 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
8930 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
8931 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
8932 &quot;A String&quot;,
8933 ],
8934 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
8935 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
8936 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
8937 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8938 ],
8939 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
8940 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
8941 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8942 },
8943 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
8944 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
8945 &quot;A String&quot;,
8946 ],
8947 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
8948 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
8949 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
8950 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
8951 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
8952 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
8953 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
8954 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
8955 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
8956 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
8957 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
8958 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
8959 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
8960 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
8961 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
8962 },
8963 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
8964 &quot;A String&quot;,
8965 ],
8966 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
8967 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
8968 &quot;A String&quot;,
8969 ],
8970 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
8971 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
8972 },
8973 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
8974 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
8975 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
8976 },
8977 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
8978 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
8979 },
8980 },
8981 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
8982 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
8983 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
8984 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
8985 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
8986 { # Configuration for a single speaker in a multi-speaker setup.
8987 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
8988 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
8989 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
8990 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
8991 },
8992 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
8993 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
8994 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
8995 },
8996 },
8997 },
8998 ],
8999 },
9000 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9001 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9002 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9003 },
9004 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9005 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9006 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9007 },
9008 },
9009 },
9010 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9011 &quot;A String&quot;,
9012 ],
9013 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9014 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9015 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9016 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9017 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9018 },
9019 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9020 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9021 },
9022 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9023 },
9024 &quot;datasetCustomMetrics&quot;: [ # Optional. Specifications for custom dataset-level aggregations.
9025 { # Defines a custom dataset-level aggregation.
9026 &quot;aggregationFunction&quot;: &quot;A String&quot;, # Required. The Python code string containing the aggregation function. Expected function signature: `def aggregate(instances: list[dict[str, Any]]) -&gt; dict[str, float]:` The `instances` argument is a list of dictionaries, where each dictionary represents a single evaluation result item. The structure of each dictionary corresponds to the fields in the `EvaluationResult` message. This includes: - `&quot;request&quot;`: Contains the original input data and model inputs (from `EvaluationResult.EvaluationRequest`). - `&quot;candidate_results&quot;`: Contains the results of any instance-level metrics (from `EvaluationResult.CandidateResults`). Example of a single item in the `instances` list: { &quot;request&quot;: { &quot;prompt&quot;: {&quot;text&quot;: &quot;What is the capital of France?&quot;}, &quot;golden_response&quot;: {&quot;text&quot;: &quot;Paris&quot;}, &quot;candidate_responses&quot;: [{&quot;candidate&quot;: &quot;model-v1&quot;, &quot;text&quot;: &quot;Paris&quot;}] }, &quot;candidate_results&quot;: [ {&quot;metric&quot;: &quot;exact_match&quot;, &quot;score&quot;: 1.0}, {&quot;metric&quot;: &quot;bleu&quot;, &quot;score&quot;: 0.9} ] }
9027 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A display name for this custom summary metric. Used to prefix keys in the output summaryMetrics map. If not provided, a default name like &quot;dataset_custom_metric_1&quot;, &quot;dataset_custom_metric_2&quot;, etc., will be generated based on the order in the repeated field.
9028 },
9029 ],
9030 &quot;lossAnalysisConfig&quot;: [ # Optional. Specifications for loss analysis. Each config can be specified for one metric.
9031 { # Configuration for the loss analysis job.
9032 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
9033 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
9034 },
9035 ],
9036 &quot;metrics&quot;: [ # Optional. The metrics to be calculated in the evaluation run. Required when analysis_configs is not set.
9037 { # The metric used for evaluation runs.
9038 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
9039 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
9040 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9041 },
9042 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
9043 },
9044 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
9045 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
9046 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9047 },
9048 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater).
9049 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9050 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9051 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9052 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9053 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9054 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9055 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9056 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9057 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9058 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9059 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9060 },
9061 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9062 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9063 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9064 },
9065 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9066 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9067 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9068 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9069 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9070 },
9071 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9072 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9073 { # Configuration for the model to configure output formatting and delivery.
9074 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9075 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9076 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9077 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9078 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9079 },
9080 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9081 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9082 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9083 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9084 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9085 },
9086 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9087 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9088 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9089 },
9090 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9091 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9092 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9093 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9094 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9095 },
9096 },
9097 ],
9098 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9099 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9100 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9101 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9102 &quot;A String&quot;,
9103 ],
9104 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9105 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9106 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9107 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9108 ],
9109 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9110 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9111 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9112 },
9113 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9114 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9115 &quot;A String&quot;,
9116 ],
9117 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9118 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9119 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9120 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9121 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9122 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9123 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9124 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9125 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9126 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9127 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9128 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9129 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9130 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9131 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9132 },
9133 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9134 &quot;A String&quot;,
9135 ],
9136 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9137 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9138 &quot;A String&quot;,
9139 ],
9140 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
9141 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
9142 },
9143 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
9144 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
9145 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
9146 },
9147 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
9148 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
9149 },
9150 },
9151 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
9152 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
9153 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
9154 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
9155 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
9156 { # Configuration for a single speaker in a multi-speaker setup.
9157 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
9158 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
9159 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9160 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9161 },
9162 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9163 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9164 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9165 },
9166 },
9167 },
9168 ],
9169 },
9170 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9171 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9172 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9173 },
9174 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9175 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9176 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9177 },
9178 },
9179 },
9180 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9181 &quot;A String&quot;,
9182 ],
9183 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9184 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9185 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9186 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9187 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9188 },
9189 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9190 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9191 },
9192 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9193 },
9194 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
9195 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
9196 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
9197 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
9198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9199 },
9200 },
9201 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
9202 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
9203 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
9204 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9205 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9206 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9207 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9208 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9209 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9210 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9211 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9212 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9213 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9214 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9215 },
9216 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9217 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9218 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9219 },
9220 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9221 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9222 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9223 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9224 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9225 },
9226 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9227 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9228 { # Configuration for the model to configure output formatting and delivery.
9229 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9230 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9231 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9232 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9233 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9234 },
9235 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9236 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9237 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9238 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9239 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9240 },
9241 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9242 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9243 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9244 },
9245 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9246 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9247 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9248 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9249 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9250 },
9251 },
9252 ],
9253 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9254 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9255 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9256 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9257 &quot;A String&quot;,
9258 ],
9259 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9260 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9261 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9262 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9263 ],
9264 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9265 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9266 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9267 },
9268 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9269 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9270 &quot;A String&quot;,
9271 ],
9272 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9273 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9274 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9275 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9276 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9277 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9278 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9279 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9280 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9281 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9282 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9283 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9284 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9285 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9286 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9287 },
9288 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9289 &quot;A String&quot;,
9290 ],
9291 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9292 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9293 &quot;A String&quot;,
9294 ],
9295 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
9296 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
9297 },
9298 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
9299 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
9300 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
9301 },
9302 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
9303 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
9304 },
9305 },
9306 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
9307 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
9308 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
9309 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
9310 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
9311 { # Configuration for a single speaker in a multi-speaker setup.
9312 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
9313 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
9314 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9315 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9316 },
9317 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9318 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9319 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9320 },
9321 },
9322 },
9323 ],
9324 },
9325 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9326 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9327 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9328 },
9329 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9330 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9331 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9332 },
9333 },
9334 },
9335 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9336 &quot;A String&quot;,
9337 ],
9338 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9339 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9340 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9341 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9342 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9343 },
9344 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9345 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9346 },
9347 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9348 },
9349 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
9350 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
9351 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
9352 &quot;A String&quot;,
9353 ],
9354 },
9355 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
9356 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
9357 },
9358 &quot;metric&quot;: &quot;A String&quot;, # Required. The name of the metric.
9359 &quot;metricConfig&quot;: { # The metric used for running evaluations. # The metric config.
9360 &quot;aggregationMetrics&quot;: [ # Optional. The aggregation metrics to use.
9361 &quot;A String&quot;,
9362 ],
9363 &quot;bleuSpec&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. # Spec for bleu metric.
9364 &quot;useEffectiveOrder&quot;: True or False, # Optional. Whether to use_effective_order to compute bleu score.
9365 },
9366 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
9367 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
9368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9369 },
9370 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
9371 },
9372 &quot;customCodeExecutionSpec&quot;: { # Specificies a metric that is populated by evaluating user-defined Python code. # Spec for Custom Code Execution metric.
9373 &quot;evaluationFunction&quot;: &quot;A String&quot;, # Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -&gt; float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=&quot;The answer is 4.&quot;), reference=EvaluationInstance.InstanceData(text=&quot;4&quot;) ) ``` Example converted input: ``` { &#x27;response&#x27;: {&#x27;text&#x27;: &#x27;The answer is 4.&#x27;}, &#x27;reference&#x27;: {&#x27;text&#x27;: &#x27;4&#x27;} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -&gt; float: if instance&#x27;response&#x27; == instance&#x27;reference&#x27;: return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function.
9374 },
9375 &quot;exactMatchSpec&quot;: { # Spec for exact match metric - returns 1 if prediction and reference exactly matches, otherwise 0. # Spec for exact match metric.
9376 },
9377 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
9378 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
9379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9380 },
9381 &quot;judgeAutoraterConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Optional. Optional configuration for the judge LLM (Autorater).
9382 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9383 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
9384 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9385 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9386 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9387 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9388 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9389 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9390 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9391 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9392 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9393 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9394 },
9395 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9396 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9397 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9398 },
9399 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9400 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9401 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9402 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9403 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9404 },
9405 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9406 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9407 { # Configuration for the model to configure output formatting and delivery.
9408 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9409 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9410 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9411 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9412 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9413 },
9414 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9415 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9416 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9417 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9418 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9419 },
9420 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9421 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9422 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9423 },
9424 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9425 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9426 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9427 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9428 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9429 },
9430 },
9431 ],
9432 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9433 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9434 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9435 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9436 &quot;A String&quot;,
9437 ],
9438 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9439 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9440 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9441 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9442 ],
9443 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9444 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9445 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9446 },
9447 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9448 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9449 &quot;A String&quot;,
9450 ],
9451 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9452 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9453 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9454 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9455 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9456 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9457 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9458 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9459 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9460 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9461 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9462 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9463 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9464 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9465 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9466 },
9467 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9468 &quot;A String&quot;,
9469 ],
9470 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9471 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9472 &quot;A String&quot;,
9473 ],
9474 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
9475 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
9476 },
9477 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
9478 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
9479 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
9480 },
9481 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
9482 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
9483 },
9484 },
9485 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
9486 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
9487 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
9488 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
9489 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
9490 { # Configuration for a single speaker in a multi-speaker setup.
9491 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
9492 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
9493 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9494 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9495 },
9496 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9497 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9498 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9499 },
9500 },
9501 },
9502 ],
9503 },
9504 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9505 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9506 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9507 },
9508 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9509 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9510 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9511 },
9512 },
9513 },
9514 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9515 &quot;A String&quot;,
9516 ],
9517 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9518 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9519 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9520 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9521 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9522 },
9523 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9524 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9525 },
9526 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9527 },
9528 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
9529 &quot;predefinedRubricGenerationSpec&quot;: { # The spec for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
9530 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
9531 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
9532 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9533 },
9534 },
9535 &quot;resultParserConfig&quot;: { # Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters. # Optional. The parser config for the metric result.
9536 &quot;customCodeParserConfig&quot;: { # Configuration for parsing the LLM response using custom code. # Optional. Use custom code to parse the LLM response.
9537 &quot;parsingFunction&quot;: &quot;A String&quot;, # Required. Python function for parsing results. The function should be defined within this string. The function takes a list of strings (LLM responses) and should return either a list of dictionaries (for rubrics) or a single dictionary (for a metric result). Example function signature: def parse(responses: list[str]) -&gt; list[dict[str, Any]] | dict[str, Any]: When parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric. Example for rubrics: [ { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is factual.&quot;}}, &quot;type&quot;: &quot;FACTUALITY&quot;, &quot;importance&quot;: &quot;HIGH&quot; }, { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is fluent.&quot;}}, &quot;type&quot;: &quot;FLUENCY&quot;, &quot;importance&quot;: &quot;MEDIUM&quot; } ] When parsing critique results, return a dictionary representing a MetricResult. Example for a metric result: { &quot;score&quot;: 0.8, &quot;explanation&quot;: &quot;The model followed most instructions.&quot;, &quot;rubric_verdicts&quot;: [...] } ... code for result extraction and aggregation
9538 },
9539 },
9540 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
9541 &quot;modelConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
9542 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9543 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
9544 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9545 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9546 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9547 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9548 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9549 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9550 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9551 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9552 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9553 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9554 },
9555 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9556 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9557 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9558 },
9559 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9560 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9561 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9562 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9563 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9564 },
9565 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9566 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9567 { # Configuration for the model to configure output formatting and delivery.
9568 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9569 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9570 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9571 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9572 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9573 },
9574 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9575 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9576 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9577 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9578 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9579 },
9580 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9581 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9582 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9583 },
9584 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9585 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9586 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9587 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9588 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9589 },
9590 },
9591 ],
9592 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9593 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9594 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9595 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9596 &quot;A String&quot;,
9597 ],
9598 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9599 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9600 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9601 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9602 ],
9603 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9604 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9605 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9606 },
9607 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9608 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9609 &quot;A String&quot;,
9610 ],
9611 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9612 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9613 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9614 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9615 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9616 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9617 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9618 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9619 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9620 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9621 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9622 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9623 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9624 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9625 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9626 },
9627 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9628 &quot;A String&quot;,
9629 ],
9630 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9631 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9632 &quot;A String&quot;,
9633 ],
9634 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
9635 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
9636 },
9637 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
9638 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
9639 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
9640 },
9641 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
9642 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
9643 },
9644 },
9645 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
9646 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
9647 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
9648 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
9649 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
9650 { # Configuration for a single speaker in a multi-speaker setup.
9651 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
9652 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
9653 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9654 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9655 },
9656 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9657 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9658 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9659 },
9660 },
9661 },
9662 ],
9663 },
9664 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9665 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9666 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9667 },
9668 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9669 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9670 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9671 },
9672 },
9673 },
9674 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9675 &quot;A String&quot;,
9676 ],
9677 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9678 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9679 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9680 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9681 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9682 },
9683 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9684 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9685 },
9686 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9687 },
9688 &quot;promptTemplate&quot;: &quot;A String&quot;, # Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
9689 &quot;rubricContentType&quot;: &quot;A String&quot;, # The type of rubric content to be generated.
9690 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
9691 &quot;A String&quot;,
9692 ],
9693 },
9694 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
9695 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
9696 },
9697 &quot;metadata&quot;: { # Metadata about the metric, used for visualization and organization. # Optional. Metadata about the metric, used for visualization and organization.
9698 &quot;otherMetadata&quot;: { # Optional. Flexible metadata for user-defined attributes.
9699 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9700 },
9701 &quot;scoreRange&quot;: { # The range of possible scores for this metric, used for plotting. # Optional. The range of possible scores for this metric, used for plotting.
9702 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the score explaining the directionality etc.
9703 &quot;max&quot;: 3.14, # Required. The maximum value of the score range (inclusive).
9704 &quot;min&quot;: 3.14, # Required. The minimum value of the score range (inclusive).
9705 &quot;step&quot;: 3.14, # Optional. The distance between discrete steps in the range. If unset, the range is assumed to be continuous.
9706 },
9707 &quot;title&quot;: &quot;A String&quot;, # Optional. The user-friendly name for the metric. If not set for a registered metric, it will default to the metric&#x27;s display name.
9708 },
9709 &quot;pairwiseMetricSpec&quot;: { # Spec for pairwise metric. # Spec for pairwise metric.
9710 &quot;baselineResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the baseline response.
9711 &quot;candidateResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the candidate response.
9712 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
9713 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
9714 },
9715 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pairwise metric.
9716 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pairwise metric.
9717 },
9718 &quot;pointwiseMetricSpec&quot;: { # Spec for pointwise metric. # Spec for pointwise metric.
9719 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
9720 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
9721 },
9722 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pointwise metric.
9723 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pointwise metric.
9724 },
9725 &quot;predefinedMetricSpec&quot;: { # The spec for a pre-defined metric. # The spec for a pre-defined metric.
9726 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
9727 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
9728 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9729 },
9730 },
9731 &quot;rougeSpec&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. # Spec for rouge metric.
9732 &quot;rougeType&quot;: &quot;A String&quot;, # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
9733 &quot;splitSummaries&quot;: True or False, # Optional. Whether to split summaries while using rougeLsum.
9734 &quot;useStemmer&quot;: True or False, # Optional. Whether to use stemmer to compute rouge score.
9735 },
9736 },
9737 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. The resource name of the metric definition.
9738 &quot;predefinedMetricSpec&quot;: { # Specification for a pre-defined metric. # Spec for a pre-defined metric.
9739 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
9740 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
9741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
9742 },
9743 },
9744 &quot;rubricBasedMetricSpec&quot;: { # Specification for a metric that is based on rubrics. # Spec for rubric based metric.
9745 &quot;inlineRubrics&quot;: { # Defines a list of rubrics, used when providing rubrics inline. # Use rubrics provided directly in the spec.
9746 &quot;rubrics&quot;: [ # The list of rubrics.
9747 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
9748 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
9749 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
9750 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
9751 },
9752 },
9753 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
9754 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
9755 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
9756 },
9757 ],
9758 },
9759 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided.
9760 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9761 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9762 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9763 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9764 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9765 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9766 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9767 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9768 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9769 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9770 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9771 },
9772 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9773 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9774 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9775 },
9776 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9777 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9778 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9779 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9780 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9781 },
9782 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9783 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9784 { # Configuration for the model to configure output formatting and delivery.
9785 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9786 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9787 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9788 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9789 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9790 },
9791 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9792 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9793 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9794 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9795 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9796 },
9797 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9798 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9799 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9800 },
9801 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9802 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9803 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9804 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9805 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9806 },
9807 },
9808 ],
9809 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9810 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9811 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9812 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9813 &quot;A String&quot;,
9814 ],
9815 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9816 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9817 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9818 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9819 ],
9820 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9821 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9822 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9823 },
9824 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9825 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9826 &quot;A String&quot;,
9827 ],
9828 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9829 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9830 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9831 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9832 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9833 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9834 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9835 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9836 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9837 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9838 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9839 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9840 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9841 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9842 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9843 },
9844 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9845 &quot;A String&quot;,
9846 ],
9847 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9848 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9849 &quot;A String&quot;,
9850 ],
9851 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
9852 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
9853 },
9854 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
9855 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
9856 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
9857 },
9858 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
9859 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
9860 },
9861 },
9862 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
9863 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
9864 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
9865 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
9866 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
9867 { # Configuration for a single speaker in a multi-speaker setup.
9868 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
9869 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
9870 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9871 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9872 },
9873 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9874 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9875 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9876 },
9877 },
9878 },
9879 ],
9880 },
9881 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
9882 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
9883 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
9884 },
9885 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
9886 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
9887 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
9888 },
9889 },
9890 },
9891 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
9892 &quot;A String&quot;,
9893 ],
9894 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
9895 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
9896 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
9897 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
9898 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
9899 },
9900 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
9901 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
9902 },
9903 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
9904 },
9905 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used by the judge model to evaluate against rubrics.
9906 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics for evaluation using this specification.
9907 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
9908 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
9909 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
9910 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
9911 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
9912 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
9913 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
9914 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
9915 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
9916 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
9917 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
9918 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
9919 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
9920 },
9921 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
9922 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
9923 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
9924 },
9925 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
9926 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
9927 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
9928 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
9929 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
9930 },
9931 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
9932 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
9933 { # Configuration for the model to configure output formatting and delivery.
9934 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
9935 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
9936 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9937 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
9938 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
9939 },
9940 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
9941 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
9942 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9943 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
9944 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
9945 },
9946 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
9947 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
9948 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
9949 },
9950 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
9951 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
9952 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
9953 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
9954 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
9955 },
9956 },
9957 ],
9958 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
9959 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
9960 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
9961 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
9962 &quot;A String&quot;,
9963 ],
9964 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
9965 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
9966 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
9967 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9968 ],
9969 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
9970 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
9971 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9972 },
9973 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
9974 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
9975 &quot;A String&quot;,
9976 ],
9977 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
9978 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
9979 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
9980 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
9981 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
9982 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
9983 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
9984 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
9985 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
9986 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
9987 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
9988 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
9989 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
9990 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
9991 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
9992 },
9993 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
9994 &quot;A String&quot;,
9995 ],
9996 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
9997 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
9998 &quot;A String&quot;,
9999 ],
10000 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10001 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10002 },
10003 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
10004 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
10005 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
10006 },
10007 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
10008 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
10009 },
10010 },
10011 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
10012 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
10013 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
10014 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
10015 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
10016 { # Configuration for a single speaker in a multi-speaker setup.
10017 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
10018 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
10019 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
10020 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
10021 },
10022 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
10023 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
10024 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
10025 },
10026 },
10027 },
10028 ],
10029 },
10030 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
10031 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
10032 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
10033 },
10034 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
10035 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
10036 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
10037 },
10038 },
10039 },
10040 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
10041 &quot;A String&quot;,
10042 ],
10043 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
10044 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
10045 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
10046 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
10047 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
10048 },
10049 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
10050 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
10051 },
10052 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
10053 },
10054 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
10055 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
10056 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
10057 &quot;A String&quot;,
10058 ],
10059 },
10060 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`.
10061 },
10062 },
10063 ],
10064 &quot;outputConfig&quot;: { # The output config for the evaluation run. # Optional. The output config for the evaluation run.
10065 &quot;bigqueryDestination&quot;: { # The BigQuery location for the output content. # BigQuery destination for evaluation output.
10066 &quot;outputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a project or table, up to 2000 characters long. When only the project is specified, the Dataset and Table is created. When the full table reference is specified, the Dataset must exist and table must not exist. Accepted forms: * BigQuery path. For example: `bq://projectId` or `bq://projectId.bqDatasetId` or `bq://projectId.bqDatasetId.bqTableId`.
10067 },
10068 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output is to be written to. # Cloud Storage destination for evaluation output.
10069 &quot;outputUriPrefix&quot;: &quot;A String&quot;, # Required. Google Cloud Storage URI to output directory. If the uri doesn&#x27;t end with &#x27;/&#x27;, a &#x27;/&#x27; will be automatically appended. The directory is created if it doesn&#x27;t exist.
10070 },
10071 },
10072 &quot;promptTemplate&quot;: { # Prompt template used for inference. # The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values.
10073 &quot;gcsUri&quot;: &quot;A String&quot;, # Prompt template stored in Cloud Storage. Format: &quot;gs://my-bucket/file-name.txt&quot;.
10074 &quot;promptTemplate&quot;: &quot;A String&quot;, # Inline prompt template. Template variables should be in the format &quot;{var_name}&quot;. Example: &quot;Translate the following from {source_lang} to {target_lang}: {text}&quot;
10075 },
10076 &quot;rubricConfigs&quot;: [ # Optional. The rubric configs for the evaluation run. They are used to generate rubrics which can be used by rubric-based metrics. Multiple rubric configs can be specified for rubric generation but only one rubric config can be used for a rubric-based metric. If more than one rubric config is provided, the evaluation metric must specify a rubric group key. Note that if a generation spec is specified on both a rubric config and an evaluation metric, the rubrics generated for the metric will be used for evaluation.
10077 { # Configuration for a rubric group to be generated/saved for evaluation.
10078 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
10079 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
10080 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
10081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10082 },
10083 },
10084 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
10085 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
10086 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
10087 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
10088 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
10089 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
10090 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
10091 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
10092 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
10093 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
10094 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
10095 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
10096 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
10097 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
10098 },
10099 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
10100 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
10101 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
10102 },
10103 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
10104 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
10105 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
10106 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
10107 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
10108 },
10109 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
10110 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
10111 { # Configuration for the model to configure output formatting and delivery.
10112 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
10113 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
10114 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
10115 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
10116 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
10117 },
10118 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
10119 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
10120 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
10121 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
10122 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
10123 },
10124 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
10125 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
10126 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
10127 },
10128 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
10129 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
10130 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
10131 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
10132 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
10133 },
10134 },
10135 ],
10136 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
10137 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
10138 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
10139 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
10140 &quot;A String&quot;,
10141 ],
10142 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
10143 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10144 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10145 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10146 ],
10147 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10148 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10149 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10150 },
10151 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10152 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10153 &quot;A String&quot;,
10154 ],
10155 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10156 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10157 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10158 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
10159 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
10160 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
10161 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
10162 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
10163 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
10164 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
10165 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
10166 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
10167 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
10168 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
10169 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10170 },
10171 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
10172 &quot;A String&quot;,
10173 ],
10174 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
10175 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
10176 &quot;A String&quot;,
10177 ],
10178 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10179 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10180 },
10181 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
10182 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
10183 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
10184 },
10185 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
10186 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
10187 },
10188 },
10189 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
10190 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
10191 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
10192 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
10193 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
10194 { # Configuration for a single speaker in a multi-speaker setup.
10195 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
10196 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
10197 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
10198 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
10199 },
10200 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
10201 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
10202 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
10203 },
10204 },
10205 },
10206 ],
10207 },
10208 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
10209 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
10210 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
10211 },
10212 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
10213 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
10214 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
10215 },
10216 },
10217 },
10218 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
10219 &quot;A String&quot;,
10220 ],
10221 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
10222 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
10223 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
10224 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
10225 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
10226 },
10227 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
10228 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
10229 },
10230 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
10231 },
10232 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
10233 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
10234 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
10235 &quot;A String&quot;,
10236 ],
10237 },
10238 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Required. The key used to save the generated rubrics. If a generation spec is provided, this key will be used for the name of the generated rubric group. Otherwise, this key will be used to look up the existing rubric group on the evaluation item. Note that if a rubric group key is specified on both a rubric config and an evaluation metric, the key from the metric will be used to select the rubrics for evaluation.
10239 },
10240 ],
10241 },
10242 &quot;evaluationResults&quot;: { # The results of the evaluation run. # Output only. The results of the evaluation run. Only populated when the evaluation run&#x27;s state is SUCCEEDED.
10243 &quot;evaluationSet&quot;: &quot;A String&quot;, # The evaluation set where item level results are stored.
10244 &quot;lossAnalysisResults&quot;: [ # Output only. The results of the auto-loss analysis performed on the eval set associated with the run.
10245 { # The top-level result for loss analysis, stored within an EvalSet.
10246 &quot;analysisTime&quot;: &quot;A String&quot;, # The timestamp when this analysis was performed.
10247 &quot;clusters&quot;: [ # The list of identified loss clusters.
10248 { # Represents a semantic grouping of failures (e.g., &quot;Hallucination of Action&quot;).
10249 &quot;clusterId&quot;: &quot;A String&quot;, # Unique identifier for the loss cluster within the scope of the analysis result.
10250 &quot;examples&quot;: [ # A list of examples that belong to this cluster. This links the cluster back to the specific EvaluationItems and Rubrics.
10251 { # Represents a specific example of a loss pattern.
10252 &quot;evaluationItem&quot;: &quot;A String&quot;, # Reference to the persisted EvalItem resource name. Format: projects/.../locations/.../evaluationItems/{item_id} Used when analysis is run on an EvalSet.
10253 &quot;evaluationResult&quot;: { # Evaluation result. # The full evaluation result object provided inline. Used when the analysis is performed on ephemeral data (without an EvaluationSet).
10254 &quot;candidateResults&quot;: [ # Optional. The results for the metric.
10255 { # Result for a single candidate.
10256 &quot;additionalResults&quot;: &quot;&quot;, # Optional. Additional results for the metric.
10257 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.
10258 &quot;explanation&quot;: &quot;A String&quot;, # Optional. The explanation for the metric.
10259 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
10260 &quot;rubricVerdicts&quot;: [ # Optional. The rubric verdicts for the metric.
10261 { # Represents the verdict of an evaluation against a single rubric.
10262 &quot;evaluatedRubric&quot;: { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics. # Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
10263 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
10264 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
10265 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
10266 },
10267 },
10268 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
10269 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
10270 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
10271 },
10272 &quot;reasoning&quot;: &quot;A String&quot;, # Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
10273 &quot;verdict&quot;: True or False, # Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a &quot;Pass&quot;, `false` indicates a &quot;Fail&quot;.
10274 },
10275 ],
10276 &quot;score&quot;: 3.14, # Optional. The score for the metric.
10277 },
10278 ],
10279 &quot;evaluationRequest&quot;: &quot;A String&quot;, # Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}
10280 &quot;evaluationRun&quot;: &quot;A String&quot;, # Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}
10281 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation result.
10282 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
10283 &quot;request&quot;: { # A single evaluation request supporting input for both single-turn model generation and multi-turn agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at least one of the `candidate_responses` must contain `agent_data`. # Required. The request that was evaluated.
10284 &quot;candidateResponses&quot;: [ # Optional. Responses from model under test and other baseline models for comparison.
10285 { # Responses from model or agent.
10286 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
10287 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
10288 &quot;a_key&quot;: { # Represents configuration for an Agent.
10289 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
10290 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
10291 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
10292 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
10293 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
10294 &quot;A String&quot;,
10295 ],
10296 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
10297 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
10298 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
10299 },
10300 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
10301 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
10302 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
10303 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
10304 &quot;A String&quot;,
10305 ],
10306 },
10307 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
10308 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
10309 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
10310 &quot;A String&quot;,
10311 ],
10312 },
10313 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
10314 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
10315 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
10316 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10317 },
10318 },
10319 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
10320 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
10321 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
10322 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
10323 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
10324 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
10325 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10326 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10327 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10328 ],
10329 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10330 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10331 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10332 },
10333 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10334 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10335 &quot;A String&quot;,
10336 ],
10337 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10338 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10339 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10340 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
10341 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
10342 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
10343 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
10344 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
10345 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
10346 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
10347 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
10348 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
10349 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
10350 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
10351 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10352 },
10353 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
10354 &quot;A String&quot;,
10355 ],
10356 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
10357 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
10358 &quot;A String&quot;,
10359 ],
10360 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10361 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10362 },
10363 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
10364 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
10365 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10366 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10367 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10368 ],
10369 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10370 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10371 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10372 },
10373 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10374 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10375 &quot;A String&quot;,
10376 ],
10377 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10378 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10379 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10380 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
10381 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
10382 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
10383 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
10384 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
10385 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
10386 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
10387 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
10388 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
10389 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
10390 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
10391 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10392 },
10393 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
10394 &quot;A String&quot;,
10395 ],
10396 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
10397 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
10398 &quot;A String&quot;,
10399 ],
10400 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10401 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10402 },
10403 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
10404 },
10405 ],
10406 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
10407 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
10408 },
10409 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
10410 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
10411 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
10412 &quot;A String&quot;,
10413 ],
10414 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
10415 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
10416 },
10417 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
10418 },
10419 },
10420 },
10421 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
10422 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
10423 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
10424 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
10425 },
10426 },
10427 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
10428 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
10429 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
10430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10431 },
10432 },
10433 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
10434 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
10435 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
10436 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
10437 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
10438 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
10439 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
10440 },
10441 },
10442 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
10443 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
10444 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
10445 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
10446 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
10447 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
10448 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
10449 },
10450 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
10451 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
10452 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
10453 },
10454 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
10455 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
10456 },
10457 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
10458 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
10459 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
10460 },
10461 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
10462 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
10463 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
10464 },
10465 },
10466 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
10467 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
10468 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
10469 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
10470 },
10471 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
10472 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
10473 },
10474 },
10475 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
10476 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
10477 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
10478 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
10479 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
10480 },
10481 ],
10482 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
10483 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
10484 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
10485 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
10486 },
10487 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
10488 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
10489 &quot;A String&quot;,
10490 ],
10491 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
10492 { # The definition of the Rag resource.
10493 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
10494 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
10495 &quot;A String&quot;,
10496 ],
10497 },
10498 ],
10499 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
10500 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
10501 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
10502 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
10503 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
10504 },
10505 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
10506 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
10507 },
10508 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
10509 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
10510 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
10511 },
10512 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
10513 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
10514 },
10515 },
10516 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
10517 },
10518 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
10519 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
10520 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
10521 },
10522 },
10523 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
10524 },
10525 },
10526 ],
10527 },
10528 },
10529 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
10530 { # Represents a single turn/invocation in the conversation.
10531 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
10532 { # Represents a single event in the execution trace.
10533 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
10534 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
10535 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
10536 },
10537 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
10538 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
10539 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
10540 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
10541 &quot;A String&quot;,
10542 ],
10543 },
10544 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
10545 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
10546 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
10547 &quot;A String&quot;,
10548 ],
10549 },
10550 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
10551 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
10552 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
10553 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10554 },
10555 },
10556 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
10557 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
10558 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
10559 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
10560 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
10561 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
10562 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10563 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10564 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10565 ],
10566 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10567 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10568 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10569 },
10570 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10571 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10572 &quot;A String&quot;,
10573 ],
10574 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10575 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10576 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10577 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
10578 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
10579 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
10580 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
10581 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
10582 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
10583 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
10584 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
10585 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
10586 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
10587 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
10588 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10589 },
10590 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
10591 &quot;A String&quot;,
10592 ],
10593 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
10594 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
10595 &quot;A String&quot;,
10596 ],
10597 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10598 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10599 },
10600 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
10601 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
10602 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10603 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10604 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10605 ],
10606 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10607 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10608 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10609 },
10610 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10611 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10612 &quot;A String&quot;,
10613 ],
10614 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10615 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10616 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10617 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
10618 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
10619 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
10620 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
10621 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
10622 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
10623 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
10624 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
10625 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
10626 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
10627 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
10628 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10629 },
10630 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
10631 &quot;A String&quot;,
10632 ],
10633 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
10634 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
10635 &quot;A String&quot;,
10636 ],
10637 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
10638 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
10639 },
10640 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
10641 },
10642 ],
10643 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
10644 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
10645 },
10646 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
10647 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
10648 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
10649 &quot;A String&quot;,
10650 ],
10651 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
10652 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
10653 },
10654 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
10655 },
10656 },
10657 },
10658 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
10659 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
10660 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
10661 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
10662 },
10663 },
10664 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
10665 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
10666 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
10667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10668 },
10669 },
10670 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
10671 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
10672 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
10673 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
10674 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
10675 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
10676 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
10677 },
10678 },
10679 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
10680 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
10681 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
10682 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
10683 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
10684 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
10685 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
10686 },
10687 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
10688 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
10689 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
10690 },
10691 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
10692 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
10693 },
10694 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
10695 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
10696 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
10697 },
10698 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
10699 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
10700 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
10701 },
10702 },
10703 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
10704 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
10705 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
10706 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
10707 },
10708 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
10709 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
10710 },
10711 },
10712 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
10713 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
10714 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
10715 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
10716 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
10717 },
10718 ],
10719 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
10720 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
10721 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
10722 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
10723 },
10724 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
10725 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
10726 &quot;A String&quot;,
10727 ],
10728 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
10729 { # The definition of the Rag resource.
10730 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
10731 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
10732 &quot;A String&quot;,
10733 ],
10734 },
10735 ],
10736 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
10737 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
10738 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
10739 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
10740 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
10741 },
10742 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
10743 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
10744 },
10745 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
10746 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
10747 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
10748 },
10749 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
10750 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
10751 },
10752 },
10753 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
10754 },
10755 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
10756 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
10757 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
10758 },
10759 },
10760 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
10761 },
10762 },
10763 ],
10764 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
10765 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
10766 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
10767 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
10768 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
10769 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
10770 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
10771 },
10772 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
10773 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
10774 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
10775 },
10776 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
10777 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
10778 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
10779 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10780 },
10781 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
10782 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
10783 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10784 },
10785 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
10786 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
10787 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
10788 { # Partial argument value of the function call.
10789 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
10790 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
10791 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
10792 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
10793 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
10794 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
10795 },
10796 ],
10797 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
10798 },
10799 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
10800 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
10801 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
10802 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
10803 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
10804 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
10805 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
10806 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
10807 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10808 },
10809 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
10810 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
10811 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
10812 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10813 },
10814 },
10815 ],
10816 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
10817 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10818 },
10819 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
10820 },
10821 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
10822 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
10823 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
10824 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10825 },
10826 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
10827 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
10828 },
10829 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
10830 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
10831 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
10832 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
10833 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
10834 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
10835 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
10836 },
10837 },
10838 ],
10839 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
10840 },
10841 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
10842 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
10843 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10844 },
10845 },
10846 ],
10847 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
10848 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
10849 },
10850 ],
10851 },
10852 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
10853 &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. Error while scraping model or agent.
10854 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
10855 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
10856 {
10857 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
10858 },
10859 ],
10860 &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.
10861 },
10862 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
10863 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
10864 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
10865 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
10866 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
10867 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
10868 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
10869 },
10870 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
10871 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
10872 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
10873 },
10874 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
10875 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
10876 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
10877 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10878 },
10879 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
10880 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
10881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10882 },
10883 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
10884 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
10885 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
10886 { # Partial argument value of the function call.
10887 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
10888 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
10889 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
10890 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
10891 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
10892 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
10893 },
10894 ],
10895 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
10896 },
10897 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
10898 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
10899 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
10900 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
10901 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
10902 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
10903 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
10904 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
10905 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10906 },
10907 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
10908 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
10909 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
10910 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10911 },
10912 },
10913 ],
10914 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
10915 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10916 },
10917 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
10918 },
10919 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
10920 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
10921 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
10922 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10923 },
10924 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
10925 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
10926 },
10927 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
10928 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
10929 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
10930 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
10931 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
10932 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
10933 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
10934 },
10935 },
10936 ],
10937 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
10938 },
10939 ],
10940 &quot;text&quot;: &quot;A String&quot;, # Text response.
10941 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
10942 },
10943 ],
10944 &quot;goldenResponse&quot;: { # Responses from model or agent. # Optional. The Ideal response or ground truth.
10945 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
10946 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
10947 &quot;a_key&quot;: { # Represents configuration for an Agent.
10948 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
10949 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
10950 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
10951 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
10952 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
10953 &quot;A String&quot;,
10954 ],
10955 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
10956 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
10957 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
10958 },
10959 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
10960 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
10961 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
10962 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
10963 &quot;A String&quot;,
10964 ],
10965 },
10966 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
10967 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
10968 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
10969 &quot;A String&quot;,
10970 ],
10971 },
10972 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
10973 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
10974 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
10975 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
10976 },
10977 },
10978 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
10979 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
10980 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
10981 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
10982 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
10983 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
10984 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
10985 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
10986 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10987 ],
10988 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
10989 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
10990 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
10991 },
10992 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
10993 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
10994 &quot;A String&quot;,
10995 ],
10996 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
10997 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
10998 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
10999 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11000 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11001 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11002 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11003 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11004 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11005 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11006 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11007 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11008 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11009 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11010 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11011 },
11012 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11013 &quot;A String&quot;,
11014 ],
11015 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11016 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11017 &quot;A String&quot;,
11018 ],
11019 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11020 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11021 },
11022 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
11023 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
11024 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11025 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11026 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11027 ],
11028 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11029 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11030 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11031 },
11032 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11033 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11034 &quot;A String&quot;,
11035 ],
11036 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11037 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11038 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11039 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11040 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11041 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11042 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11043 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11044 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11045 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11046 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11047 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11048 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11049 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11050 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11051 },
11052 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11053 &quot;A String&quot;,
11054 ],
11055 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11056 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11057 &quot;A String&quot;,
11058 ],
11059 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11060 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11061 },
11062 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
11063 },
11064 ],
11065 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
11066 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
11067 },
11068 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
11069 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11070 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
11071 &quot;A String&quot;,
11072 ],
11073 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
11074 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
11075 },
11076 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
11077 },
11078 },
11079 },
11080 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
11081 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
11082 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
11083 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
11084 },
11085 },
11086 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
11087 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
11088 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
11089 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11090 },
11091 },
11092 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
11093 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
11094 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
11095 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
11096 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
11097 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
11098 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
11099 },
11100 },
11101 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
11102 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
11103 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
11104 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11105 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
11106 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
11107 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
11108 },
11109 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
11110 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
11111 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
11112 },
11113 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
11114 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11115 },
11116 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
11117 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11118 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
11119 },
11120 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
11121 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11122 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
11123 },
11124 },
11125 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
11126 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
11127 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
11128 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
11129 },
11130 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
11131 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
11132 },
11133 },
11134 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
11135 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
11136 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
11137 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11138 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
11139 },
11140 ],
11141 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11142 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
11143 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
11144 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
11145 },
11146 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
11147 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
11148 &quot;A String&quot;,
11149 ],
11150 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
11151 { # The definition of the Rag resource.
11152 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
11153 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
11154 &quot;A String&quot;,
11155 ],
11156 },
11157 ],
11158 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
11159 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
11160 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
11161 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
11162 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
11163 },
11164 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
11165 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
11166 },
11167 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
11168 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
11169 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
11170 },
11171 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
11172 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
11173 },
11174 },
11175 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
11176 },
11177 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
11178 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
11179 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
11180 },
11181 },
11182 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
11183 },
11184 },
11185 ],
11186 },
11187 },
11188 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
11189 { # Represents a single turn/invocation in the conversation.
11190 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
11191 { # Represents a single event in the execution trace.
11192 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
11193 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
11194 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
11195 },
11196 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
11197 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
11198 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
11199 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
11200 &quot;A String&quot;,
11201 ],
11202 },
11203 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
11204 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11205 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
11206 &quot;A String&quot;,
11207 ],
11208 },
11209 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
11210 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
11211 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
11212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11213 },
11214 },
11215 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
11216 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
11217 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
11218 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
11219 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
11220 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
11221 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11222 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11223 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11224 ],
11225 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11226 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11227 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11228 },
11229 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11230 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11231 &quot;A String&quot;,
11232 ],
11233 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11234 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11235 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11236 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11237 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11238 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11239 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11240 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11241 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11242 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11243 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11244 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11245 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11246 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11247 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11248 },
11249 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11250 &quot;A String&quot;,
11251 ],
11252 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11253 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11254 &quot;A String&quot;,
11255 ],
11256 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11257 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11258 },
11259 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
11260 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
11261 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11262 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11263 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11264 ],
11265 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11266 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11267 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11268 },
11269 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11270 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11271 &quot;A String&quot;,
11272 ],
11273 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11274 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11275 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11276 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11277 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11278 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11279 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11280 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11281 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11282 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11283 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11284 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11285 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11286 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11287 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11288 },
11289 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11290 &quot;A String&quot;,
11291 ],
11292 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11293 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11294 &quot;A String&quot;,
11295 ],
11296 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11297 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11298 },
11299 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
11300 },
11301 ],
11302 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
11303 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
11304 },
11305 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
11306 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11307 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
11308 &quot;A String&quot;,
11309 ],
11310 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
11311 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
11312 },
11313 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
11314 },
11315 },
11316 },
11317 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
11318 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
11319 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
11320 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
11321 },
11322 },
11323 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
11324 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
11325 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
11326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11327 },
11328 },
11329 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
11330 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
11331 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
11332 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
11333 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
11334 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
11335 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
11336 },
11337 },
11338 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
11339 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
11340 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
11341 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11342 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
11343 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
11344 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
11345 },
11346 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
11347 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
11348 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
11349 },
11350 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
11351 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11352 },
11353 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
11354 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11355 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
11356 },
11357 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
11358 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11359 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
11360 },
11361 },
11362 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
11363 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
11364 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
11365 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
11366 },
11367 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
11368 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
11369 },
11370 },
11371 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
11372 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
11373 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
11374 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11375 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
11376 },
11377 ],
11378 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11379 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
11380 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
11381 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
11382 },
11383 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
11384 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
11385 &quot;A String&quot;,
11386 ],
11387 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
11388 { # The definition of the Rag resource.
11389 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
11390 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
11391 &quot;A String&quot;,
11392 ],
11393 },
11394 ],
11395 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
11396 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
11397 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
11398 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
11399 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
11400 },
11401 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
11402 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
11403 },
11404 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
11405 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
11406 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
11407 },
11408 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
11409 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
11410 },
11411 },
11412 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
11413 },
11414 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
11415 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
11416 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
11417 },
11418 },
11419 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
11420 },
11421 },
11422 ],
11423 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
11424 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
11425 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
11426 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
11427 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
11428 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
11429 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
11430 },
11431 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
11432 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
11433 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
11434 },
11435 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
11436 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
11437 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
11438 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11439 },
11440 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
11441 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
11442 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11443 },
11444 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
11445 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
11446 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
11447 { # Partial argument value of the function call.
11448 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
11449 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
11450 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
11451 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
11452 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
11453 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
11454 },
11455 ],
11456 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
11457 },
11458 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
11459 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
11460 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
11461 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
11462 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
11463 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
11464 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
11465 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
11466 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11467 },
11468 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
11469 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
11470 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
11471 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11472 },
11473 },
11474 ],
11475 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
11476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11477 },
11478 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
11479 },
11480 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
11481 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
11482 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
11483 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11484 },
11485 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
11486 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
11487 },
11488 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
11489 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
11490 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
11491 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
11492 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
11493 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
11494 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
11495 },
11496 },
11497 ],
11498 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
11499 },
11500 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
11501 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
11502 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11503 },
11504 },
11505 ],
11506 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
11507 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
11508 },
11509 ],
11510 },
11511 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
11512 &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. Error while scraping model or agent.
11513 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
11514 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
11515 {
11516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
11517 },
11518 ],
11519 &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.
11520 },
11521 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
11522 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
11523 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
11524 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
11525 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
11526 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
11527 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
11528 },
11529 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
11530 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
11531 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
11532 },
11533 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
11534 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
11535 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
11536 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11537 },
11538 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
11539 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
11540 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11541 },
11542 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
11543 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
11544 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
11545 { # Partial argument value of the function call.
11546 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
11547 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
11548 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
11549 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
11550 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
11551 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
11552 },
11553 ],
11554 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
11555 },
11556 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
11557 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
11558 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
11559 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
11560 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
11561 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
11562 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
11563 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
11564 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11565 },
11566 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
11567 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
11568 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
11569 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11570 },
11571 },
11572 ],
11573 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
11574 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11575 },
11576 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
11577 },
11578 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
11579 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
11580 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
11581 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
11582 },
11583 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
11584 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
11585 },
11586 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
11587 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
11588 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
11589 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
11590 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
11591 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
11592 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
11593 },
11594 },
11595 ],
11596 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
11597 },
11598 ],
11599 &quot;text&quot;: &quot;A String&quot;, # Text response.
11600 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
11601 },
11602 &quot;prompt&quot;: { # Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for agent evaluations. # Optional. The request/prompt to evaluate.
11603 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This serves as the input context for agent scraping.
11604 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
11605 &quot;a_key&quot;: { # Represents configuration for an Agent.
11606 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
11607 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
11608 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
11609 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
11610 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
11611 &quot;A String&quot;,
11612 ],
11613 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
11614 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
11615 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
11616 },
11617 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
11618 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
11619 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
11620 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
11621 &quot;A String&quot;,
11622 ],
11623 },
11624 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
11625 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11626 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
11627 &quot;A String&quot;,
11628 ],
11629 },
11630 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
11631 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
11632 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
11633 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11634 },
11635 },
11636 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
11637 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
11638 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
11639 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
11640 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
11641 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
11642 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11643 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11644 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11645 ],
11646 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11647 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11648 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11649 },
11650 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11651 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11652 &quot;A String&quot;,
11653 ],
11654 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11655 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11656 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11657 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11658 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11659 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11660 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11661 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11662 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11663 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11664 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11665 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11666 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11667 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11668 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11669 },
11670 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11671 &quot;A String&quot;,
11672 ],
11673 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11674 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11675 &quot;A String&quot;,
11676 ],
11677 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11678 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11679 },
11680 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
11681 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
11682 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11683 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11684 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11685 ],
11686 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11687 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11688 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11689 },
11690 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11691 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11692 &quot;A String&quot;,
11693 ],
11694 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11695 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11696 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11697 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11698 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11699 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11700 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11701 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11702 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11703 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11704 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11705 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11706 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11707 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11708 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11709 },
11710 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11711 &quot;A String&quot;,
11712 ],
11713 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11714 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11715 &quot;A String&quot;,
11716 ],
11717 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11718 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11719 },
11720 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
11721 },
11722 ],
11723 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
11724 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
11725 },
11726 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
11727 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11728 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
11729 &quot;A String&quot;,
11730 ],
11731 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
11732 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
11733 },
11734 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
11735 },
11736 },
11737 },
11738 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
11739 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
11740 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
11741 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
11742 },
11743 },
11744 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
11745 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
11746 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
11747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11748 },
11749 },
11750 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
11751 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
11752 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
11753 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
11754 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
11755 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
11756 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
11757 },
11758 },
11759 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
11760 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
11761 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
11762 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11763 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
11764 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
11765 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
11766 },
11767 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
11768 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
11769 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
11770 },
11771 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
11772 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
11773 },
11774 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
11775 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11776 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
11777 },
11778 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
11779 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
11780 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
11781 },
11782 },
11783 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
11784 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
11785 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
11786 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
11787 },
11788 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
11789 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
11790 },
11791 },
11792 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
11793 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
11794 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
11795 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11796 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
11797 },
11798 ],
11799 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
11800 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
11801 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
11802 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
11803 },
11804 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
11805 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
11806 &quot;A String&quot;,
11807 ],
11808 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
11809 { # The definition of the Rag resource.
11810 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
11811 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
11812 &quot;A String&quot;,
11813 ],
11814 },
11815 ],
11816 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
11817 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
11818 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
11819 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
11820 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
11821 },
11822 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
11823 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
11824 },
11825 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
11826 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
11827 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
11828 },
11829 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
11830 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
11831 },
11832 },
11833 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
11834 },
11835 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
11836 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
11837 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
11838 },
11839 },
11840 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
11841 },
11842 },
11843 ],
11844 },
11845 },
11846 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
11847 { # Represents a single turn/invocation in the conversation.
11848 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
11849 { # Represents a single event in the execution trace.
11850 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
11851 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
11852 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
11853 },
11854 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
11855 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
11856 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
11857 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
11858 &quot;A String&quot;,
11859 ],
11860 },
11861 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
11862 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11863 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
11864 &quot;A String&quot;,
11865 ],
11866 },
11867 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
11868 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
11869 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
11870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11871 },
11872 },
11873 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
11874 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
11875 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
11876 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
11877 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
11878 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
11879 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11880 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11881 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11882 ],
11883 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11884 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11885 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11886 },
11887 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11888 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11889 &quot;A String&quot;,
11890 ],
11891 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11892 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11893 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11894 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11895 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11896 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11897 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11898 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11899 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11900 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11901 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11902 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11903 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11904 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11905 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11906 },
11907 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11908 &quot;A String&quot;,
11909 ],
11910 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11911 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11912 &quot;A String&quot;,
11913 ],
11914 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11915 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11916 },
11917 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
11918 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
11919 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
11920 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
11921 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11922 ],
11923 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
11924 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
11925 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11926 },
11927 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
11928 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
11929 &quot;A String&quot;,
11930 ],
11931 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
11932 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
11933 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
11934 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
11935 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
11936 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
11937 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
11938 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
11939 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
11940 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
11941 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
11942 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
11943 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
11944 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
11945 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
11946 },
11947 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
11948 &quot;A String&quot;,
11949 ],
11950 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
11951 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
11952 &quot;A String&quot;,
11953 ],
11954 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
11955 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
11956 },
11957 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
11958 },
11959 ],
11960 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
11961 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
11962 },
11963 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
11964 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
11965 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
11966 &quot;A String&quot;,
11967 ],
11968 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
11969 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
11970 },
11971 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
11972 },
11973 },
11974 },
11975 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
11976 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
11977 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
11978 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
11979 },
11980 },
11981 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
11982 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
11983 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
11984 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
11985 },
11986 },
11987 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
11988 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
11989 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
11990 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
11991 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
11992 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
11993 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
11994 },
11995 },
11996 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
11997 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
11998 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
11999 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12000 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
12001 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
12002 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
12003 },
12004 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
12005 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
12006 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
12007 },
12008 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
12009 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12010 },
12011 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
12012 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12013 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
12014 },
12015 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
12016 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12017 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
12018 },
12019 },
12020 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
12021 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
12022 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
12023 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
12024 },
12025 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
12026 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
12027 },
12028 },
12029 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
12030 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
12031 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
12032 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12033 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
12034 },
12035 ],
12036 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12037 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
12038 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
12039 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
12040 },
12041 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
12042 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
12043 &quot;A String&quot;,
12044 ],
12045 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
12046 { # The definition of the Rag resource.
12047 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
12048 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
12049 &quot;A String&quot;,
12050 ],
12051 },
12052 ],
12053 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
12054 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
12055 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
12056 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
12057 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
12058 },
12059 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
12060 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
12061 },
12062 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
12063 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
12064 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
12065 },
12066 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
12067 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
12068 },
12069 },
12070 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
12071 },
12072 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
12073 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
12074 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
12075 },
12076 },
12077 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
12078 },
12079 },
12080 ],
12081 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
12082 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
12083 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
12084 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
12085 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
12086 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
12087 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
12088 },
12089 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
12090 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
12091 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
12092 },
12093 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
12094 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12095 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
12096 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12097 },
12098 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
12099 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
12100 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12101 },
12102 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
12103 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
12104 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
12105 { # Partial argument value of the function call.
12106 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
12107 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
12108 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
12109 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
12110 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
12111 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
12112 },
12113 ],
12114 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
12115 },
12116 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
12117 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
12118 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
12119 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
12120 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
12121 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
12122 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12123 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
12124 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12125 },
12126 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
12127 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
12128 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12129 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12130 },
12131 },
12132 ],
12133 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
12134 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12135 },
12136 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
12137 },
12138 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
12139 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
12140 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12141 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12142 },
12143 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
12144 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
12145 },
12146 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
12147 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
12148 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
12149 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
12150 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
12151 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
12152 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
12153 },
12154 },
12155 ],
12156 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
12157 },
12158 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
12159 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
12160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12161 },
12162 },
12163 ],
12164 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
12165 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
12166 },
12167 ],
12168 },
12169 &quot;promptTemplateData&quot;: { # Message to hold a prompt template and the values to populate the template. # Prompt template data.
12170 &quot;values&quot;: { # The values for fields in the prompt template.
12171 &quot;a_key&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
12172 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
12173 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
12174 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
12175 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
12176 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
12177 },
12178 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
12179 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
12180 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
12181 },
12182 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
12183 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12184 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
12185 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12186 },
12187 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
12188 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
12189 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12190 },
12191 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
12192 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
12193 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
12194 { # Partial argument value of the function call.
12195 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
12196 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
12197 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
12198 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
12199 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
12200 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
12201 },
12202 ],
12203 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
12204 },
12205 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
12206 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
12207 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
12208 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
12209 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
12210 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
12211 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12212 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
12213 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12214 },
12215 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
12216 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
12217 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12218 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12219 },
12220 },
12221 ],
12222 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
12223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12224 },
12225 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
12226 },
12227 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
12228 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
12229 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12230 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12231 },
12232 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
12233 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
12234 },
12235 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
12236 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
12237 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
12238 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
12239 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
12240 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
12241 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
12242 },
12243 },
12244 ],
12245 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
12246 },
12247 },
12248 },
12249 &quot;text&quot;: &quot;A String&quot;, # Text prompt.
12250 &quot;userScenario&quot;: { # User scenario to help simulate multi-turn agent running results. # Optional. The generated user scenario used to drive multi-turn agent running results.
12251 &quot;conversationPlan&quot;: &quot;A String&quot;, # Required. The plan for the conversation, used to drive the multi-turn agent run and generate the simulated agent evaluation dataset.
12252 &quot;startingPrompt&quot;: &quot;A String&quot;, # Required. The prompt that starts the conversation between the simulated user and the agent under test.
12253 },
12254 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the prompt template.
12255 },
12256 &quot;rubrics&quot;: { # Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group.
12257 &quot;a_key&quot;: { # A group of rubrics, used for grouping rubrics based on a metric or a version.
12258 &quot;displayName&quot;: &quot;A String&quot;, # Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: &quot;Instruction Following V1&quot;, &quot;Content Quality - Summarization Task&quot;.
12259 &quot;groupId&quot;: &quot;A String&quot;, # Unique identifier for the group.
12260 &quot;rubrics&quot;: [ # Rubrics that are part of this group.
12261 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
12262 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
12263 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
12264 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
12265 },
12266 },
12267 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
12268 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
12269 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
12270 },
12271 ],
12272 },
12273 },
12274 },
12275 },
12276 &quot;failedRubrics&quot;: [ # The specific rubric(s) that failed and caused this example to be classified here. An example might fail multiple rubrics, but only specific ones trigger this loss pattern.
12277 { # Represents a specific failed rubric and the associated analysis.
12278 &quot;classificationRationale&quot;: &quot;A String&quot;, # The rationale provided by the Loss Analysis Classifier for why this failure maps to this specific Loss Cluster. e.g., &quot;The agent claimed an action without a tool call, matching &#x27;Hallucination of Action&#x27;.&quot;
12279 &quot;rubricId&quot;: &quot;A String&quot;, # The unique ID of the rubric (if available from the metric source). Clients use this ID to query the corresponding rubric verdict.
12280 },
12281 ],
12282 },
12283 ],
12284 &quot;itemCount&quot;: 42, # The total number of EvaluationItems falling into this cluster.
12285 &quot;taxonomyEntry&quot;: { # Defines a specific entry in the loss pattern taxonomy. # The structured definition of the loss taxonomy for this cluster.
12286 &quot;description&quot;: &quot;A String&quot;, # A detailed description of this loss pattern. Example: &quot;The agent verbally confirms an action without executing the tool.&quot;
12287 &quot;l1Category&quot;: &quot;A String&quot;, # The primary category of the loss (e.g., &quot;Hallucination&quot;, &quot;Tool Calling&quot;). This field is typically required.
12288 &quot;l2Category&quot;: &quot;A String&quot;, # The secondary category of the loss (e.g., &quot;Hallucination of Action&quot;, &quot;Incorrect Tool Selection&quot;).
12289 },
12290 },
12291 ],
12292 &quot;config&quot;: { # Configuration for the loss analysis job. # The configuration used to generate this analysis.
12293 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
12294 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
12295 },
12296 },
12297 ],
12298 &quot;summaryMetrics&quot;: { # The summary metrics for the evaluation run. # Optional. The summary metrics for the evaluation run.
12299 &quot;failedItems&quot;: 42, # Optional. The number of items that failed to be evaluated.
12300 &quot;metrics&quot;: { # Optional. Map of metric name to metric value.
12301 &quot;a_key&quot;: &quot;&quot;,
12302 },
12303 &quot;totalItems&quot;: 42, # Optional. The total number of items that were evaluated.
12304 },
12305 },
12306 &quot;evaluationSetSnapshot&quot;: &quot;A String&quot;, # Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it&#x27;s the sampled BigQuery dataset.
12307 &quot;inferenceConfigs&quot;: { # Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.
12308 &quot;a_key&quot;: { # Defines the configuration for a candidate model or agent being evaluated. `InferenceConfig` encapsulates all the necessary information to invoke or scrape the candidate during the evaluation run. This includes direct model inference parameters, agent execution settings, and multi-turn scraping configurations (such as user simulators). It serves as the primary representation of the candidate across different stages of the evaluation process.
12309 &quot;agentConfig&quot;: { # Configuration that describes an agent. # Optional. Deprecated: Use `agents` instead. Agent config used to generate responses.
12310 &quot;developerInstruction&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Optional. The developer instruction for the agent.
12311 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
12312 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
12313 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
12314 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
12315 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
12316 },
12317 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
12318 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
12319 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
12320 },
12321 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
12322 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12323 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
12324 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12325 },
12326 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
12327 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
12328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12329 },
12330 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
12331 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
12332 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
12333 { # Partial argument value of the function call.
12334 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
12335 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
12336 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
12337 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
12338 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
12339 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
12340 },
12341 ],
12342 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
12343 },
12344 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
12345 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
12346 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
12347 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
12348 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
12349 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
12350 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12351 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
12352 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12353 },
12354 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
12355 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
12356 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
12357 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12358 },
12359 },
12360 ],
12361 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
12362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12363 },
12364 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
12365 },
12366 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
12367 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
12368 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
12369 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12370 },
12371 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
12372 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
12373 },
12374 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
12375 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
12376 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
12377 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
12378 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
12379 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
12380 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
12381 },
12382 },
12383 ],
12384 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
12385 },
12386 &quot;tools&quot;: [ # Optional. The tools available to the agent.
12387 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
12388 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
12389 },
12390 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
12391 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
12392 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
12393 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
12394 &quot;A String&quot;,
12395 ],
12396 },
12397 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
12398 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
12399 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
12400 &quot;A String&quot;,
12401 ],
12402 },
12403 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
12404 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
12405 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
12406 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12407 },
12408 },
12409 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
12410 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
12411 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
12412 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
12413 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
12414 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
12415 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
12416 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
12417 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12418 ],
12419 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
12420 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
12421 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12422 },
12423 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
12424 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
12425 &quot;A String&quot;,
12426 ],
12427 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
12428 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
12429 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
12430 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
12431 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
12432 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
12433 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
12434 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
12435 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
12436 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
12437 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
12438 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
12439 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
12440 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
12441 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12442 },
12443 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
12444 &quot;A String&quot;,
12445 ],
12446 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
12447 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
12448 &quot;A String&quot;,
12449 ],
12450 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
12451 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
12452 },
12453 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
12454 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
12455 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
12456 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
12457 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12458 ],
12459 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
12460 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
12461 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12462 },
12463 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
12464 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
12465 &quot;A String&quot;,
12466 ],
12467 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
12468 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
12469 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
12470 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
12471 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
12472 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
12473 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
12474 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
12475 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
12476 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
12477 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
12478 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
12479 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
12480 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
12481 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12482 },
12483 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
12484 &quot;A String&quot;,
12485 ],
12486 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
12487 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
12488 &quot;A String&quot;,
12489 ],
12490 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
12491 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
12492 },
12493 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
12494 },
12495 ],
12496 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
12497 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
12498 },
12499 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
12500 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
12501 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
12502 &quot;A String&quot;,
12503 ],
12504 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
12505 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
12506 },
12507 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
12508 },
12509 },
12510 },
12511 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
12512 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
12513 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
12514 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
12515 },
12516 },
12517 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
12518 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
12519 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
12520 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12521 },
12522 },
12523 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
12524 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
12525 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
12526 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
12527 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
12528 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
12529 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
12530 },
12531 },
12532 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
12533 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
12534 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
12535 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12536 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
12537 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
12538 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
12539 },
12540 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
12541 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
12542 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
12543 },
12544 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
12545 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12546 },
12547 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
12548 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12549 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
12550 },
12551 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
12552 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12553 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
12554 },
12555 },
12556 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
12557 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
12558 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
12559 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
12560 },
12561 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
12562 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
12563 },
12564 },
12565 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
12566 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
12567 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
12568 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12569 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
12570 },
12571 ],
12572 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12573 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
12574 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
12575 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
12576 },
12577 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
12578 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
12579 &quot;A String&quot;,
12580 ],
12581 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
12582 { # The definition of the Rag resource.
12583 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
12584 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
12585 &quot;A String&quot;,
12586 ],
12587 },
12588 ],
12589 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
12590 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
12591 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
12592 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
12593 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
12594 },
12595 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
12596 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
12597 },
12598 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
12599 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
12600 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
12601 },
12602 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
12603 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
12604 },
12605 },
12606 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
12607 },
12608 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
12609 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
12610 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
12611 },
12612 },
12613 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
12614 },
12615 },
12616 ],
12617 },
12618 &quot;agentRunConfig&quot;: { # Configuration for Agent Run. # Optional. Agent run config.
12619 &quot;agentEngine&quot;: &quot;A String&quot;, # Optional. The resource name of the Agent Engine. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} For example: projects/123/locations/us-central1/reasoningEngines/456
12620 &quot;sessionInput&quot;: { # Session input to run an Agent. # Optional. The session input to get agent running results.
12621 &quot;parameters&quot;: { # Optional. Additional parameters for the session, like app_name, etc. For example, {&quot;app_name&quot;: &quot;my-app&quot;}.
12622 &quot;a_key&quot;: &quot;A String&quot;,
12623 },
12624 &quot;sessionState&quot;: { # Optional. Session specific memory which stores key conversation points.
12625 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12626 },
12627 &quot;userId&quot;: &quot;A String&quot;, # Optional. The user id for the agent session. The ID can be up to 128 characters long.
12628 },
12629 &quot;userSimulatorConfig&quot;: { # Used for multi-turn agent scraping. Contains configuration for a user simulator that uses an LLM to generate messages on behalf of the user. # The configuration for a user simulator that uses an LLM to generate messages on behalf of the user.
12630 &quot;maxTurn&quot;: 42, # Maximum number of invocations allowed by the multi-turn agent scraping. This property allows us to stop a run-off conversation, where the agent and the user simulator get into a never ending loop. The initial fixed prompt is also counted as an invocation.
12631 &quot;modelConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # The configuration for the model.
12632 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
12633 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
12634 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
12635 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
12636 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
12637 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
12638 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
12639 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
12640 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
12641 },
12642 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
12643 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
12644 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
12645 },
12646 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
12647 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
12648 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
12649 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
12650 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
12651 },
12652 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
12653 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
12654 { # Configuration for the model to configure output formatting and delivery.
12655 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
12656 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
12657 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
12658 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
12659 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
12660 },
12661 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
12662 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
12663 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
12664 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
12665 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
12666 },
12667 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
12668 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
12669 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
12670 },
12671 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
12672 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
12673 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
12674 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
12675 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
12676 },
12677 },
12678 ],
12679 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
12680 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
12681 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
12682 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
12683 &quot;A String&quot;,
12684 ],
12685 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
12686 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
12687 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
12688 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12689 ],
12690 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
12691 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
12692 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12693 },
12694 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
12695 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
12696 &quot;A String&quot;,
12697 ],
12698 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
12699 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
12700 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
12701 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
12702 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
12703 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
12704 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
12705 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
12706 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
12707 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
12708 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
12709 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
12710 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
12711 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
12712 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12713 },
12714 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
12715 &quot;A String&quot;,
12716 ],
12717 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
12718 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
12719 &quot;A String&quot;,
12720 ],
12721 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
12722 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
12723 },
12724 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
12725 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
12726 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
12727 },
12728 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
12729 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
12730 },
12731 },
12732 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
12733 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
12734 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
12735 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
12736 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
12737 { # Configuration for a single speaker in a multi-speaker setup.
12738 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
12739 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
12740 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
12741 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
12742 },
12743 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
12744 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
12745 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
12746 },
12747 },
12748 },
12749 ],
12750 },
12751 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
12752 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
12753 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
12754 },
12755 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
12756 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
12757 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
12758 },
12759 },
12760 },
12761 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
12762 &quot;A String&quot;,
12763 ],
12764 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
12765 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
12766 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
12767 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
12768 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
12769 },
12770 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
12771 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
12772 },
12773 &quot;modelName&quot;: &quot;A String&quot;, # The model name to use for multi-turn agent scraping to get next user message, e.g. &quot;gemini-3-flash-preview&quot;.
12774 },
12775 },
12776 &quot;agents&quot;: { # Optional. Contains the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
12777 &quot;a_key&quot;: { # Represents configuration for an Agent.
12778 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
12779 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
12780 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
12781 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
12782 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
12783 &quot;A String&quot;,
12784 ],
12785 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
12786 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
12787 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
12788 },
12789 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
12790 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
12791 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
12792 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
12793 &quot;A String&quot;,
12794 ],
12795 },
12796 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
12797 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
12798 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
12799 &quot;A String&quot;,
12800 ],
12801 },
12802 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
12803 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
12804 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
12805 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12806 },
12807 },
12808 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
12809 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
12810 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
12811 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
12812 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
12813 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
12814 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
12815 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
12816 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12817 ],
12818 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
12819 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
12820 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12821 },
12822 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
12823 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
12824 &quot;A String&quot;,
12825 ],
12826 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
12827 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
12828 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
12829 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
12830 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
12831 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
12832 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
12833 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
12834 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
12835 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
12836 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
12837 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
12838 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
12839 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
12840 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12841 },
12842 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
12843 &quot;A String&quot;,
12844 ],
12845 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
12846 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
12847 &quot;A String&quot;,
12848 ],
12849 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
12850 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
12851 },
12852 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
12853 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
12854 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
12855 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
12856 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12857 ],
12858 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
12859 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
12860 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12861 },
12862 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
12863 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
12864 &quot;A String&quot;,
12865 ],
12866 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
12867 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
12868 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
12869 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
12870 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
12871 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
12872 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
12873 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
12874 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
12875 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
12876 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
12877 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
12878 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
12879 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
12880 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
12881 },
12882 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
12883 &quot;A String&quot;,
12884 ],
12885 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
12886 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
12887 &quot;A String&quot;,
12888 ],
12889 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
12890 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
12891 },
12892 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
12893 },
12894 ],
12895 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
12896 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
12897 },
12898 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
12899 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
12900 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
12901 &quot;A String&quot;,
12902 ],
12903 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
12904 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
12905 },
12906 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
12907 },
12908 },
12909 },
12910 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
12911 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
12912 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
12913 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
12914 },
12915 },
12916 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
12917 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
12918 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
12919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
12920 },
12921 },
12922 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
12923 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
12924 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
12925 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
12926 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
12927 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
12928 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
12929 },
12930 },
12931 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
12932 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
12933 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
12934 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12935 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
12936 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
12937 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
12938 },
12939 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
12940 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
12941 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
12942 },
12943 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
12944 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
12945 },
12946 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
12947 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12948 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
12949 },
12950 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
12951 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
12952 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
12953 },
12954 },
12955 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
12956 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
12957 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
12958 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
12959 },
12960 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
12961 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
12962 },
12963 },
12964 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
12965 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
12966 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
12967 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12968 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
12969 },
12970 ],
12971 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
12972 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
12973 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
12974 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
12975 },
12976 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
12977 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
12978 &quot;A String&quot;,
12979 ],
12980 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
12981 { # The definition of the Rag resource.
12982 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
12983 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
12984 &quot;A String&quot;,
12985 ],
12986 },
12987 ],
12988 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
12989 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
12990 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
12991 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
12992 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
12993 },
12994 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
12995 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
12996 },
12997 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
12998 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
12999 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
13000 },
13001 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
13002 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
13003 },
13004 },
13005 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
13006 },
13007 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
13008 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
13009 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
13010 },
13011 },
13012 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
13013 },
13014 },
13015 ],
13016 },
13017 },
13018 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Generation config.
13019 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13020 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13021 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13022 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13023 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13024 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13025 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13026 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13027 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13028 },
13029 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13030 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13031 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13032 },
13033 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13034 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13035 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13036 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13037 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13038 },
13039 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13040 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13041 { # Configuration for the model to configure output formatting and delivery.
13042 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13043 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13044 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13045 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13046 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13047 },
13048 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13049 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13050 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13051 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13052 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13053 },
13054 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13055 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13056 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13057 },
13058 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13059 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13060 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13061 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13062 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13063 },
13064 },
13065 ],
13066 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13067 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13068 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13069 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13070 &quot;A String&quot;,
13071 ],
13072 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13073 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13074 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13075 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13076 ],
13077 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13078 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13079 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13080 },
13081 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13082 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13083 &quot;A String&quot;,
13084 ],
13085 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13086 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13087 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13088 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13089 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13090 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13091 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13092 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13093 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13094 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13095 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13096 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13097 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13098 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13099 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13100 },
13101 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13102 &quot;A String&quot;,
13103 ],
13104 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13105 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13106 &quot;A String&quot;,
13107 ],
13108 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13109 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13110 },
13111 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13112 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13113 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13114 },
13115 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13116 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13117 },
13118 },
13119 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13120 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13121 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13122 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13123 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13124 { # Configuration for a single speaker in a multi-speaker setup.
13125 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13126 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13127 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13128 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13129 },
13130 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13131 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13132 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13133 },
13134 },
13135 },
13136 ],
13137 },
13138 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
13139 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13140 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13141 },
13142 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13143 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13144 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13145 },
13146 },
13147 },
13148 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
13149 &quot;A String&quot;,
13150 ],
13151 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
13152 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
13153 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
13154 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
13155 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
13156 },
13157 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
13158 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
13159 },
13160 &quot;model&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and Llama third-party models are also supported through Model Garden. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Third-party model formats: `projects/{project}/locations/{location}/publishers/anthropic/models/{model}` or `projects/{project}/locations/{location}/publishers/llama/models/{model}` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13161 &quot;parallelism&quot;: 42, # Optional. The parallelism of the evaluation run for the inference step. If not specified, the default parallelism will be used.
13162 },
13163 },
13164 &quot;labels&quot;: { # Optional. Labels for the evaluation run.
13165 &quot;a_key&quot;: &quot;A String&quot;,
13166 },
13167 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.
13168 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`
13169 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the evaluation run.
13170 }</pre>
13171 </div>
13172
13173 <div class="method">
13174 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
13175 <pre>Lists Evaluation Runs.
13176
13177 Args:
13178 parent: string, Required. The resource name of the Location from which to list the Evaluation Runs. Format: `projects/{project}/locations/{location}` (required)
13179 filter: string, Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).
13180 orderBy: string, Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.
13181 pageSize: integer, Optional. The maximum number of Evaluation Runs to return.
13182 pageToken: string, Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to retrieve the subsequent page.
13183 x__xgafv: string, V1 error format.
13184 Allowed values
13185 1 - v1 error format
13186 2 - v2 error format
13187
13188 Returns:
13189 An object of the form:
13190
13191 { # Response message for EvaluationManagementService.ListEvaluationRuns.
13192 &quot;evaluationRuns&quot;: [ # List of EvaluationRuns in the requested page.
13193 { # EvaluationRun is a resource that represents a single evaluation run, which includes a set of prompts, model responses, evaluation configuration and the resulting metrics.
13194 &quot;completionTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was completed.
13195 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the evaluation run was created.
13196 &quot;dataSource&quot;: { # The data source for the evaluation run. # Required. The data source for the evaluation run.
13197 &quot;bigqueryRequestSet&quot;: { # The request set for the evaluation run. # Evaluation data in bigquery.
13198 &quot;candidateResponseColumns&quot;: { # Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.
13199 &quot;a_key&quot;: &quot;A String&quot;,
13200 },
13201 &quot;promptColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format.
13202 &quot;rubricsColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the rubrics. This is in evaluation_rubric.RubricGroup format.
13203 &quot;samplingConfig&quot;: { # The sampling config. # Optional. The sampling config for the bigquery resource.
13204 &quot;samplingCount&quot;: 42, # Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100.
13205 &quot;samplingDuration&quot;: &quot;A String&quot;, # Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0.
13206 &quot;samplingMethod&quot;: &quot;A String&quot;, # Optional. The sampling method to use.
13207 },
13208 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId
13209 },
13210 &quot;evaluationSet&quot;: &quot;A String&quot;, # The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
13211 },
13212 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Evaluation Run.
13213 &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. Only populated when the evaluation run&#x27;s state is FAILED or CANCELLED.
13214 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
13215 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
13216 {
13217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
13218 },
13219 ],
13220 &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.
13221 },
13222 &quot;evaluationConfig&quot;: { # The Evalution configuration used for the evaluation run. # Optional. The configuration used for the evaluation. Optional when analysis_configs is provided.
13223 &quot;autoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. The autorater config for the evaluation run.
13224 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13225 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
13226 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13227 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13228 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13229 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13230 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13231 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13232 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13233 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13234 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13235 },
13236 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13237 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13238 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13239 },
13240 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13241 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13242 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13243 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13244 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13245 },
13246 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13247 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13248 { # Configuration for the model to configure output formatting and delivery.
13249 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13250 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13251 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13252 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13253 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13254 },
13255 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13256 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13257 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13258 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13259 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13260 },
13261 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13262 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13263 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13264 },
13265 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13266 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13267 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13268 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13269 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13270 },
13271 },
13272 ],
13273 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13274 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13275 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13276 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13277 &quot;A String&quot;,
13278 ],
13279 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13280 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13281 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13282 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13283 ],
13284 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13285 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13286 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13287 },
13288 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13289 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13290 &quot;A String&quot;,
13291 ],
13292 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13293 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13294 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13295 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13296 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13297 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13298 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13299 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13300 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13301 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13302 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13303 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13304 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13305 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13306 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13307 },
13308 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13309 &quot;A String&quot;,
13310 ],
13311 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13312 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13313 &quot;A String&quot;,
13314 ],
13315 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13316 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13317 },
13318 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13319 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13320 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13321 },
13322 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13323 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13324 },
13325 },
13326 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13327 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13328 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13329 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13330 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13331 { # Configuration for a single speaker in a multi-speaker setup.
13332 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13333 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13334 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13335 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13336 },
13337 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13338 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13339 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13340 },
13341 },
13342 },
13343 ],
13344 },
13345 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
13346 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13347 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13348 },
13349 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13350 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13351 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13352 },
13353 },
13354 },
13355 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
13356 &quot;A String&quot;,
13357 ],
13358 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
13359 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
13360 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
13361 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
13362 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
13363 },
13364 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
13365 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
13366 },
13367 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
13368 },
13369 &quot;datasetCustomMetrics&quot;: [ # Optional. Specifications for custom dataset-level aggregations.
13370 { # Defines a custom dataset-level aggregation.
13371 &quot;aggregationFunction&quot;: &quot;A String&quot;, # Required. The Python code string containing the aggregation function. Expected function signature: `def aggregate(instances: list[dict[str, Any]]) -&gt; dict[str, float]:` The `instances` argument is a list of dictionaries, where each dictionary represents a single evaluation result item. The structure of each dictionary corresponds to the fields in the `EvaluationResult` message. This includes: - `&quot;request&quot;`: Contains the original input data and model inputs (from `EvaluationResult.EvaluationRequest`). - `&quot;candidate_results&quot;`: Contains the results of any instance-level metrics (from `EvaluationResult.CandidateResults`). Example of a single item in the `instances` list: { &quot;request&quot;: { &quot;prompt&quot;: {&quot;text&quot;: &quot;What is the capital of France?&quot;}, &quot;golden_response&quot;: {&quot;text&quot;: &quot;Paris&quot;}, &quot;candidate_responses&quot;: [{&quot;candidate&quot;: &quot;model-v1&quot;, &quot;text&quot;: &quot;Paris&quot;}] }, &quot;candidate_results&quot;: [ {&quot;metric&quot;: &quot;exact_match&quot;, &quot;score&quot;: 1.0}, {&quot;metric&quot;: &quot;bleu&quot;, &quot;score&quot;: 0.9} ] }
13372 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A display name for this custom summary metric. Used to prefix keys in the output summaryMetrics map. If not provided, a default name like &quot;dataset_custom_metric_1&quot;, &quot;dataset_custom_metric_2&quot;, etc., will be generated based on the order in the repeated field.
13373 },
13374 ],
13375 &quot;lossAnalysisConfig&quot;: [ # Optional. Specifications for loss analysis. Each config can be specified for one metric.
13376 { # Configuration for the loss analysis job.
13377 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
13378 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
13379 },
13380 ],
13381 &quot;metrics&quot;: [ # Optional. The metrics to be calculated in the evaluation run. Required when analysis_configs is not set.
13382 { # The metric used for evaluation runs.
13383 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
13384 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
13385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13386 },
13387 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
13388 },
13389 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
13390 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
13391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13392 },
13393 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater).
13394 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13395 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
13396 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13397 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13398 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13399 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13400 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13401 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13402 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13403 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13404 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13405 },
13406 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13407 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13408 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13409 },
13410 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13411 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13412 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13413 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13414 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13415 },
13416 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13417 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13418 { # Configuration for the model to configure output formatting and delivery.
13419 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13420 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13421 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13422 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13423 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13424 },
13425 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13426 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13427 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13428 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13429 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13430 },
13431 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13432 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13433 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13434 },
13435 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13436 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13437 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13438 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13439 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13440 },
13441 },
13442 ],
13443 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13444 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13445 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13446 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13447 &quot;A String&quot;,
13448 ],
13449 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13450 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13451 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13452 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13453 ],
13454 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13455 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13456 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13457 },
13458 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13459 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13460 &quot;A String&quot;,
13461 ],
13462 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13463 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13464 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13465 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13466 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13467 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13468 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13469 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13470 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13471 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13472 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13473 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13474 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13475 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13476 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13477 },
13478 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13479 &quot;A String&quot;,
13480 ],
13481 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13482 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13483 &quot;A String&quot;,
13484 ],
13485 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13486 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13487 },
13488 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13489 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13490 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13491 },
13492 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13493 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13494 },
13495 },
13496 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13497 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13498 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13499 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13500 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13501 { # Configuration for a single speaker in a multi-speaker setup.
13502 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13503 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13504 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13505 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13506 },
13507 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13508 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13509 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13510 },
13511 },
13512 },
13513 ],
13514 },
13515 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
13516 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13517 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13518 },
13519 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13520 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13521 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13522 },
13523 },
13524 },
13525 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
13526 &quot;A String&quot;,
13527 ],
13528 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
13529 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
13530 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
13531 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
13532 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
13533 },
13534 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
13535 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
13536 },
13537 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
13538 },
13539 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
13540 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
13541 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
13542 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
13543 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13544 },
13545 },
13546 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
13547 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
13548 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
13549 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13550 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
13551 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13552 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13553 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13554 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13555 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13556 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13557 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13558 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13559 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13560 },
13561 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13562 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13563 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13564 },
13565 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13566 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13567 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13568 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13569 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13570 },
13571 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13572 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13573 { # Configuration for the model to configure output formatting and delivery.
13574 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13575 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13576 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13577 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13578 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13579 },
13580 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13581 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13582 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13583 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13584 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13585 },
13586 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13587 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13588 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13589 },
13590 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13591 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13592 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13593 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13594 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13595 },
13596 },
13597 ],
13598 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13599 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13600 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13601 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13602 &quot;A String&quot;,
13603 ],
13604 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13605 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13606 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13607 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13608 ],
13609 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13610 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13611 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13612 },
13613 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13614 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13615 &quot;A String&quot;,
13616 ],
13617 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13618 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13619 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13620 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13621 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13622 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13623 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13624 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13625 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13626 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13627 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13628 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13629 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13630 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13631 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13632 },
13633 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13634 &quot;A String&quot;,
13635 ],
13636 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13637 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13638 &quot;A String&quot;,
13639 ],
13640 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13641 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13642 },
13643 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13644 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13645 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13646 },
13647 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13648 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13649 },
13650 },
13651 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13652 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13653 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13654 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13655 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13656 { # Configuration for a single speaker in a multi-speaker setup.
13657 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13658 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13659 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13660 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13661 },
13662 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13663 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13664 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13665 },
13666 },
13667 },
13668 ],
13669 },
13670 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
13671 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13672 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13673 },
13674 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13675 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13676 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13677 },
13678 },
13679 },
13680 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
13681 &quot;A String&quot;,
13682 ],
13683 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
13684 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
13685 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
13686 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
13687 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
13688 },
13689 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
13690 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
13691 },
13692 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
13693 },
13694 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
13695 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
13696 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
13697 &quot;A String&quot;,
13698 ],
13699 },
13700 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
13701 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
13702 },
13703 &quot;metric&quot;: &quot;A String&quot;, # Required. The name of the metric.
13704 &quot;metricConfig&quot;: { # The metric used for running evaluations. # The metric config.
13705 &quot;aggregationMetrics&quot;: [ # Optional. The aggregation metrics to use.
13706 &quot;A String&quot;,
13707 ],
13708 &quot;bleuSpec&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. # Spec for bleu metric.
13709 &quot;useEffectiveOrder&quot;: True or False, # Optional. Whether to use_effective_order to compute bleu score.
13710 },
13711 &quot;computationBasedMetricSpec&quot;: { # Specification for a computation based metric. # Spec for a computation based metric.
13712 &quot;parameters&quot;: { # Optional. A map of parameters for the metric, e.g. {&quot;rouge_type&quot;: &quot;rougeL&quot;}.
13713 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13714 },
13715 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the computation based metric.
13716 },
13717 &quot;customCodeExecutionSpec&quot;: { # Specificies a metric that is populated by evaluating user-defined Python code. # Spec for Custom Code Execution metric.
13718 &quot;evaluationFunction&quot;: &quot;A String&quot;, # Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -&gt; float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=&quot;The answer is 4.&quot;), reference=EvaluationInstance.InstanceData(text=&quot;4&quot;) ) ``` Example converted input: ``` { &#x27;response&#x27;: {&#x27;text&#x27;: &#x27;The answer is 4.&#x27;}, &#x27;reference&#x27;: {&#x27;text&#x27;: &#x27;4&#x27;} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -&gt; float: if instance&#x27;response&#x27; == instance&#x27;reference&#x27;: return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function.
13719 },
13720 &quot;exactMatchSpec&quot;: { # Spec for exact match metric - returns 1 if prediction and reference exactly matches, otherwise 0. # Spec for exact match metric.
13721 },
13722 &quot;llmBasedMetricSpec&quot;: { # Specification for an LLM based metric. # Spec for an LLM based metric.
13723 &quot;additionalConfig&quot;: { # Optional. Optional additional configuration for the metric.
13724 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13725 },
13726 &quot;judgeAutoraterConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Optional. Optional configuration for the judge LLM (Autorater).
13727 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13728 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
13729 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
13730 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13731 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13732 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13733 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13734 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13735 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13736 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13737 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13738 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13739 },
13740 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13741 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13742 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13743 },
13744 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13745 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13746 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13747 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13748 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13749 },
13750 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13751 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13752 { # Configuration for the model to configure output formatting and delivery.
13753 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13754 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13755 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13756 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13757 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13758 },
13759 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13760 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13761 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13762 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13763 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13764 },
13765 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13766 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13767 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13768 },
13769 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13770 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13771 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13772 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13773 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13774 },
13775 },
13776 ],
13777 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13778 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13779 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13780 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13781 &quot;A String&quot;,
13782 ],
13783 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13784 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13785 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13786 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13787 ],
13788 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13789 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13790 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13791 },
13792 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13793 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13794 &quot;A String&quot;,
13795 ],
13796 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13797 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13798 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13799 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13800 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13801 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13802 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13803 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13804 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13805 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13806 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13807 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13808 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13809 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13810 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13811 },
13812 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13813 &quot;A String&quot;,
13814 ],
13815 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13816 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13817 &quot;A String&quot;,
13818 ],
13819 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13820 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13821 },
13822 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13823 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13824 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13825 },
13826 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13827 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13828 },
13829 },
13830 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13831 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13832 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13833 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13834 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13835 { # Configuration for a single speaker in a multi-speaker setup.
13836 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13837 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13838 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13839 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13840 },
13841 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13842 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13843 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13844 },
13845 },
13846 },
13847 ],
13848 },
13849 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
13850 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13851 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
13852 },
13853 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
13854 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
13855 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
13856 },
13857 },
13858 },
13859 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
13860 &quot;A String&quot;,
13861 ],
13862 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
13863 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
13864 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
13865 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
13866 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
13867 },
13868 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
13869 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
13870 },
13871 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
13872 },
13873 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Template for the prompt sent to the judge model.
13874 &quot;predefinedRubricGenerationSpec&quot;: { # The spec for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
13875 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
13876 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
13877 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
13878 },
13879 },
13880 &quot;resultParserConfig&quot;: { # Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters. # Optional. The parser config for the metric result.
13881 &quot;customCodeParserConfig&quot;: { # Configuration for parsing the LLM response using custom code. # Optional. Use custom code to parse the LLM response.
13882 &quot;parsingFunction&quot;: &quot;A String&quot;, # Required. Python function for parsing results. The function should be defined within this string. The function takes a list of strings (LLM responses) and should return either a list of dictionaries (for rubrics) or a single dictionary (for a metric result). Example function signature: def parse(responses: list[str]) -&gt; list[dict[str, Any]] | dict[str, Any]: When parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric. Example for rubrics: [ { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is factual.&quot;}}, &quot;type&quot;: &quot;FACTUALITY&quot;, &quot;importance&quot;: &quot;HIGH&quot; }, { &quot;content&quot;: {&quot;property&quot;: {&quot;description&quot;: &quot;The response is fluent.&quot;}}, &quot;type&quot;: &quot;FLUENCY&quot;, &quot;importance&quot;: &quot;MEDIUM&quot; } ] When parsing critique results, return a dictionary representing a MetricResult. Example for a metric result: { &quot;score&quot;: 0.8, &quot;explanation&quot;: &quot;The model followed most instructions.&quot;, &quot;rubric_verdicts&quot;: [...] } ... code for result extraction and aggregation
13883 },
13884 },
13885 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
13886 &quot;modelConfig&quot;: { # The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset. # Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
13887 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
13888 &quot;flipEnabled&quot;: True or False, # Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
13889 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
13890 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
13891 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
13892 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
13893 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
13894 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
13895 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
13896 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
13897 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
13898 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
13899 },
13900 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
13901 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
13902 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
13903 },
13904 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
13905 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
13906 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
13907 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
13908 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
13909 },
13910 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
13911 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
13912 { # Configuration for the model to configure output formatting and delivery.
13913 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
13914 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
13915 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13916 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
13917 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
13918 },
13919 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
13920 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
13921 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13922 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
13923 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
13924 },
13925 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
13926 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
13927 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
13928 },
13929 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
13930 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
13931 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
13932 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
13933 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
13934 },
13935 },
13936 ],
13937 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
13938 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
13939 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
13940 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
13941 &quot;A String&quot;,
13942 ],
13943 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
13944 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
13945 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
13946 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13947 ],
13948 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
13949 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
13950 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13951 },
13952 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
13953 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
13954 &quot;A String&quot;,
13955 ],
13956 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
13957 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
13958 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
13959 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
13960 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
13961 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
13962 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
13963 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
13964 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
13965 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
13966 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
13967 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
13968 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
13969 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
13970 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
13971 },
13972 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
13973 &quot;A String&quot;,
13974 ],
13975 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
13976 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
13977 &quot;A String&quot;,
13978 ],
13979 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
13980 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
13981 },
13982 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
13983 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
13984 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
13985 },
13986 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
13987 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
13988 },
13989 },
13990 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
13991 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
13992 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
13993 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
13994 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
13995 { # Configuration for a single speaker in a multi-speaker setup.
13996 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
13997 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
13998 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
13999 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14000 },
14001 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14002 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14003 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14004 },
14005 },
14006 },
14007 ],
14008 },
14009 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
14010 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14011 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14012 },
14013 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14014 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14015 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14016 },
14017 },
14018 },
14019 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
14020 &quot;A String&quot;,
14021 ],
14022 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
14023 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
14024 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
14025 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
14026 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
14027 },
14028 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
14029 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
14030 },
14031 &quot;samplingCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
14032 },
14033 &quot;promptTemplate&quot;: &quot;A String&quot;, # Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
14034 &quot;rubricContentType&quot;: &quot;A String&quot;, # The type of rubric content to be generated.
14035 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
14036 &quot;A String&quot;,
14037 ],
14038 },
14039 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
14040 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for the judge model.
14041 },
14042 &quot;metadata&quot;: { # Metadata about the metric, used for visualization and organization. # Optional. Metadata about the metric, used for visualization and organization.
14043 &quot;otherMetadata&quot;: { # Optional. Flexible metadata for user-defined attributes.
14044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14045 },
14046 &quot;scoreRange&quot;: { # The range of possible scores for this metric, used for plotting. # Optional. The range of possible scores for this metric, used for plotting.
14047 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the score explaining the directionality etc.
14048 &quot;max&quot;: 3.14, # Required. The maximum value of the score range (inclusive).
14049 &quot;min&quot;: 3.14, # Required. The minimum value of the score range (inclusive).
14050 &quot;step&quot;: 3.14, # Optional. The distance between discrete steps in the range. If unset, the range is assumed to be continuous.
14051 },
14052 &quot;title&quot;: &quot;A String&quot;, # Optional. The user-friendly name for the metric. If not set for a registered metric, it will default to the metric&#x27;s display name.
14053 },
14054 &quot;pairwiseMetricSpec&quot;: { # Spec for pairwise metric. # Spec for pairwise metric.
14055 &quot;baselineResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the baseline response.
14056 &quot;candidateResponseFieldName&quot;: &quot;A String&quot;, # Optional. The field name of the candidate response.
14057 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
14058 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
14059 },
14060 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pairwise metric.
14061 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pairwise metric.
14062 },
14063 &quot;pointwiseMetricSpec&quot;: { # Spec for pointwise metric. # Spec for pointwise metric.
14064 &quot;customOutputFormatConfig&quot;: { # Spec for custom output format configuration. # Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
14065 &quot;returnRawOutput&quot;: True or False, # Optional. Whether to return raw output.
14066 },
14067 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Required. Metric prompt template for pointwise metric.
14068 &quot;systemInstruction&quot;: &quot;A String&quot;, # Optional. System instructions for pointwise metric.
14069 },
14070 &quot;predefinedMetricSpec&quot;: { # The spec for a pre-defined metric. # The spec for a pre-defined metric.
14071 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
14072 &quot;metricSpecParameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
14073 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14074 },
14075 },
14076 &quot;rougeSpec&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. # Spec for rouge metric.
14077 &quot;rougeType&quot;: &quot;A String&quot;, # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
14078 &quot;splitSummaries&quot;: True or False, # Optional. Whether to split summaries while using rougeLsum.
14079 &quot;useStemmer&quot;: True or False, # Optional. Whether to use stemmer to compute rouge score.
14080 },
14081 },
14082 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. The resource name of the metric definition.
14083 &quot;predefinedMetricSpec&quot;: { # Specification for a pre-defined metric. # Spec for a pre-defined metric.
14084 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
14085 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
14086 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14087 },
14088 },
14089 &quot;rubricBasedMetricSpec&quot;: { # Specification for a metric that is based on rubrics. # Spec for rubric based metric.
14090 &quot;inlineRubrics&quot;: { # Defines a list of rubrics, used when providing rubrics inline. # Use rubrics provided directly in the spec.
14091 &quot;rubrics&quot;: [ # The list of rubrics.
14092 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
14093 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
14094 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
14095 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
14096 },
14097 },
14098 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
14099 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
14100 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
14101 },
14102 ],
14103 },
14104 &quot;judgeAutoraterConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided.
14105 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
14106 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
14107 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
14108 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
14109 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
14110 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
14111 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
14112 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
14113 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
14114 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
14115 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
14116 },
14117 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
14118 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
14119 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
14120 },
14121 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
14122 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
14123 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
14124 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
14125 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
14126 },
14127 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
14128 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
14129 { # Configuration for the model to configure output formatting and delivery.
14130 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
14131 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
14132 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14133 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
14134 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
14135 },
14136 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
14137 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
14138 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14139 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
14140 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
14141 },
14142 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
14143 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
14144 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
14145 },
14146 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
14147 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
14148 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14149 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
14150 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
14151 },
14152 },
14153 ],
14154 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
14155 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
14156 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
14157 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
14158 &quot;A String&quot;,
14159 ],
14160 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
14161 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14162 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14163 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14164 ],
14165 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14166 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14167 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14168 },
14169 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14170 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14171 &quot;A String&quot;,
14172 ],
14173 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14174 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14175 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14176 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14177 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14178 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14179 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14180 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14181 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14182 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14183 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14184 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14185 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14186 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14187 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14188 },
14189 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14190 &quot;A String&quot;,
14191 ],
14192 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14193 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14194 &quot;A String&quot;,
14195 ],
14196 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14197 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14198 },
14199 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
14200 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
14201 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
14202 },
14203 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
14204 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
14205 },
14206 },
14207 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
14208 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
14209 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
14210 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
14211 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
14212 { # Configuration for a single speaker in a multi-speaker setup.
14213 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
14214 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
14215 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14216 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14217 },
14218 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14219 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14220 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14221 },
14222 },
14223 },
14224 ],
14225 },
14226 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
14227 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14228 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14229 },
14230 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14231 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14232 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14233 },
14234 },
14235 },
14236 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
14237 &quot;A String&quot;,
14238 ],
14239 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
14240 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
14241 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
14242 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
14243 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
14244 },
14245 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
14246 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
14247 },
14248 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
14249 },
14250 &quot;metricPromptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used by the judge model to evaluate against rubrics.
14251 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics for evaluation using this specification.
14252 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
14253 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
14254 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
14255 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
14256 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
14257 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
14258 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
14259 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
14260 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
14261 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
14262 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
14263 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
14264 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
14265 },
14266 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
14267 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
14268 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
14269 },
14270 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
14271 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
14272 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
14273 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
14274 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
14275 },
14276 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
14277 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
14278 { # Configuration for the model to configure output formatting and delivery.
14279 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
14280 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
14281 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14282 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
14283 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
14284 },
14285 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
14286 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
14287 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14288 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
14289 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
14290 },
14291 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
14292 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
14293 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
14294 },
14295 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
14296 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
14297 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14298 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
14299 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
14300 },
14301 },
14302 ],
14303 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
14304 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
14305 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
14306 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
14307 &quot;A String&quot;,
14308 ],
14309 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
14310 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14311 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14312 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14313 ],
14314 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14315 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14316 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14317 },
14318 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14319 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14320 &quot;A String&quot;,
14321 ],
14322 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14323 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14324 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14325 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14326 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14327 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14328 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14329 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14330 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14331 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14332 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14333 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14334 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14335 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14336 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14337 },
14338 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14339 &quot;A String&quot;,
14340 ],
14341 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14342 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14343 &quot;A String&quot;,
14344 ],
14345 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14346 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14347 },
14348 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
14349 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
14350 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
14351 },
14352 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
14353 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
14354 },
14355 },
14356 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
14357 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
14358 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
14359 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
14360 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
14361 { # Configuration for a single speaker in a multi-speaker setup.
14362 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
14363 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
14364 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14365 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14366 },
14367 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14368 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14369 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14370 },
14371 },
14372 },
14373 ],
14374 },
14375 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
14376 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14377 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14378 },
14379 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14380 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14381 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14382 },
14383 },
14384 },
14385 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
14386 &quot;A String&quot;,
14387 ],
14388 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
14389 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
14390 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
14391 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
14392 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
14393 },
14394 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
14395 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
14396 },
14397 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
14398 },
14399 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
14400 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
14401 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
14402 &quot;A String&quot;,
14403 ],
14404 },
14405 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`.
14406 },
14407 },
14408 ],
14409 &quot;outputConfig&quot;: { # The output config for the evaluation run. # Optional. The output config for the evaluation run.
14410 &quot;bigqueryDestination&quot;: { # The BigQuery location for the output content. # BigQuery destination for evaluation output.
14411 &quot;outputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a project or table, up to 2000 characters long. When only the project is specified, the Dataset and Table is created. When the full table reference is specified, the Dataset must exist and table must not exist. Accepted forms: * BigQuery path. For example: `bq://projectId` or `bq://projectId.bqDatasetId` or `bq://projectId.bqDatasetId.bqTableId`.
14412 },
14413 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output is to be written to. # Cloud Storage destination for evaluation output.
14414 &quot;outputUriPrefix&quot;: &quot;A String&quot;, # Required. Google Cloud Storage URI to output directory. If the uri doesn&#x27;t end with &#x27;/&#x27;, a &#x27;/&#x27; will be automatically appended. The directory is created if it doesn&#x27;t exist.
14415 },
14416 },
14417 &quot;promptTemplate&quot;: { # Prompt template used for inference. # The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values.
14418 &quot;gcsUri&quot;: &quot;A String&quot;, # Prompt template stored in Cloud Storage. Format: &quot;gs://my-bucket/file-name.txt&quot;.
14419 &quot;promptTemplate&quot;: &quot;A String&quot;, # Inline prompt template. Template variables should be in the format &quot;{var_name}&quot;. Example: &quot;Translate the following from {source_lang} to {target_lang}: {text}&quot;
14420 },
14421 &quot;rubricConfigs&quot;: [ # Optional. The rubric configs for the evaluation run. They are used to generate rubrics which can be used by rubric-based metrics. Multiple rubric configs can be specified for rubric generation but only one rubric config can be used for a rubric-based metric. If more than one rubric config is provided, the evaluation metric must specify a rubric group key. Note that if a generation spec is specified on both a rubric config and an evaluation metric, the rubrics generated for the metric will be used for evaluation.
14422 { # Configuration for a rubric group to be generated/saved for evaluation.
14423 &quot;predefinedRubricGenerationSpec&quot;: { # Specification for a pre-defined metric. # Dynamically generate rubrics using a predefined spec.
14424 &quot;metricSpecName&quot;: &quot;A String&quot;, # Required. The name of a pre-defined metric, such as &quot;instruction_following_v1&quot; or &quot;text_quality_v1&quot;.
14425 &quot;parameters&quot;: { # Optional. The parameters needed to run the pre-defined metric.
14426 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14427 },
14428 },
14429 &quot;rubricGenerationSpec&quot;: { # Specification for how rubrics should be generated. # Dynamically generate rubrics using this specification.
14430 &quot;metricResourceName&quot;: &quot;A String&quot;, # Optional. Resource name of the metric definition.
14431 &quot;modelConfig&quot;: { # The autorater config used for the evaluation run. # Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
14432 &quot;autoraterModel&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
14433 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Configuration options for model generation and outputs.
14434 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
14435 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
14436 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
14437 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
14438 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
14439 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
14440 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
14441 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
14442 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
14443 },
14444 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
14445 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
14446 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
14447 },
14448 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
14449 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
14450 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
14451 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
14452 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
14453 },
14454 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
14455 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
14456 { # Configuration for the model to configure output formatting and delivery.
14457 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
14458 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
14459 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14460 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
14461 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
14462 },
14463 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
14464 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
14465 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14466 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
14467 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
14468 },
14469 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
14470 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
14471 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
14472 },
14473 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
14474 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
14475 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
14476 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
14477 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
14478 },
14479 },
14480 ],
14481 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
14482 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
14483 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
14484 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
14485 &quot;A String&quot;,
14486 ],
14487 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
14488 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14489 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14490 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14491 ],
14492 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14493 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14494 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14495 },
14496 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14497 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14498 &quot;A String&quot;,
14499 ],
14500 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14501 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14502 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14503 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14504 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14505 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14506 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14507 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14508 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14509 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14510 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14511 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14512 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14513 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14514 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14515 },
14516 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14517 &quot;A String&quot;,
14518 ],
14519 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14520 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14521 &quot;A String&quot;,
14522 ],
14523 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14524 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14525 },
14526 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
14527 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
14528 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
14529 },
14530 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
14531 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
14532 },
14533 },
14534 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
14535 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
14536 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
14537 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
14538 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
14539 { # Configuration for a single speaker in a multi-speaker setup.
14540 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
14541 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
14542 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14543 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14544 },
14545 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14546 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14547 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14548 },
14549 },
14550 },
14551 ],
14552 },
14553 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
14554 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
14555 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
14556 },
14557 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
14558 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
14559 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
14560 },
14561 },
14562 },
14563 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
14564 &quot;A String&quot;,
14565 ],
14566 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
14567 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
14568 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
14569 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
14570 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
14571 },
14572 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
14573 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
14574 },
14575 &quot;sampleCount&quot;: 42, # Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
14576 },
14577 &quot;promptTemplate&quot;: &quot;A String&quot;, # Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
14578 &quot;rubricContentType&quot;: &quot;A String&quot;, # Optional. The type of rubric content to be generated.
14579 &quot;rubricTypeOntology&quot;: [ # Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
14580 &quot;A String&quot;,
14581 ],
14582 },
14583 &quot;rubricGroupKey&quot;: &quot;A String&quot;, # Required. The key used to save the generated rubrics. If a generation spec is provided, this key will be used for the name of the generated rubric group. Otherwise, this key will be used to look up the existing rubric group on the evaluation item. Note that if a rubric group key is specified on both a rubric config and an evaluation metric, the key from the metric will be used to select the rubrics for evaluation.
14584 },
14585 ],
14586 },
14587 &quot;evaluationResults&quot;: { # The results of the evaluation run. # Output only. The results of the evaluation run. Only populated when the evaluation run&#x27;s state is SUCCEEDED.
14588 &quot;evaluationSet&quot;: &quot;A String&quot;, # The evaluation set where item level results are stored.
14589 &quot;lossAnalysisResults&quot;: [ # Output only. The results of the auto-loss analysis performed on the eval set associated with the run.
14590 { # The top-level result for loss analysis, stored within an EvalSet.
14591 &quot;analysisTime&quot;: &quot;A String&quot;, # The timestamp when this analysis was performed.
14592 &quot;clusters&quot;: [ # The list of identified loss clusters.
14593 { # Represents a semantic grouping of failures (e.g., &quot;Hallucination of Action&quot;).
14594 &quot;clusterId&quot;: &quot;A String&quot;, # Unique identifier for the loss cluster within the scope of the analysis result.
14595 &quot;examples&quot;: [ # A list of examples that belong to this cluster. This links the cluster back to the specific EvaluationItems and Rubrics.
14596 { # Represents a specific example of a loss pattern.
14597 &quot;evaluationItem&quot;: &quot;A String&quot;, # Reference to the persisted EvalItem resource name. Format: projects/.../locations/.../evaluationItems/{item_id} Used when analysis is run on an EvalSet.
14598 &quot;evaluationResult&quot;: { # Evaluation result. # The full evaluation result object provided inline. Used when the analysis is performed on ephemeral data (without an EvaluationSet).
14599 &quot;candidateResults&quot;: [ # Optional. The results for the metric.
14600 { # Result for a single candidate.
14601 &quot;additionalResults&quot;: &quot;&quot;, # Optional. Additional results for the metric.
14602 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.
14603 &quot;explanation&quot;: &quot;A String&quot;, # Optional. The explanation for the metric.
14604 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
14605 &quot;rubricVerdicts&quot;: [ # Optional. The rubric verdicts for the metric.
14606 { # Represents the verdict of an evaluation against a single rubric.
14607 &quot;evaluatedRubric&quot;: { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics. # Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
14608 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
14609 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
14610 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
14611 },
14612 },
14613 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
14614 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
14615 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
14616 },
14617 &quot;reasoning&quot;: &quot;A String&quot;, # Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
14618 &quot;verdict&quot;: True or False, # Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a &quot;Pass&quot;, `false` indicates a &quot;Fail&quot;.
14619 },
14620 ],
14621 &quot;score&quot;: 3.14, # Optional. The score for the metric.
14622 },
14623 ],
14624 &quot;evaluationRequest&quot;: &quot;A String&quot;, # Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}
14625 &quot;evaluationRun&quot;: &quot;A String&quot;, # Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}
14626 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation result.
14627 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric that was evaluated.
14628 &quot;request&quot;: { # A single evaluation request supporting input for both single-turn model generation and multi-turn agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at least one of the `candidate_responses` must contain `agent_data`. # Required. The request that was evaluated.
14629 &quot;candidateResponses&quot;: [ # Optional. Responses from model under test and other baseline models for comparison.
14630 { # Responses from model or agent.
14631 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
14632 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
14633 &quot;a_key&quot;: { # Represents configuration for an Agent.
14634 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
14635 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
14636 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
14637 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
14638 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
14639 &quot;A String&quot;,
14640 ],
14641 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
14642 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
14643 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
14644 },
14645 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
14646 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
14647 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
14648 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
14649 &quot;A String&quot;,
14650 ],
14651 },
14652 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
14653 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
14654 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
14655 &quot;A String&quot;,
14656 ],
14657 },
14658 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
14659 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
14660 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
14661 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14662 },
14663 },
14664 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
14665 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
14666 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
14667 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
14668 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
14669 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
14670 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14671 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14672 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14673 ],
14674 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14675 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14676 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14677 },
14678 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14679 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14680 &quot;A String&quot;,
14681 ],
14682 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14683 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14684 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14685 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14686 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14687 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14688 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14689 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14690 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14691 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14692 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14693 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14694 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14695 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14696 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14697 },
14698 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14699 &quot;A String&quot;,
14700 ],
14701 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14702 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14703 &quot;A String&quot;,
14704 ],
14705 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14706 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14707 },
14708 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
14709 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
14710 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14711 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14712 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14713 ],
14714 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14715 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14716 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14717 },
14718 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14719 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14720 &quot;A String&quot;,
14721 ],
14722 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14723 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14724 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14725 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14726 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14727 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14728 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14729 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14730 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14731 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14732 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14733 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14734 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14735 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14736 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14737 },
14738 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14739 &quot;A String&quot;,
14740 ],
14741 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14742 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14743 &quot;A String&quot;,
14744 ],
14745 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14746 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14747 },
14748 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
14749 },
14750 ],
14751 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
14752 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
14753 },
14754 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
14755 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
14756 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
14757 &quot;A String&quot;,
14758 ],
14759 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
14760 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
14761 },
14762 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
14763 },
14764 },
14765 },
14766 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
14767 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
14768 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
14769 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
14770 },
14771 },
14772 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
14773 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
14774 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
14775 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14776 },
14777 },
14778 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
14779 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
14780 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
14781 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
14782 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
14783 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
14784 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
14785 },
14786 },
14787 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
14788 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
14789 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
14790 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
14791 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
14792 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
14793 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
14794 },
14795 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
14796 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
14797 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
14798 },
14799 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
14800 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
14801 },
14802 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
14803 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
14804 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
14805 },
14806 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
14807 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
14808 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
14809 },
14810 },
14811 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
14812 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
14813 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
14814 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
14815 },
14816 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
14817 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
14818 },
14819 },
14820 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
14821 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
14822 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
14823 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
14824 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
14825 },
14826 ],
14827 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
14828 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
14829 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
14830 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
14831 },
14832 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
14833 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
14834 &quot;A String&quot;,
14835 ],
14836 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
14837 { # The definition of the Rag resource.
14838 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
14839 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
14840 &quot;A String&quot;,
14841 ],
14842 },
14843 ],
14844 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
14845 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
14846 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
14847 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
14848 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
14849 },
14850 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
14851 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
14852 },
14853 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
14854 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
14855 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
14856 },
14857 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
14858 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
14859 },
14860 },
14861 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
14862 },
14863 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
14864 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
14865 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
14866 },
14867 },
14868 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
14869 },
14870 },
14871 ],
14872 },
14873 },
14874 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
14875 { # Represents a single turn/invocation in the conversation.
14876 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
14877 { # Represents a single event in the execution trace.
14878 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
14879 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
14880 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
14881 },
14882 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
14883 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
14884 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
14885 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
14886 &quot;A String&quot;,
14887 ],
14888 },
14889 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
14890 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
14891 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
14892 &quot;A String&quot;,
14893 ],
14894 },
14895 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
14896 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
14897 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
14898 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
14899 },
14900 },
14901 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
14902 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
14903 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
14904 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
14905 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
14906 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
14907 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14908 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14909 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14910 ],
14911 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14912 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14913 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14914 },
14915 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14916 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14917 &quot;A String&quot;,
14918 ],
14919 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14920 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14921 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14922 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14923 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14924 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14925 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14926 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14927 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14928 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14929 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14930 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14931 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14932 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14933 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14934 },
14935 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14936 &quot;A String&quot;,
14937 ],
14938 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14939 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14940 &quot;A String&quot;,
14941 ],
14942 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14943 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14944 },
14945 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
14946 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
14947 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
14948 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
14949 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14950 ],
14951 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
14952 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
14953 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14954 },
14955 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
14956 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
14957 &quot;A String&quot;,
14958 ],
14959 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
14960 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
14961 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
14962 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
14963 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
14964 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
14965 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
14966 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
14967 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
14968 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
14969 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
14970 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
14971 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
14972 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
14973 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
14974 },
14975 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
14976 &quot;A String&quot;,
14977 ],
14978 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
14979 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
14980 &quot;A String&quot;,
14981 ],
14982 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
14983 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
14984 },
14985 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
14986 },
14987 ],
14988 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
14989 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
14990 },
14991 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
14992 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
14993 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
14994 &quot;A String&quot;,
14995 ],
14996 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
14997 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
14998 },
14999 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
15000 },
15001 },
15002 },
15003 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
15004 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
15005 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
15006 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
15007 },
15008 },
15009 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
15010 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
15011 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
15012 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15013 },
15014 },
15015 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
15016 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
15017 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
15018 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
15019 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
15020 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
15021 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
15022 },
15023 },
15024 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
15025 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
15026 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
15027 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15028 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
15029 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
15030 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
15031 },
15032 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
15033 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
15034 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
15035 },
15036 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
15037 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15038 },
15039 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
15040 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15041 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
15042 },
15043 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
15044 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15045 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
15046 },
15047 },
15048 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
15049 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
15050 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
15051 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
15052 },
15053 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
15054 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
15055 },
15056 },
15057 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
15058 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
15059 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
15060 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15061 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
15062 },
15063 ],
15064 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15065 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
15066 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
15067 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
15068 },
15069 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
15070 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
15071 &quot;A String&quot;,
15072 ],
15073 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
15074 { # The definition of the Rag resource.
15075 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
15076 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
15077 &quot;A String&quot;,
15078 ],
15079 },
15080 ],
15081 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
15082 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
15083 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
15084 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
15085 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
15086 },
15087 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
15088 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
15089 },
15090 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
15091 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
15092 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
15093 },
15094 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
15095 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
15096 },
15097 },
15098 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
15099 },
15100 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
15101 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
15102 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
15103 },
15104 },
15105 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
15106 },
15107 },
15108 ],
15109 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
15110 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
15111 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
15112 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
15113 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
15114 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
15115 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
15116 },
15117 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
15118 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
15119 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
15120 },
15121 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
15122 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15123 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
15124 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15125 },
15126 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
15127 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
15128 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15129 },
15130 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
15131 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
15132 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
15133 { # Partial argument value of the function call.
15134 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
15135 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
15136 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
15137 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
15138 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
15139 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
15140 },
15141 ],
15142 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
15143 },
15144 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
15145 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
15146 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
15147 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
15148 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
15149 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
15150 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15151 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
15152 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15153 },
15154 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
15155 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
15156 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15157 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15158 },
15159 },
15160 ],
15161 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
15162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15163 },
15164 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
15165 },
15166 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
15167 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
15168 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15169 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15170 },
15171 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
15172 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
15173 },
15174 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
15175 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
15176 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
15177 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
15178 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
15179 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
15180 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
15181 },
15182 },
15183 ],
15184 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
15185 },
15186 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
15187 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
15188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15189 },
15190 },
15191 ],
15192 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
15193 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
15194 },
15195 ],
15196 },
15197 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
15198 &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. Error while scraping model or agent.
15199 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
15200 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
15201 {
15202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
15203 },
15204 ],
15205 &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.
15206 },
15207 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
15208 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
15209 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
15210 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
15211 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
15212 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
15213 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
15214 },
15215 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
15216 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
15217 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
15218 },
15219 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
15220 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15221 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
15222 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15223 },
15224 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
15225 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
15226 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15227 },
15228 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
15229 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
15230 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
15231 { # Partial argument value of the function call.
15232 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
15233 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
15234 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
15235 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
15236 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
15237 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
15238 },
15239 ],
15240 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
15241 },
15242 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
15243 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
15244 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
15245 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
15246 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
15247 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
15248 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15249 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
15250 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15251 },
15252 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
15253 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
15254 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15255 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15256 },
15257 },
15258 ],
15259 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
15260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15261 },
15262 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
15263 },
15264 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
15265 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
15266 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15267 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15268 },
15269 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
15270 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
15271 },
15272 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
15273 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
15274 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
15275 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
15276 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
15277 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
15278 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
15279 },
15280 },
15281 ],
15282 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
15283 },
15284 ],
15285 &quot;text&quot;: &quot;A String&quot;, # Text response.
15286 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
15287 },
15288 ],
15289 &quot;goldenResponse&quot;: { # Responses from model or agent. # Optional. The Ideal response or ground truth.
15290 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent&#x27;s run, including all turns and events, for direct evaluation.
15291 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
15292 &quot;a_key&quot;: { # Represents configuration for an Agent.
15293 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
15294 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
15295 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
15296 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
15297 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
15298 &quot;A String&quot;,
15299 ],
15300 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
15301 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
15302 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
15303 },
15304 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
15305 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
15306 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
15307 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
15308 &quot;A String&quot;,
15309 ],
15310 },
15311 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
15312 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
15313 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
15314 &quot;A String&quot;,
15315 ],
15316 },
15317 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
15318 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
15319 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
15320 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15321 },
15322 },
15323 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
15324 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
15325 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
15326 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
15327 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
15328 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
15329 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
15330 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
15331 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15332 ],
15333 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
15334 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
15335 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15336 },
15337 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
15338 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
15339 &quot;A String&quot;,
15340 ],
15341 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
15342 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
15343 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
15344 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
15345 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
15346 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
15347 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
15348 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
15349 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
15350 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
15351 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
15352 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
15353 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
15354 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
15355 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15356 },
15357 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
15358 &quot;A String&quot;,
15359 ],
15360 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
15361 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
15362 &quot;A String&quot;,
15363 ],
15364 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
15365 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
15366 },
15367 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
15368 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
15369 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
15370 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
15371 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15372 ],
15373 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
15374 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
15375 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15376 },
15377 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
15378 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
15379 &quot;A String&quot;,
15380 ],
15381 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
15382 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
15383 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
15384 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
15385 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
15386 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
15387 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
15388 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
15389 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
15390 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
15391 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
15392 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
15393 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
15394 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
15395 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15396 },
15397 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
15398 &quot;A String&quot;,
15399 ],
15400 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
15401 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
15402 &quot;A String&quot;,
15403 ],
15404 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
15405 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
15406 },
15407 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
15408 },
15409 ],
15410 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
15411 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
15412 },
15413 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
15414 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
15415 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
15416 &quot;A String&quot;,
15417 ],
15418 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
15419 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
15420 },
15421 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
15422 },
15423 },
15424 },
15425 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
15426 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
15427 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
15428 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
15429 },
15430 },
15431 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
15432 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
15433 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
15434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15435 },
15436 },
15437 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
15438 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
15439 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
15440 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
15441 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
15442 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
15443 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
15444 },
15445 },
15446 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
15447 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
15448 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
15449 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15450 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
15451 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
15452 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
15453 },
15454 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
15455 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
15456 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
15457 },
15458 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
15459 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15460 },
15461 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
15462 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15463 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
15464 },
15465 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
15466 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15467 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
15468 },
15469 },
15470 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
15471 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
15472 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
15473 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
15474 },
15475 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
15476 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
15477 },
15478 },
15479 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
15480 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
15481 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
15482 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15483 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
15484 },
15485 ],
15486 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15487 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
15488 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
15489 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
15490 },
15491 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
15492 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
15493 &quot;A String&quot;,
15494 ],
15495 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
15496 { # The definition of the Rag resource.
15497 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
15498 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
15499 &quot;A String&quot;,
15500 ],
15501 },
15502 ],
15503 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
15504 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
15505 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
15506 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
15507 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
15508 },
15509 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
15510 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
15511 },
15512 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
15513 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
15514 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
15515 },
15516 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
15517 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
15518 },
15519 },
15520 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
15521 },
15522 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
15523 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
15524 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
15525 },
15526 },
15527 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
15528 },
15529 },
15530 ],
15531 },
15532 },
15533 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
15534 { # Represents a single turn/invocation in the conversation.
15535 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
15536 { # Represents a single event in the execution trace.
15537 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
15538 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
15539 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
15540 },
15541 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
15542 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
15543 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
15544 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
15545 &quot;A String&quot;,
15546 ],
15547 },
15548 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
15549 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
15550 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
15551 &quot;A String&quot;,
15552 ],
15553 },
15554 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
15555 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
15556 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
15557 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15558 },
15559 },
15560 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
15561 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
15562 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
15563 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
15564 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
15565 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
15566 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
15567 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
15568 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15569 ],
15570 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
15571 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
15572 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15573 },
15574 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
15575 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
15576 &quot;A String&quot;,
15577 ],
15578 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
15579 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
15580 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
15581 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
15582 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
15583 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
15584 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
15585 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
15586 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
15587 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
15588 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
15589 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
15590 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
15591 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
15592 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15593 },
15594 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
15595 &quot;A String&quot;,
15596 ],
15597 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
15598 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
15599 &quot;A String&quot;,
15600 ],
15601 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
15602 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
15603 },
15604 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
15605 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
15606 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
15607 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
15608 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15609 ],
15610 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
15611 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
15612 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15613 },
15614 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
15615 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
15616 &quot;A String&quot;,
15617 ],
15618 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
15619 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
15620 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
15621 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
15622 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
15623 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
15624 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
15625 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
15626 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
15627 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
15628 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
15629 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
15630 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
15631 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
15632 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15633 },
15634 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
15635 &quot;A String&quot;,
15636 ],
15637 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
15638 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
15639 &quot;A String&quot;,
15640 ],
15641 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
15642 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
15643 },
15644 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
15645 },
15646 ],
15647 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
15648 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
15649 },
15650 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
15651 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
15652 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
15653 &quot;A String&quot;,
15654 ],
15655 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
15656 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
15657 },
15658 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
15659 },
15660 },
15661 },
15662 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
15663 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
15664 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
15665 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
15666 },
15667 },
15668 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
15669 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
15670 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
15671 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15672 },
15673 },
15674 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
15675 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
15676 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
15677 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
15678 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
15679 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
15680 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
15681 },
15682 },
15683 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
15684 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
15685 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
15686 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15687 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
15688 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
15689 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
15690 },
15691 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
15692 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
15693 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
15694 },
15695 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
15696 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
15697 },
15698 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
15699 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15700 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
15701 },
15702 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
15703 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
15704 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
15705 },
15706 },
15707 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
15708 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
15709 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
15710 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
15711 },
15712 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
15713 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
15714 },
15715 },
15716 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
15717 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
15718 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
15719 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15720 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
15721 },
15722 ],
15723 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
15724 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
15725 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
15726 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
15727 },
15728 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
15729 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
15730 &quot;A String&quot;,
15731 ],
15732 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
15733 { # The definition of the Rag resource.
15734 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
15735 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
15736 &quot;A String&quot;,
15737 ],
15738 },
15739 ],
15740 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
15741 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
15742 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
15743 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
15744 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
15745 },
15746 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
15747 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
15748 },
15749 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
15750 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
15751 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
15752 },
15753 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
15754 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
15755 },
15756 },
15757 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
15758 },
15759 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
15760 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
15761 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
15762 },
15763 },
15764 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
15765 },
15766 },
15767 ],
15768 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
15769 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
15770 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
15771 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
15772 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
15773 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
15774 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
15775 },
15776 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
15777 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
15778 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
15779 },
15780 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
15781 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15782 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
15783 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15784 },
15785 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
15786 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
15787 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15788 },
15789 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
15790 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
15791 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
15792 { # Partial argument value of the function call.
15793 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
15794 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
15795 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
15796 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
15797 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
15798 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
15799 },
15800 ],
15801 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
15802 },
15803 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
15804 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
15805 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
15806 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
15807 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
15808 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
15809 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15810 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
15811 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15812 },
15813 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
15814 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
15815 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15816 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15817 },
15818 },
15819 ],
15820 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
15821 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15822 },
15823 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
15824 },
15825 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
15826 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
15827 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15828 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15829 },
15830 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
15831 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
15832 },
15833 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
15834 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
15835 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
15836 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
15837 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
15838 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
15839 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
15840 },
15841 },
15842 ],
15843 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
15844 },
15845 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
15846 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
15847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15848 },
15849 },
15850 ],
15851 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
15852 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
15853 },
15854 ],
15855 },
15856 &quot;candidate&quot;: &quot;A String&quot;, # Required. The name of the candidate that produced the response.
15857 &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. Error while scraping model or agent.
15858 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
15859 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
15860 {
15861 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
15862 },
15863 ],
15864 &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.
15865 },
15866 &quot;events&quot;: [ # Optional. Intermediate events (such as tool calls and responses) that led to the final response.
15867 { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
15868 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
15869 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
15870 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
15871 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
15872 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
15873 },
15874 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
15875 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
15876 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
15877 },
15878 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
15879 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15880 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
15881 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15882 },
15883 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
15884 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
15885 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15886 },
15887 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
15888 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
15889 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
15890 { # Partial argument value of the function call.
15891 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
15892 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
15893 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
15894 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
15895 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
15896 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
15897 },
15898 ],
15899 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
15900 },
15901 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
15902 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
15903 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
15904 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
15905 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
15906 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
15907 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15908 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
15909 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15910 },
15911 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
15912 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
15913 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
15914 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15915 },
15916 },
15917 ],
15918 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
15919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15920 },
15921 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
15922 },
15923 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
15924 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
15925 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
15926 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
15927 },
15928 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
15929 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
15930 },
15931 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
15932 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
15933 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
15934 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
15935 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
15936 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
15937 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
15938 },
15939 },
15940 ],
15941 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
15942 },
15943 ],
15944 &quot;text&quot;: &quot;A String&quot;, # Text response.
15945 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the response template.
15946 },
15947 &quot;prompt&quot;: { # Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for agent evaluations. # Optional. The request/prompt to evaluate.
15948 &quot;agentData&quot;: { # Represents data specific to multi-turn agent evaluations. # Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This serves as the input context for agent scraping.
15949 &quot;agents&quot;: { # Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
15950 &quot;a_key&quot;: { # Represents configuration for an Agent.
15951 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
15952 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
15953 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
15954 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
15955 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
15956 &quot;A String&quot;,
15957 ],
15958 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
15959 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
15960 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
15961 },
15962 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
15963 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
15964 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
15965 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
15966 &quot;A String&quot;,
15967 ],
15968 },
15969 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
15970 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
15971 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
15972 &quot;A String&quot;,
15973 ],
15974 },
15975 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
15976 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
15977 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
15978 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
15979 },
15980 },
15981 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
15982 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
15983 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
15984 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
15985 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
15986 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
15987 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
15988 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
15989 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15990 ],
15991 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
15992 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
15993 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
15994 },
15995 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
15996 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
15997 &quot;A String&quot;,
15998 ],
15999 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16000 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16001 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16002 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16003 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16004 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16005 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16006 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16007 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16008 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16009 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16010 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16011 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16012 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16013 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16014 },
16015 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16016 &quot;A String&quot;,
16017 ],
16018 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16019 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16020 &quot;A String&quot;,
16021 ],
16022 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16023 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16024 },
16025 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
16026 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
16027 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
16028 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
16029 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16030 ],
16031 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
16032 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
16033 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16034 },
16035 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
16036 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
16037 &quot;A String&quot;,
16038 ],
16039 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16040 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16041 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16042 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16043 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16044 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16045 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16046 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16047 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16048 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16049 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16050 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16051 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16052 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16053 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16054 },
16055 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16056 &quot;A String&quot;,
16057 ],
16058 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16059 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16060 &quot;A String&quot;,
16061 ],
16062 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16063 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16064 },
16065 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
16066 },
16067 ],
16068 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
16069 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
16070 },
16071 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
16072 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
16073 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
16074 &quot;A String&quot;,
16075 ],
16076 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
16077 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
16078 },
16079 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
16080 },
16081 },
16082 },
16083 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
16084 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
16085 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
16086 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
16087 },
16088 },
16089 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
16090 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
16091 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
16092 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16093 },
16094 },
16095 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
16096 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
16097 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
16098 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
16099 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
16100 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
16101 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
16102 },
16103 },
16104 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
16105 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
16106 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
16107 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16108 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
16109 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
16110 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
16111 },
16112 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
16113 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
16114 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
16115 },
16116 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
16117 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16118 },
16119 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
16120 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16121 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
16122 },
16123 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
16124 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16125 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
16126 },
16127 },
16128 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
16129 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
16130 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
16131 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
16132 },
16133 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
16134 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
16135 },
16136 },
16137 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
16138 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
16139 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
16140 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16141 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
16142 },
16143 ],
16144 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16145 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
16146 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
16147 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
16148 },
16149 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
16150 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
16151 &quot;A String&quot;,
16152 ],
16153 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
16154 { # The definition of the Rag resource.
16155 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
16156 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
16157 &quot;A String&quot;,
16158 ],
16159 },
16160 ],
16161 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
16162 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
16163 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
16164 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
16165 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
16166 },
16167 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
16168 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
16169 },
16170 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
16171 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
16172 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
16173 },
16174 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
16175 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
16176 },
16177 },
16178 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
16179 },
16180 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
16181 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
16182 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
16183 },
16184 },
16185 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
16186 },
16187 },
16188 ],
16189 },
16190 },
16191 &quot;turns&quot;: [ # Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -&gt; Agent Response).
16192 { # Represents a single turn/invocation in the conversation.
16193 &quot;events&quot;: [ # Optional. The list of events that occurred during this turn.
16194 { # Represents a single event in the execution trace.
16195 &quot;activeTools&quot;: [ # Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.
16196 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
16197 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
16198 },
16199 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
16200 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
16201 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
16202 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
16203 &quot;A String&quot;,
16204 ],
16205 },
16206 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
16207 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
16208 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
16209 &quot;A String&quot;,
16210 ],
16211 },
16212 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
16213 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
16214 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
16215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16216 },
16217 },
16218 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
16219 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
16220 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
16221 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
16222 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
16223 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
16224 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
16225 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
16226 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16227 ],
16228 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
16229 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
16230 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16231 },
16232 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
16233 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
16234 &quot;A String&quot;,
16235 ],
16236 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16237 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16238 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16239 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16240 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16241 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16242 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16243 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16244 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16245 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16246 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16247 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16248 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16249 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16250 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16251 },
16252 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16253 &quot;A String&quot;,
16254 ],
16255 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16256 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16257 &quot;A String&quot;,
16258 ],
16259 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16260 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16261 },
16262 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
16263 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
16264 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
16265 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
16266 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16267 ],
16268 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
16269 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
16270 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16271 },
16272 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
16273 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
16274 &quot;A String&quot;,
16275 ],
16276 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16277 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16278 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16279 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16280 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16281 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16282 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16283 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16284 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16285 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16286 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16287 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16288 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16289 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16290 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16291 },
16292 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16293 &quot;A String&quot;,
16294 ],
16295 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16296 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16297 &quot;A String&quot;,
16298 ],
16299 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16300 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16301 },
16302 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
16303 },
16304 ],
16305 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
16306 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
16307 },
16308 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
16309 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
16310 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
16311 &quot;A String&quot;,
16312 ],
16313 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
16314 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
16315 },
16316 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
16317 },
16318 },
16319 },
16320 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
16321 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
16322 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
16323 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
16324 },
16325 },
16326 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
16327 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
16328 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
16329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16330 },
16331 },
16332 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
16333 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
16334 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
16335 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
16336 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
16337 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
16338 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
16339 },
16340 },
16341 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
16342 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
16343 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
16344 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16345 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
16346 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
16347 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
16348 },
16349 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
16350 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
16351 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
16352 },
16353 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
16354 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16355 },
16356 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
16357 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16358 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
16359 },
16360 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
16361 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16362 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
16363 },
16364 },
16365 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
16366 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
16367 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
16368 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
16369 },
16370 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
16371 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
16372 },
16373 },
16374 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
16375 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
16376 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
16377 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16378 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
16379 },
16380 ],
16381 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16382 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
16383 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
16384 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
16385 },
16386 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
16387 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
16388 &quot;A String&quot;,
16389 ],
16390 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
16391 { # The definition of the Rag resource.
16392 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
16393 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
16394 &quot;A String&quot;,
16395 ],
16396 },
16397 ],
16398 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
16399 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
16400 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
16401 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
16402 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
16403 },
16404 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
16405 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
16406 },
16407 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
16408 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
16409 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
16410 },
16411 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
16412 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
16413 },
16414 },
16415 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
16416 },
16417 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
16418 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
16419 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
16420 },
16421 },
16422 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
16423 },
16424 },
16425 ],
16426 &quot;author&quot;: &quot;A String&quot;, # Required. The ID of the agent or entity that generated this event. Use &quot;user&quot; to denote events generated by the end-user.
16427 &quot;content&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Required. The content of the event (e.g., text response, tool call, tool response).
16428 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
16429 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
16430 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
16431 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
16432 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
16433 },
16434 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
16435 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
16436 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
16437 },
16438 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
16439 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16440 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
16441 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16442 },
16443 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
16444 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
16445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16446 },
16447 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
16448 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
16449 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
16450 { # Partial argument value of the function call.
16451 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
16452 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
16453 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
16454 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
16455 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
16456 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
16457 },
16458 ],
16459 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
16460 },
16461 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
16462 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
16463 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
16464 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
16465 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
16466 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
16467 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16468 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
16469 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16470 },
16471 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
16472 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
16473 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16474 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16475 },
16476 },
16477 ],
16478 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
16479 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16480 },
16481 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
16482 },
16483 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
16484 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
16485 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16486 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16487 },
16488 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
16489 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
16490 },
16491 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
16492 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
16493 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
16494 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
16495 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
16496 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
16497 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
16498 },
16499 },
16500 ],
16501 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
16502 },
16503 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The timestamp when the event occurred.
16504 &quot;stateDelta&quot;: { # Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.
16505 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16506 },
16507 },
16508 ],
16509 &quot;turnId&quot;: &quot;A String&quot;, # Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
16510 &quot;turnIndex&quot;: 42, # Required. The 0-based index of the turn in the conversation sequence.
16511 },
16512 ],
16513 },
16514 &quot;promptTemplateData&quot;: { # Message to hold a prompt template and the values to populate the template. # Prompt template data.
16515 &quot;values&quot;: { # The values for fields in the prompt template.
16516 &quot;a_key&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.
16517 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
16518 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
16519 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
16520 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
16521 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
16522 },
16523 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
16524 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
16525 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
16526 },
16527 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
16528 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16529 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
16530 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16531 },
16532 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
16533 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
16534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16535 },
16536 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
16537 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
16538 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
16539 { # Partial argument value of the function call.
16540 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
16541 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
16542 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
16543 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
16544 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
16545 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
16546 },
16547 ],
16548 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
16549 },
16550 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
16551 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
16552 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
16553 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
16554 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
16555 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
16556 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16557 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
16558 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16559 },
16560 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
16561 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
16562 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16563 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16564 },
16565 },
16566 ],
16567 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
16568 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16569 },
16570 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
16571 },
16572 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
16573 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
16574 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16575 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16576 },
16577 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
16578 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
16579 },
16580 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
16581 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
16582 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
16583 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
16584 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
16585 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
16586 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
16587 },
16588 },
16589 ],
16590 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
16591 },
16592 },
16593 },
16594 &quot;text&quot;: &quot;A String&quot;, # Text prompt.
16595 &quot;userScenario&quot;: { # User scenario to help simulate multi-turn agent running results. # Optional. The generated user scenario used to drive multi-turn agent running results.
16596 &quot;conversationPlan&quot;: &quot;A String&quot;, # Required. The plan for the conversation, used to drive the multi-turn agent run and generate the simulated agent evaluation dataset.
16597 &quot;startingPrompt&quot;: &quot;A String&quot;, # Required. The prompt that starts the conversation between the simulated user and the agent under test.
16598 },
16599 &quot;value&quot;: &quot;&quot;, # Fields and values that can be used to populate the prompt template.
16600 },
16601 &quot;rubrics&quot;: { # Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group.
16602 &quot;a_key&quot;: { # A group of rubrics, used for grouping rubrics based on a metric or a version.
16603 &quot;displayName&quot;: &quot;A String&quot;, # Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: &quot;Instruction Following V1&quot;, &quot;Content Quality - Summarization Task&quot;.
16604 &quot;groupId&quot;: &quot;A String&quot;, # Unique identifier for the group.
16605 &quot;rubrics&quot;: [ # Rubrics that are part of this group.
16606 { # Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
16607 &quot;content&quot;: { # Content of the rubric, defining the testable criteria. # Required. The actual testable criteria for the rubric.
16608 &quot;property&quot;: { # Defines criteria based on a specific property. # Evaluation criteria based on a specific property.
16609 &quot;description&quot;: &quot;A String&quot;, # Description of the property being evaluated. Example: &quot;The model&#x27;s response is grammatically correct.&quot;
16610 },
16611 },
16612 &quot;importance&quot;: &quot;A String&quot;, # Optional. The relative importance of this rubric.
16613 &quot;rubricId&quot;: &quot;A String&quot;, # Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
16614 &quot;type&quot;: &quot;A String&quot;, # Optional. A type designator for the rubric, which can inform how it&#x27;s evaluated or interpreted by systems or users. It&#x27;s recommended to use consistent, well-defined, upper snake_case strings. Examples: &quot;SUMMARIZATION_QUALITY&quot;, &quot;SAFETY_HARMFUL_CONTENT&quot;, &quot;INSTRUCTION_ADHERENCE&quot;.
16615 },
16616 ],
16617 },
16618 },
16619 },
16620 },
16621 &quot;failedRubrics&quot;: [ # The specific rubric(s) that failed and caused this example to be classified here. An example might fail multiple rubrics, but only specific ones trigger this loss pattern.
16622 { # Represents a specific failed rubric and the associated analysis.
16623 &quot;classificationRationale&quot;: &quot;A String&quot;, # The rationale provided by the Loss Analysis Classifier for why this failure maps to this specific Loss Cluster. e.g., &quot;The agent claimed an action without a tool call, matching &#x27;Hallucination of Action&#x27;.&quot;
16624 &quot;rubricId&quot;: &quot;A String&quot;, # The unique ID of the rubric (if available from the metric source). Clients use this ID to query the corresponding rubric verdict.
16625 },
16626 ],
16627 },
16628 ],
16629 &quot;itemCount&quot;: 42, # The total number of EvaluationItems falling into this cluster.
16630 &quot;taxonomyEntry&quot;: { # Defines a specific entry in the loss pattern taxonomy. # The structured definition of the loss taxonomy for this cluster.
16631 &quot;description&quot;: &quot;A String&quot;, # A detailed description of this loss pattern. Example: &quot;The agent verbally confirms an action without executing the tool.&quot;
16632 &quot;l1Category&quot;: &quot;A String&quot;, # The primary category of the loss (e.g., &quot;Hallucination&quot;, &quot;Tool Calling&quot;). This field is typically required.
16633 &quot;l2Category&quot;: &quot;A String&quot;, # The secondary category of the loss (e.g., &quot;Hallucination of Action&quot;, &quot;Incorrect Tool Selection&quot;).
16634 },
16635 },
16636 ],
16637 &quot;config&quot;: { # Configuration for the loss analysis job. # The configuration used to generate this analysis.
16638 &quot;candidate&quot;: &quot;A String&quot;, # Required. The candidate model/agent to analyze (e.g., &quot;gemini-3.0-pro&quot;). This targets the specific CandidateResult within the EvaluationResult.
16639 &quot;metric&quot;: &quot;A String&quot;, # Required. The metric to analyze (e.g., &quot;tool_use_quality&quot;). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value.
16640 },
16641 },
16642 ],
16643 &quot;summaryMetrics&quot;: { # The summary metrics for the evaluation run. # Optional. The summary metrics for the evaluation run.
16644 &quot;failedItems&quot;: 42, # Optional. The number of items that failed to be evaluated.
16645 &quot;metrics&quot;: { # Optional. Map of metric name to metric value.
16646 &quot;a_key&quot;: &quot;&quot;,
16647 },
16648 &quot;totalItems&quot;: 42, # Optional. The total number of items that were evaluated.
16649 },
16650 },
16651 &quot;evaluationSetSnapshot&quot;: &quot;A String&quot;, # Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it&#x27;s the sampled BigQuery dataset.
16652 &quot;inferenceConfigs&quot;: { # Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.
16653 &quot;a_key&quot;: { # Defines the configuration for a candidate model or agent being evaluated. `InferenceConfig` encapsulates all the necessary information to invoke or scrape the candidate during the evaluation run. This includes direct model inference parameters, agent execution settings, and multi-turn scraping configurations (such as user simulators). It serves as the primary representation of the candidate across different stages of the evaluation process.
16654 &quot;agentConfig&quot;: { # Configuration that describes an agent. # Optional. Deprecated: Use `agents` instead. Agent config used to generate responses.
16655 &quot;developerInstruction&quot;: { # The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. # Optional. The developer instruction for the agent.
16656 &quot;parts&quot;: [ # Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.
16657 { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
16658 &quot;codeExecutionResult&quot;: { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
16659 &quot;outcome&quot;: &quot;A String&quot;, # Required. Outcome of the code execution.
16660 &quot;output&quot;: &quot;A String&quot;, # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
16661 },
16662 &quot;executableCode&quot;: { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
16663 &quot;code&quot;: &quot;A String&quot;, # Required. The code to be executed.
16664 &quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
16665 },
16666 &quot;fileData&quot;: { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
16667 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16668 &quot;fileUri&quot;: &quot;A String&quot;, # Required. The URI of the file in Google Cloud Storage.
16669 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16670 },
16671 &quot;functionCall&quot;: { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
16672 &quot;args&quot;: { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
16673 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16674 },
16675 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
16676 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the function to call. Matches FunctionDeclaration.name.
16677 &quot;partialArgs&quot;: [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
16678 { # Partial argument value of the function call.
16679 &quot;boolValue&quot;: True or False, # Optional. Represents a boolean value.
16680 &quot;jsonPath&quot;: &quot;A String&quot;, # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. &quot;$.foo.bar[0].data&quot;.
16681 &quot;nullValue&quot;: &quot;A String&quot;, # Optional. Represents a null value.
16682 &quot;numberValue&quot;: 3.14, # Optional. Represents a double value.
16683 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Represents a string value.
16684 &quot;willContinue&quot;: True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
16685 },
16686 ],
16687 &quot;willContinue&quot;: True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
16688 },
16689 &quot;functionResponse&quot;: { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
16690 &quot;id&quot;: &quot;A String&quot;, # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
16691 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
16692 &quot;parts&quot;: [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
16693 { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
16694 &quot;fileData&quot;: { # URI based data for function response. # URI based data.
16695 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16696 &quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
16697 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16698 },
16699 &quot;inlineData&quot;: { # Raw media bytes for function response. Text should not be sent as raw bytes, use the &#x27;text&#x27; field. # Inline media bytes.
16700 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
16701 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
16702 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16703 },
16704 },
16705 ],
16706 &quot;response&quot;: { # Required. The function response in JSON object format. Use &quot;output&quot; key to specify function output 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 function output.
16707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16708 },
16709 &quot;scheduling&quot;: &quot;A String&quot;, # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
16710 },
16711 &quot;inlineData&quot;: { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
16712 &quot;data&quot;: &quot;A String&quot;, # Required. The raw bytes of the data.
16713 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
16714 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
16715 },
16716 &quot;mediaResolution&quot;: { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
16717 &quot;level&quot;: &quot;A String&quot;, # The tokenization quality used for given media.
16718 },
16719 &quot;text&quot;: &quot;A String&quot;, # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
16720 &quot;thought&quot;: True or False, # Optional. Indicates whether the `part` represents the model&#x27;s thought process or reasoning.
16721 &quot;thoughtSignature&quot;: &quot;A String&quot;, # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
16722 &quot;videoMetadata&quot;: { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
16723 &quot;endOffset&quot;: &quot;A String&quot;, # Optional. The end offset of the video.
16724 &quot;fps&quot;: 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
16725 &quot;startOffset&quot;: &quot;A String&quot;, # Optional. The start offset of the video.
16726 },
16727 },
16728 ],
16729 &quot;role&quot;: &quot;A String&quot;, # Optional. The producer of the content. Must be either &#x27;user&#x27; or &#x27;model&#x27;. If not set, the service will default to &#x27;user&#x27;.
16730 },
16731 &quot;tools&quot;: [ # Optional. The tools available to the agent.
16732 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
16733 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
16734 },
16735 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
16736 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
16737 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
16738 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
16739 &quot;A String&quot;,
16740 ],
16741 },
16742 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
16743 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
16744 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
16745 &quot;A String&quot;,
16746 ],
16747 },
16748 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
16749 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
16750 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
16751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16752 },
16753 },
16754 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
16755 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
16756 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
16757 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
16758 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
16759 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
16760 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
16761 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
16762 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16763 ],
16764 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
16765 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
16766 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16767 },
16768 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
16769 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
16770 &quot;A String&quot;,
16771 ],
16772 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16773 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16774 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16775 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16776 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16777 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16778 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16779 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16780 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16781 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16782 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16783 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16784 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16785 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16786 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16787 },
16788 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16789 &quot;A String&quot;,
16790 ],
16791 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16792 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16793 &quot;A String&quot;,
16794 ],
16795 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16796 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16797 },
16798 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
16799 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
16800 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
16801 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
16802 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16803 ],
16804 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
16805 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
16806 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16807 },
16808 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
16809 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
16810 &quot;A String&quot;,
16811 ],
16812 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
16813 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
16814 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
16815 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
16816 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
16817 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
16818 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
16819 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
16820 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
16821 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
16822 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
16823 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
16824 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
16825 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
16826 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
16827 },
16828 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
16829 &quot;A String&quot;,
16830 ],
16831 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
16832 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
16833 &quot;A String&quot;,
16834 ],
16835 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
16836 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
16837 },
16838 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
16839 },
16840 ],
16841 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
16842 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
16843 },
16844 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
16845 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
16846 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
16847 &quot;A String&quot;,
16848 ],
16849 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
16850 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
16851 },
16852 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
16853 },
16854 },
16855 },
16856 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
16857 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
16858 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
16859 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
16860 },
16861 },
16862 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
16863 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
16864 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
16865 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16866 },
16867 },
16868 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
16869 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
16870 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
16871 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
16872 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
16873 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
16874 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
16875 },
16876 },
16877 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
16878 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
16879 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
16880 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16881 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
16882 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
16883 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
16884 },
16885 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
16886 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
16887 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
16888 },
16889 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
16890 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
16891 },
16892 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
16893 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16894 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
16895 },
16896 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
16897 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
16898 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
16899 },
16900 },
16901 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
16902 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
16903 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
16904 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
16905 },
16906 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
16907 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
16908 },
16909 },
16910 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
16911 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
16912 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
16913 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16914 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
16915 },
16916 ],
16917 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
16918 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
16919 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
16920 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
16921 },
16922 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
16923 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
16924 &quot;A String&quot;,
16925 ],
16926 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
16927 { # The definition of the Rag resource.
16928 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
16929 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
16930 &quot;A String&quot;,
16931 ],
16932 },
16933 ],
16934 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
16935 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
16936 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
16937 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
16938 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
16939 },
16940 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
16941 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
16942 },
16943 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
16944 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
16945 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
16946 },
16947 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
16948 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
16949 },
16950 },
16951 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
16952 },
16953 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
16954 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
16955 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
16956 },
16957 },
16958 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
16959 },
16960 },
16961 ],
16962 },
16963 &quot;agentRunConfig&quot;: { # Configuration for Agent Run. # Optional. Agent run config.
16964 &quot;agentEngine&quot;: &quot;A String&quot;, # Optional. The resource name of the Agent Engine. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} For example: projects/123/locations/us-central1/reasoningEngines/456
16965 &quot;sessionInput&quot;: { # Session input to run an Agent. # Optional. The session input to get agent running results.
16966 &quot;parameters&quot;: { # Optional. Additional parameters for the session, like app_name, etc. For example, {&quot;app_name&quot;: &quot;my-app&quot;}.
16967 &quot;a_key&quot;: &quot;A String&quot;,
16968 },
16969 &quot;sessionState&quot;: { # Optional. Session specific memory which stores key conversation points.
16970 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
16971 },
16972 &quot;userId&quot;: &quot;A String&quot;, # Optional. The user id for the agent session. The ID can be up to 128 characters long.
16973 },
16974 &quot;userSimulatorConfig&quot;: { # Used for multi-turn agent scraping. Contains configuration for a user simulator that uses an LLM to generate messages on behalf of the user. # The configuration for a user simulator that uses an LLM to generate messages on behalf of the user.
16975 &quot;maxTurn&quot;: 42, # Maximum number of invocations allowed by the multi-turn agent scraping. This property allows us to stop a run-off conversation, where the agent and the user simulator get into a never ending loop. The initial fixed prompt is also counted as an invocation.
16976 &quot;modelConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # The configuration for the model.
16977 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
16978 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
16979 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
16980 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
16981 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
16982 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
16983 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
16984 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
16985 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
16986 },
16987 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
16988 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
16989 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
16990 },
16991 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
16992 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
16993 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
16994 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
16995 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
16996 },
16997 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
16998 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
16999 { # Configuration for the model to configure output formatting and delivery.
17000 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
17001 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
17002 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17003 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
17004 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
17005 },
17006 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
17007 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
17008 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17009 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
17010 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
17011 },
17012 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
17013 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
17014 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
17015 },
17016 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
17017 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
17018 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17019 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
17020 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
17021 },
17022 },
17023 ],
17024 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
17025 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
17026 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
17027 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
17028 &quot;A String&quot;,
17029 ],
17030 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
17031 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
17032 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
17033 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17034 ],
17035 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
17036 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
17037 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17038 },
17039 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
17040 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
17041 &quot;A String&quot;,
17042 ],
17043 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
17044 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
17045 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
17046 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
17047 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
17048 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
17049 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
17050 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
17051 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
17052 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
17053 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
17054 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
17055 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
17056 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
17057 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17058 },
17059 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
17060 &quot;A String&quot;,
17061 ],
17062 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
17063 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
17064 &quot;A String&quot;,
17065 ],
17066 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
17067 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
17068 },
17069 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
17070 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
17071 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
17072 },
17073 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
17074 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
17075 },
17076 },
17077 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
17078 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
17079 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
17080 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
17081 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
17082 { # Configuration for a single speaker in a multi-speaker setup.
17083 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
17084 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
17085 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
17086 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
17087 },
17088 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
17089 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
17090 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
17091 },
17092 },
17093 },
17094 ],
17095 },
17096 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
17097 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
17098 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
17099 },
17100 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
17101 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
17102 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
17103 },
17104 },
17105 },
17106 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
17107 &quot;A String&quot;,
17108 ],
17109 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
17110 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
17111 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
17112 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
17113 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
17114 },
17115 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
17116 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
17117 },
17118 &quot;modelName&quot;: &quot;A String&quot;, # The model name to use for multi-turn agent scraping to get next user message, e.g. &quot;gemini-3-flash-preview&quot;.
17119 },
17120 },
17121 &quot;agents&quot;: { # Optional. Contains the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.
17122 &quot;a_key&quot;: { # Represents configuration for an Agent.
17123 &quot;agentId&quot;: &quot;A String&quot;, # Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map.
17124 &quot;agentType&quot;: &quot;A String&quot;, # Optional. The type or class of the agent (e.g., &quot;LlmAgent&quot;, &quot;RouterAgent&quot;, &quot;ToolUseAgent&quot;). Useful for the autorater to understand the expected behavior of the agent.
17125 &quot;description&quot;: &quot;A String&quot;, # Optional. A high-level description of the agent&#x27;s role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.
17126 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Provides instructions for the LLM model, guiding the agent&#x27;s behavior. Can be static or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be resolved at runtime using the `AgentEvent.state_delta` field.
17127 &quot;subAgents&quot;: [ # Optional. The list of valid agent IDs that this agent can delegate to. This defines the directed edges in the multi-agent system graph topology.
17128 &quot;A String&quot;,
17129 ],
17130 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
17131 { # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
17132 &quot;codeExecution&quot;: { # Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. # Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
17133 },
17134 &quot;computerUse&quot;: { # Tool to support computer use. # Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
17135 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
17136 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
17137 &quot;excludedPredefinedFunctions&quot;: [ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
17138 &quot;A String&quot;,
17139 ],
17140 },
17141 &quot;enterpriseWebSearch&quot;: { # Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. # Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
17142 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
17143 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
17144 &quot;A String&quot;,
17145 ],
17146 },
17147 &quot;exaAiSearch&quot;: { # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. # Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation
17148 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
17149 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
17150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
17151 },
17152 },
17153 &quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.
17154 { # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
17155 &quot;behavior&quot;: &quot;A String&quot;, # Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.
17156 &quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
17157 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128.
17158 &quot;parameters&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
17159 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
17160 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
17161 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17162 ],
17163 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
17164 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
17165 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17166 },
17167 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
17168 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
17169 &quot;A String&quot;,
17170 ],
17171 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
17172 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
17173 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
17174 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
17175 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
17176 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
17177 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
17178 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
17179 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
17180 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
17181 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
17182 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
17183 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
17184 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
17185 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17186 },
17187 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
17188 &quot;A String&quot;,
17189 ],
17190 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
17191 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
17192 &quot;A String&quot;,
17193 ],
17194 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
17195 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
17196 },
17197 &quot;parametersJsonSchema&quot;: &quot;&quot;, # Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;age&quot;: { &quot;type&quot;: &quot;integer&quot; } }, &quot;additionalProperties&quot;: false, &quot;required&quot;: [&quot;name&quot;, &quot;age&quot;], &quot;propertyOrdering&quot;: [&quot;name&quot;, &quot;age&quot;] } ``` This field is mutually exclusive with `parameters`.
17198 &quot;response&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
17199 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
17200 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
17201 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17202 ],
17203 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
17204 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
17205 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17206 },
17207 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
17208 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
17209 &quot;A String&quot;,
17210 ],
17211 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
17212 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
17213 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
17214 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
17215 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
17216 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
17217 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
17218 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
17219 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
17220 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
17221 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
17222 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
17223 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
17224 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
17225 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17226 },
17227 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
17228 &quot;A String&quot;,
17229 ],
17230 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
17231 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
17232 &quot;A String&quot;,
17233 ],
17234 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
17235 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
17236 },
17237 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.
17238 },
17239 ],
17240 &quot;googleMaps&quot;: { # Tool to retrieve public maps data for grounding, powered by Google. # Optional. GoogleMaps tool type. Tool to support Google Maps in Model.
17241 &quot;enableWidget&quot;: True or False, # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.
17242 },
17243 &quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
17244 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
17245 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [&quot;amazon.com&quot;, &quot;facebook.com&quot;].
17246 &quot;A String&quot;,
17247 ],
17248 &quot;searchTypes&quot;: { # Different types of search that can be enabled on the GoogleSearch tool. # Optional. The set of search types to enable. If not set, web search is enabled by default.
17249 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
17250 },
17251 &quot;webSearch&quot;: { # Standard web search for grounding and related configurations. Only text results are returned. # Optional. Setting this field enables web search. Only text results are returned.
17252 },
17253 },
17254 },
17255 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
17256 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
17257 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
17258 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
17259 },
17260 },
17261 &quot;parallelAiSearch&quot;: { # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. # Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation
17262 &quot;apiKey&quot;: &quot;A String&quot;, # Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
17263 &quot;customConfigs&quot;: { # Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { &quot;source_policy&quot;: { &quot;include_domains&quot;: [&quot;google.com&quot;, &quot;wikipedia.org&quot;], &quot;exclude_domains&quot;: [&quot;example.com&quot;] }, &quot;fetch_policy&quot;: { &quot;max_age_seconds&quot;: 3600 } }
17264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
17265 },
17266 },
17267 &quot;retrieval&quot;: { # Defines a retrieval tool that model can call to access external knowledge. # Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
17268 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
17269 &quot;externalApi&quot;: { # Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. # Use data source powered by external API for grounding.
17270 &quot;apiAuth&quot;: { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # The authentication config to access the API. Deprecated. Please use auth_config instead.
17271 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
17272 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
17273 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
17274 },
17275 },
17276 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
17277 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
17278 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
17279 &quot;apiKeySecret&quot;: &quot;A String&quot;, # Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
17280 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
17281 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
17282 &quot;name&quot;: &quot;A String&quot;, # Optional. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
17283 },
17284 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
17285 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
17286 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
17287 },
17288 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
17289 &quot;credentialSecret&quot;: &quot;A String&quot;, # Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
17290 },
17291 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
17292 &quot;accessToken&quot;: &quot;A String&quot;, # Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
17293 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
17294 },
17295 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
17296 &quot;idToken&quot;: &quot;A String&quot;, # OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
17297 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
17298 },
17299 },
17300 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
17301 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
17302 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
17303 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
17304 },
17305 &quot;endpoint&quot;: &quot;A String&quot;, # The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
17306 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
17307 },
17308 },
17309 &quot;vertexAiSearch&quot;: { # Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder # Set to use data source powered by Vertex AI Search.
17310 &quot;dataStoreSpecs&quot;: [ # Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
17311 { # Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
17312 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
17313 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
17314 },
17315 ],
17316 &quot;datastore&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
17317 &quot;engine&quot;: &quot;A String&quot;, # Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
17318 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
17319 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
17320 },
17321 &quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
17322 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
17323 &quot;A String&quot;,
17324 ],
17325 &quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
17326 { # The definition of the Rag resource.
17327 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
17328 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
17329 &quot;A String&quot;,
17330 ],
17331 },
17332 ],
17333 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
17334 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
17335 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
17336 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
17337 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
17338 },
17339 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
17340 &quot;alpha&quot;: 3.14, # Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
17341 },
17342 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
17343 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
17344 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).
17345 },
17346 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
17347 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
17348 },
17349 },
17350 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
17351 },
17352 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
17353 &quot;storeContext&quot;: True or False, # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users&#x27; ongoing and future interactions.
17354 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
17355 },
17356 },
17357 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
17358 },
17359 },
17360 ],
17361 },
17362 },
17363 &quot;generationConfig&quot;: { # Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output. # Optional. Generation config.
17364 &quot;audioTimestamp&quot;: True or False, # Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
17365 &quot;candidateCount&quot;: 42, # Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.
17366 &quot;enableAffectiveDialog&quot;: True or False, # Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.
17367 &quot;frequencyPenalty&quot;: 3.14, # Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].
17368 &quot;imageConfig&quot;: { # Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people. # Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.
17369 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: &quot;1:1&quot; &quot;2:3&quot;, &quot;3:2&quot; &quot;3:4&quot;, &quot;4:3&quot; &quot;4:5&quot;, &quot;5:4&quot; &quot;9:16&quot;, &quot;16:9&quot; &quot;21:9&quot;
17370 &quot;imageOutputOptions&quot;: { # The image output format for generated images. # Optional. The image output format for generated images.
17371 &quot;compressionQuality&quot;: 42, # Optional. The compression quality of the output image.
17372 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The image format that the output should be saved as.
17373 },
17374 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
17375 &quot;personGeneration&quot;: &quot;A String&quot;, # Optional. Controls whether the model can generate people.
17376 &quot;prominentPeople&quot;: &quot;A String&quot;, # Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.
17377 },
17378 &quot;logprobs&quot;: 42, # Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.
17379 &quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.
17380 &quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
17381 &quot;modelConfig&quot;: { # Config for model selection. # Optional. Config for model selection.
17382 &quot;featureSelectionPreference&quot;: &quot;A String&quot;, # Required. Feature selection preference.
17383 },
17384 &quot;presencePenalty&quot;: 3.14, # Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].
17385 &quot;responseFormat&quot;: [ # Optional. New response format field for the model to configure output formatting and delivery.
17386 { # Configuration for the model to configure output formatting and delivery.
17387 &quot;audio&quot;: { # Configuration for audio-specific output formatting. # Audio output format.
17388 &quot;bitRate&quot;: 42, # Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).
17389 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17390 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the audio output.
17391 &quot;sampleRate&quot;: 42, # Optional. Sample rate for the generated audio in Hertz.
17392 },
17393 &quot;image&quot;: { # Configuration for image-specific output formatting. # Image output format.
17394 &quot;aspectRatio&quot;: &quot;A String&quot;, # Optional. The aspect ratio for the image output.
17395 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17396 &quot;imageSize&quot;: &quot;A String&quot;, # Optional. The size of the image output.
17397 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The MIME type of the image output.
17398 },
17399 &quot;text&quot;: { # Configuration for text-specific output formatting. # Text output format.
17400 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response.
17401 &quot;schema&quot;: &quot;&quot;, # Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.
17402 },
17403 &quot;video&quot;: { # Configuration for video-specific output formatting. # Video output format.
17404 &quot;aspectRatio&quot;: &quot;A String&quot;, # The aspect ratio for the video output.
17405 &quot;delivery&quot;: &quot;A String&quot;, # Optional. Delivery mode for the generated content.
17406 &quot;duration&quot;: &quot;A String&quot;, # Optional. The duration for the video output.
17407 &quot;gcsUri&quot;: &quot;A String&quot;, # Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
17408 },
17409 },
17410 ],
17411 &quot;responseJsonSchema&quot;: &quot;&quot;, # Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.
17412 &quot;responseLogprobs&quot;: True or False, # Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model&#x27;s confidence in its own output and for debugging.
17413 &quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include &#x27;text/plain&#x27; (default) and &#x27;application/json&#x27;. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
17414 &quot;responseModalities&quot;: [ # Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
17415 &quot;A String&quot;,
17416 ],
17417 &quot;responseSchema&quot;: { # Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Optional. Lets you to specify a schema for the model&#x27;s response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead.
17418 &quot;additionalProperties&quot;: &quot;&quot;, # Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.
17419 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
17420 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17421 ],
17422 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
17423 &quot;defs&quot;: { # Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema.
17424 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17425 },
17426 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
17427 &quot;enum&quot;: [ # Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[&quot;EAST&quot;, &quot;NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[&quot;101&quot;, &quot;201&quot;, &quot;301&quot;]}`
17428 &quot;A String&quot;,
17429 ],
17430 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
17431 &quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type.
17432 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
17433 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
17434 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
17435 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
17436 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
17437 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
17438 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
17439 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
17440 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
17441 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
17442 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
17443 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
17444 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
17445 },
17446 &quot;propertyOrdering&quot;: [ # Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.
17447 &quot;A String&quot;,
17448 ],
17449 &quot;ref&quot;: &quot;A String&quot;, # Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named &quot;Pet&quot;: type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the &quot;pet&quot; property is a reference to the schema node named &quot;Pet&quot;. See details in https://json-schema.org/understanding-json-schema/structuring
17450 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
17451 &quot;A String&quot;,
17452 ],
17453 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
17454 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
17455 },
17456 &quot;routingConfig&quot;: { # The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. # Optional. Routing configuration.
17457 &quot;autoMode&quot;: { # The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. # In this mode, the model is selected automatically based on the content of the request.
17458 &quot;modelRoutingPreference&quot;: &quot;A String&quot;, # The model routing preference.
17459 },
17460 &quot;manualMode&quot;: { # The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. # In this mode, the model is specified manually.
17461 &quot;modelName&quot;: &quot;A String&quot;, # The name of the model to use. Only public LLM models are accepted.
17462 },
17463 },
17464 &quot;seed&quot;: 42, # Optional. A seed for the random number generator. By setting a seed, you can make the model&#x27;s output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it&#x27;s not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the &quot;random&quot; choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.
17465 &quot;speechConfig&quot;: { # Configuration for speech generation. # Optional. The speech generation config.
17466 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code (ISO 639-1) for the speech synthesis.
17467 &quot;multiSpeakerVoiceConfig&quot;: { # Configuration for a multi-speaker text-to-speech request. # The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
17468 &quot;speakerVoiceConfigs&quot;: [ # Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
17469 { # Configuration for a single speaker in a multi-speaker setup.
17470 &quot;speaker&quot;: &quot;A String&quot;, # Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
17471 &quot;voiceConfig&quot;: { # Configuration for a voice. # Required. The configuration for the voice of this speaker.
17472 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
17473 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
17474 },
17475 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
17476 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
17477 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
17478 },
17479 },
17480 },
17481 ],
17482 },
17483 &quot;voiceConfig&quot;: { # Configuration for a voice. # The configuration for the voice to use.
17484 &quot;prebuiltVoiceConfig&quot;: { # Configuration for a prebuilt voice. # The configuration for a prebuilt voice.
17485 &quot;voiceName&quot;: &quot;A String&quot;, # The name of the prebuilt voice to use.
17486 },
17487 &quot;replicatedVoiceConfig&quot;: { # The configuration for the replicated voice to use. # Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample.
17488 &quot;mimeType&quot;: &quot;A String&quot;, # Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
17489 &quot;voiceSampleAudio&quot;: &quot;A String&quot;, # Optional. The sample of the custom voice.
17490 },
17491 },
17492 },
17493 &quot;stopSequences&quot;: [ # Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [&quot;\n&quot;, &quot;###&quot;] to stop generation at a new line or a specific marker.
17494 &quot;A String&quot;,
17495 ],
17496 &quot;temperature&quot;: 3.14, # Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].
17497 &quot;thinkingConfig&quot;: { # Configuration for the model&#x27;s thinking features. &quot;Thinking&quot; is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response. # Optional. Configuration for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
17498 &quot;includeThoughts&quot;: True or False, # Optional. If true, the model will include its thoughts in the response. &quot;Thoughts&quot; are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model&#x27;s reasoning process and help with debugging. If this is true, thoughts are returned only when available.
17499 &quot;thinkingBudget&quot;: 42, # Optional. The token budget for the model&#x27;s thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.
17500 &quot;thinkingLevel&quot;: &quot;A String&quot;, # Optional. The number of thoughts tokens that the model should generate.
17501 },
17502 &quot;topK&quot;: 3.14, # Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
17503 &quot;topP&quot;: 3.14, # Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It&#x27;s recommended to adjust either temperature or `top_p`, but not both.
17504 },
17505 &quot;model&quot;: &quot;A String&quot;, # Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and Llama third-party models are also supported through Model Garden. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Third-party model formats: `projects/{project}/locations/{location}/publishers/anthropic/models/{model}` or `projects/{project}/locations/{location}/publishers/llama/models/{model}` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
17506 &quot;parallelism&quot;: 42, # Optional. The parallelism of the evaluation run for the inference step. If not specified, the default parallelism will be used.
17507 },
17508 },
17509 &quot;labels&quot;: { # Optional. Labels for the evaluation run.
17510 &quot;a_key&quot;: &quot;A String&quot;,
17511 },
17512 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.
17513 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`
17514 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the evaluation run.
17515 },
17516 ],
17517 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results.
17518 }</pre>
17519 </div>
17520
17521 <div class="method">
17522 <code class="details" id="list_next">list_next()</code>
17523 <pre>Retrieves the next page of results.
17524
17525 Args:
17526 previous_request: The request for the previous page. (required)
17527 previous_response: The response from the request for the previous page. (required)
17528
17529 Returns:
17530 A request object that you can call &#x27;execute()&#x27; on to request the next
17531 page. Returns None if there are no more items in the collection.
17532 </pre>
17533 </div>
17534
17535 </body></html>