Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.evaluationSets.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.evaluationSets.html">evaluationSets</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.projects.locations.evaluationSets.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="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates an Evaluation Set.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an Evaluation Set.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets an Evaluation Set.</p>
94 <p class="toc_element">
95 <code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Imports an Evaluation Set.</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 Sets.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Updates an Evaluation Set.</p>
106 <h3>Method Details</h3>
107 <div class="method">
108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110 </div>
111
112 <div class="method">
113 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
114 <pre>Creates an Evaluation Set.
115
116 Args:
117 parent: string, Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}` (required)
118 body: object, The request body.
119 The object takes the form of:
120
121 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
122 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
123 &quot;a_key&quot;: { # Represents configuration for an Agent.
124 &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.
125 &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.
126 &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.
127 &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.
128 &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.
129 &quot;A String&quot;,
130 ],
131 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
132 { # 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).
133 &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.
134 },
135 &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.
136 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
137 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
138 &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.
139 &quot;A String&quot;,
140 ],
141 },
142 &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.
143 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
144 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
145 &quot;A String&quot;,
146 ],
147 },
148 &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
149 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
150 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
152 },
153 },
154 &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.
155 { # 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.
156 &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.
157 &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.
158 &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.
159 &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
160 &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.
161 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
162 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
163 ],
164 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
165 &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.
166 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
167 },
168 &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.
169 &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;]}`
170 &quot;A String&quot;,
171 ],
172 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
173 &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.
174 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
175 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
176 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
177 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
178 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
179 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
180 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
181 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
182 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
183 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
184 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
185 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
186 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
187 },
188 &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.
189 &quot;A String&quot;,
190 ],
191 &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
192 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
193 &quot;A String&quot;,
194 ],
195 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
196 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
197 },
198 &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`.
199 &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.
200 &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.
201 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
202 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
203 ],
204 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
205 &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.
206 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
207 },
208 &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.
209 &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;]}`
210 &quot;A String&quot;,
211 ],
212 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
213 &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.
214 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
215 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
216 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
217 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
218 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
219 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
220 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
221 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
222 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
223 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
224 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
225 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
226 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
227 },
228 &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.
229 &quot;A String&quot;,
230 ],
231 &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
232 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
233 &quot;A String&quot;,
234 ],
235 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
236 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
237 },
238 &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`.
239 },
240 ],
241 &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.
242 &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.
243 },
244 &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.
245 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
246 &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;].
247 &quot;A String&quot;,
248 ],
249 &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.
250 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
251 },
252 &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.
253 },
254 },
255 },
256 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
257 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
258 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
259 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
260 },
261 },
262 &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
263 &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.
264 &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 } }
265 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
266 },
267 },
268 &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.
269 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
270 &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.
271 &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.
272 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
273 &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}
274 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
275 },
276 },
277 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
278 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
279 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
280 &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.
281 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
282 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
283 &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.
284 },
285 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
286 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
287 &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.
288 },
289 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
290 &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.
291 },
292 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
293 &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.
294 &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.
295 },
296 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
297 &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.
298 &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).
299 },
300 },
301 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
302 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
303 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
304 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
305 },
306 &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
307 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
308 },
309 },
310 &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.
311 &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.
312 { # 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
313 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
314 &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)
315 },
316 ],
317 &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}`
318 &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}`
319 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
320 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
321 },
322 &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.
323 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
324 &quot;A String&quot;,
325 ],
326 &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.
327 { # The definition of the Rag resource.
328 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
329 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
330 &quot;A String&quot;,
331 ],
332 },
333 ],
334 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
335 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
336 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
337 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
338 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
339 },
340 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
341 &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.
342 },
343 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
344 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
345 &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).
346 },
347 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
348 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
349 },
350 },
351 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
352 },
353 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
354 &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.
355 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
356 },
357 },
358 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
359 },
360 },
361 ],
362 },
363 },
364 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
365 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
366 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
367 &quot;A String&quot;,
368 ],
369 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
370 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
371 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
372 }
373
374 x__xgafv: string, V1 error format.
375 Allowed values
376 1 - v1 error format
377 2 - v2 error format
378
379 Returns:
380 An object of the form:
381
382 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
383 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
384 &quot;a_key&quot;: { # Represents configuration for an Agent.
385 &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.
386 &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.
387 &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.
388 &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.
389 &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.
390 &quot;A String&quot;,
391 ],
392 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
393 { # 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).
394 &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.
395 },
396 &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.
397 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
398 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
399 &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.
400 &quot;A String&quot;,
401 ],
402 },
403 &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.
404 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
405 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
406 &quot;A String&quot;,
407 ],
408 },
409 &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
410 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
411 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
412 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
413 },
414 },
415 &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.
416 { # 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.
417 &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.
418 &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.
419 &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.
420 &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
421 &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.
422 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
423 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
424 ],
425 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
426 &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.
427 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
428 },
429 &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.
430 &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;]}`
431 &quot;A String&quot;,
432 ],
433 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
434 &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.
435 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
436 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
437 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
438 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
439 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
440 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
441 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
442 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
443 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
444 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
445 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
446 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
447 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
448 },
449 &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.
450 &quot;A String&quot;,
451 ],
452 &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
453 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
454 &quot;A String&quot;,
455 ],
456 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
457 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
458 },
459 &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`.
460 &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.
461 &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.
462 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
463 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
464 ],
465 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
466 &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.
467 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
468 },
469 &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.
470 &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;]}`
471 &quot;A String&quot;,
472 ],
473 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
474 &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.
475 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
476 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
477 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
478 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
479 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
480 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
481 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
482 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
483 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
484 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
485 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
486 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
487 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
488 },
489 &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.
490 &quot;A String&quot;,
491 ],
492 &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
493 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
494 &quot;A String&quot;,
495 ],
496 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
497 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
498 },
499 &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`.
500 },
501 ],
502 &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.
503 &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.
504 },
505 &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.
506 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
507 &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;].
508 &quot;A String&quot;,
509 ],
510 &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.
511 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
512 },
513 &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.
514 },
515 },
516 },
517 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
518 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
519 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
520 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
521 },
522 },
523 &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
524 &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.
525 &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 } }
526 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
527 },
528 },
529 &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.
530 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
531 &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.
532 &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.
533 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
534 &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}
535 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
536 },
537 },
538 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
539 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
540 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
541 &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.
542 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
543 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
544 &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.
545 },
546 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
547 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
548 &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.
549 },
550 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
551 &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.
552 },
553 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
554 &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.
555 &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.
556 },
557 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
558 &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.
559 &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).
560 },
561 },
562 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
563 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
564 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
565 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
566 },
567 &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
568 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
569 },
570 },
571 &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.
572 &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.
573 { # 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
574 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
575 &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)
576 },
577 ],
578 &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}`
579 &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}`
580 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
581 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
582 },
583 &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.
584 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
585 &quot;A String&quot;,
586 ],
587 &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.
588 { # The definition of the Rag resource.
589 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
590 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
591 &quot;A String&quot;,
592 ],
593 },
594 ],
595 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
596 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
597 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
598 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
599 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
600 },
601 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
602 &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.
603 },
604 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
605 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
606 &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).
607 },
608 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
609 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
610 },
611 },
612 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
613 },
614 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
615 &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.
616 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
617 },
618 },
619 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
620 },
621 },
622 ],
623 },
624 },
625 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
626 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
627 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
628 &quot;A String&quot;,
629 ],
630 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
631 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
632 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
633 }</pre>
634 </div>
635
636 <div class="method">
637 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
638 <pre>Deletes an Evaluation Set.
639
640 Args:
641 name: string, Required. The name of the EvaluationSet resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` (required)
642 x__xgafv: string, V1 error format.
643 Allowed values
644 1 - v1 error format
645 2 - v2 error format
646
647 Returns:
648 An object of the form:
649
650 { # This resource represents a long-running operation that is the result of a network API call.
651 &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.
652 &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.
653 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
654 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
655 {
656 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
657 },
658 ],
659 &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.
660 },
661 &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.
662 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
663 },
664 &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}`.
665 &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`.
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
668 }</pre>
669 </div>
670
671 <div class="method">
672 <code class="details" id="get">get(name, x__xgafv=None)</code>
673 <pre>Gets an Evaluation Set.
674
675 Args:
676 name: string, Required. The name of the EvaluationSet resource. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` (required)
677 x__xgafv: string, V1 error format.
678 Allowed values
679 1 - v1 error format
680 2 - v2 error format
681
682 Returns:
683 An object of the form:
684
685 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
686 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
687 &quot;a_key&quot;: { # Represents configuration for an Agent.
688 &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.
689 &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.
690 &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.
691 &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.
692 &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.
693 &quot;A String&quot;,
694 ],
695 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
696 { # 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).
697 &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.
698 },
699 &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.
700 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
701 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
702 &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.
703 &quot;A String&quot;,
704 ],
705 },
706 &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.
707 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
708 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
709 &quot;A String&quot;,
710 ],
711 },
712 &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
713 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
714 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
715 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
716 },
717 },
718 &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.
719 { # 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.
720 &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.
721 &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.
722 &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.
723 &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
724 &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.
725 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
726 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
727 ],
728 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
729 &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.
730 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
731 },
732 &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.
733 &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;]}`
734 &quot;A String&quot;,
735 ],
736 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
737 &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.
738 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
739 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
740 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
741 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
742 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
743 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
744 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
745 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
746 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
747 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
748 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
749 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
750 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
751 },
752 &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.
753 &quot;A String&quot;,
754 ],
755 &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
756 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
757 &quot;A String&quot;,
758 ],
759 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
760 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
761 },
762 &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`.
763 &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.
764 &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.
765 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
766 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
767 ],
768 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
769 &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.
770 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
771 },
772 &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.
773 &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;]}`
774 &quot;A String&quot;,
775 ],
776 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
777 &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.
778 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
779 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
780 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
781 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
782 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
783 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
784 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
785 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
786 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
787 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
788 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
789 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
790 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
791 },
792 &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.
793 &quot;A String&quot;,
794 ],
795 &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
796 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
797 &quot;A String&quot;,
798 ],
799 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
800 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
801 },
802 &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`.
803 },
804 ],
805 &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.
806 &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.
807 },
808 &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.
809 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
810 &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;].
811 &quot;A String&quot;,
812 ],
813 &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.
814 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
815 },
816 &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.
817 },
818 },
819 },
820 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
821 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
822 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
823 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
824 },
825 },
826 &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
827 &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.
828 &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 } }
829 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
830 },
831 },
832 &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.
833 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
834 &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.
835 &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.
836 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
837 &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}
838 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
839 },
840 },
841 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
842 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
843 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
844 &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.
845 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
846 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
847 &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.
848 },
849 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
850 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
851 &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.
852 },
853 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
854 &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.
855 },
856 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
857 &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.
858 &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.
859 },
860 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
861 &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.
862 &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).
863 },
864 },
865 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
866 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
867 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
868 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
869 },
870 &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
871 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
872 },
873 },
874 &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.
875 &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.
876 { # 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
877 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
878 &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)
879 },
880 ],
881 &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}`
882 &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}`
883 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
884 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
885 },
886 &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.
887 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
888 &quot;A String&quot;,
889 ],
890 &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.
891 { # The definition of the Rag resource.
892 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
893 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
894 &quot;A String&quot;,
895 ],
896 },
897 ],
898 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
899 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
900 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
901 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
902 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
903 },
904 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
905 &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.
906 },
907 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
908 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
909 &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).
910 },
911 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
912 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
913 },
914 },
915 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
916 },
917 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
918 &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.
919 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
920 },
921 },
922 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
923 },
924 },
925 ],
926 },
927 },
928 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
929 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
930 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
931 &quot;A String&quot;,
932 ],
933 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
934 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
935 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
936 }</pre>
937 </div>
938
939 <div class="method">
940 <code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
941 <pre>Imports an Evaluation Set.
942
943 Args:
944 parent: string, Required. Parent resource name. (required)
945 body: object, The request body.
946 The object takes the form of:
947
948 { # Request message for EvaluationManagementService.ImportEvaluationSet.
949 &quot;agentEngineSource&quot;: { # Source for loading Agent Engine sessions. # Source for loading Agent Engine sessions.
950 &quot;location&quot;: &quot;A String&quot;, # Required. Location for the Agent Engine sessions.
951 &quot;projectId&quot;: &quot;A String&quot;, # Required. Project ID for the Agent Engine sessions.
952 &quot;reasoningEngineId&quot;: &quot;A String&quot;, # Required. Reasoning Engine ID for the Agent Engine sessions.
953 &quot;sessionIds&quot;: [ # Required. Session IDs for the Agent Engine sessions to retrieve.
954 &quot;A String&quot;,
955 ],
956 },
957 &quot;bigquerySource&quot;: { # The request set for the evaluation run. # BigQuery source with column mappings.
958 &quot;candidateResponseColumns&quot;: { # Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.
959 &quot;a_key&quot;: &quot;A String&quot;,
960 },
961 &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.
962 &quot;rubricsColumn&quot;: &quot;A String&quot;, # Optional. The name of the column that contains the rubrics. This is in evaluation_rubric.RubricGroup format.
963 &quot;samplingConfig&quot;: { # The sampling config. # Optional. The sampling config for the bigquery resource.
964 &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.
965 &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.
966 &quot;samplingMethod&quot;: &quot;A String&quot;, # Optional. The sampling method to use.
967 },
968 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId
969 },
970 &quot;cloudTraceSource&quot;: { # Source for loading traces directly from Cloud Trace. # Source for loading data directly from Cloud Trace.
971 &quot;projectId&quot;: &quot;A String&quot;, # Required. Project ID for the Cloud Trace.
972 &quot;sessionIds&quot;: [ # Optional. Session IDs to import traces for. If both trace_ids and session_ids are specified, the union of the two will be imported.
973 &quot;A String&quot;,
974 ],
975 &quot;traceIds&quot;: [ # Optional. Trace IDs to import.
976 &quot;A String&quot;,
977 ],
978 },
979 &quot;evaluationSet&quot;: { # EvaluationSet is a collection of related EvaluationItems that are evaluated together. # Required. The EvaluationSet to create. Used to specify &#x27;display_name&#x27; and &#x27;metadata&#x27;. The &#x27;evaluation_items&#x27; field is ignored and populated by the import process.
980 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
981 &quot;a_key&quot;: { # Represents configuration for an Agent.
982 &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.
983 &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.
984 &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.
985 &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.
986 &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.
987 &quot;A String&quot;,
988 ],
989 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
990 { # 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).
991 &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.
992 },
993 &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.
994 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
995 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
996 &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.
997 &quot;A String&quot;,
998 ],
999 },
1000 &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.
1001 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1002 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1003 &quot;A String&quot;,
1004 ],
1005 },
1006 &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
1007 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1008 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1009 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1010 },
1011 },
1012 &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.
1013 { # 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.
1014 &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.
1015 &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.
1016 &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.
1017 &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
1018 &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.
1019 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1020 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1021 ],
1022 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1023 &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.
1024 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1025 },
1026 &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.
1027 &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;]}`
1028 &quot;A String&quot;,
1029 ],
1030 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1031 &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.
1032 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1033 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1034 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1035 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1036 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1037 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1038 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1039 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1040 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1041 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1042 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1043 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1044 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1045 },
1046 &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.
1047 &quot;A String&quot;,
1048 ],
1049 &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
1050 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1051 &quot;A String&quot;,
1052 ],
1053 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1054 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1055 },
1056 &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`.
1057 &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.
1058 &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.
1059 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1060 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1061 ],
1062 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1063 &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.
1064 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1065 },
1066 &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.
1067 &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;]}`
1068 &quot;A String&quot;,
1069 ],
1070 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1071 &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.
1072 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1073 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1074 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1075 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1076 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1077 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1078 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1079 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1080 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1081 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1082 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1083 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1084 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1085 },
1086 &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.
1087 &quot;A String&quot;,
1088 ],
1089 &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
1090 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1091 &quot;A String&quot;,
1092 ],
1093 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1094 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1095 },
1096 &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`.
1097 },
1098 ],
1099 &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.
1100 &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.
1101 },
1102 &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.
1103 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1104 &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;].
1105 &quot;A String&quot;,
1106 ],
1107 &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.
1108 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1109 },
1110 &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.
1111 },
1112 },
1113 },
1114 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1115 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1116 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1117 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1118 },
1119 },
1120 &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
1121 &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.
1122 &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 } }
1123 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1124 },
1125 },
1126 &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.
1127 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1128 &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.
1129 &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.
1130 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1131 &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}
1132 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1133 },
1134 },
1135 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1136 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1137 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
1138 &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.
1139 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
1140 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
1141 &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.
1142 },
1143 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
1144 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
1145 &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.
1146 },
1147 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
1148 &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.
1149 },
1150 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
1151 &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.
1152 &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.
1153 },
1154 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
1155 &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.
1156 &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).
1157 },
1158 },
1159 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
1160 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
1161 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
1162 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
1163 },
1164 &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
1165 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
1166 },
1167 },
1168 &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.
1169 &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.
1170 { # 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
1171 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
1172 &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)
1173 },
1174 ],
1175 &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}`
1176 &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}`
1177 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
1178 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
1179 },
1180 &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.
1181 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
1182 &quot;A String&quot;,
1183 ],
1184 &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.
1185 { # The definition of the Rag resource.
1186 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
1187 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
1188 &quot;A String&quot;,
1189 ],
1190 },
1191 ],
1192 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
1193 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
1194 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
1195 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
1196 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
1197 },
1198 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
1199 &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.
1200 },
1201 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
1202 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
1203 &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).
1204 },
1205 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
1206 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
1207 },
1208 },
1209 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
1210 },
1211 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
1212 &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.
1213 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
1214 },
1215 },
1216 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
1217 },
1218 },
1219 ],
1220 },
1221 },
1222 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
1223 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
1224 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
1225 &quot;A String&quot;,
1226 ],
1227 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
1228 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
1229 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
1230 },
1231 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output is to be written to. # Required. The Cloud Storage location where the resulting EvaluationItem payloads will be stored.
1232 &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.
1233 },
1234 &quot;gcsSource&quot;: { # Source for loading data from Cloud Storage. # Google Cloud Storage location.
1235 &quot;gcsUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage location of the input data.
1236 &quot;importSchemaConfig&quot;: { # Configuration for the input data format. # Required. Schema configuration for the input data.
1237 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data.
1238 &quot;dataFormatVersion&quot;: &quot;A String&quot;, # Optional. Version of the data format.
1239 },
1240 },
1241 &quot;inlineSource&quot;: { # Wrapper for inline data. # Inline source for small payloads (&lt; 4MB).
1242 &quot;content&quot;: &quot;A String&quot;, # Required. The content of the inline data.
1243 &quot;importSchemaConfig&quot;: { # Configuration for the input data format. # Required. Schema configuration for the inline data.
1244 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data.
1245 &quot;dataFormatVersion&quot;: &quot;A String&quot;, # Optional. Version of the data format.
1246 },
1247 },
1248 }
1249
1250 x__xgafv: string, V1 error format.
1251 Allowed values
1252 1 - v1 error format
1253 2 - v2 error format
1254
1255 Returns:
1256 An object of the form:
1257
1258 { # This resource represents a long-running operation that is the result of a network API call.
1259 &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.
1260 &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.
1261 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1262 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1263 {
1264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1265 },
1266 ],
1267 &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.
1268 },
1269 &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.
1270 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1271 },
1272 &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}`.
1273 &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`.
1274 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1275 },
1276 }</pre>
1277 </div>
1278
1279 <div class="method">
1280 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
1281 <pre>Lists Evaluation Sets.
1282
1283 Args:
1284 parent: string, Required. The resource name of the Location from which to list the Evaluation Sets. Format: `projects/{project}/locations/{location}` (required)
1285 filter: string, Optional. Filter expression that matches a subset of the EvaluationSets 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).
1286 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.
1287 pageSize: integer, Optional. The maximum number of Evaluation Sets to return.
1288 pageToken: string, Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to retrieve the subsequent page.
1289 x__xgafv: string, V1 error format.
1290 Allowed values
1291 1 - v1 error format
1292 2 - v2 error format
1293
1294 Returns:
1295 An object of the form:
1296
1297 { # Response message for EvaluationManagementService.ListEvaluationSets.
1298 &quot;evaluationSets&quot;: [ # List of EvaluationSets in the requested page.
1299 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
1300 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
1301 &quot;a_key&quot;: { # Represents configuration for an Agent.
1302 &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.
1303 &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.
1304 &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.
1305 &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.
1306 &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.
1307 &quot;A String&quot;,
1308 ],
1309 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
1310 { # 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).
1311 &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.
1312 },
1313 &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.
1314 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
1315 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
1316 &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.
1317 &quot;A String&quot;,
1318 ],
1319 },
1320 &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.
1321 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1322 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1323 &quot;A String&quot;,
1324 ],
1325 },
1326 &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
1327 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1328 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1330 },
1331 },
1332 &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.
1333 { # 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.
1334 &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.
1335 &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.
1336 &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.
1337 &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
1338 &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.
1339 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1340 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1341 ],
1342 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1343 &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.
1344 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1345 },
1346 &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.
1347 &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;]}`
1348 &quot;A String&quot;,
1349 ],
1350 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1351 &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.
1352 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1353 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1354 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1355 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1356 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1357 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1358 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1359 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1360 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1361 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1362 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1363 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1364 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1365 },
1366 &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.
1367 &quot;A String&quot;,
1368 ],
1369 &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
1370 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1371 &quot;A String&quot;,
1372 ],
1373 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1374 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1375 },
1376 &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`.
1377 &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.
1378 &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.
1379 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1380 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1381 ],
1382 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1383 &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.
1384 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1385 },
1386 &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.
1387 &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;]}`
1388 &quot;A String&quot;,
1389 ],
1390 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1391 &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.
1392 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1393 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1394 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1395 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1396 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1397 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1398 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1399 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1400 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1401 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1402 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1403 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1404 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1405 },
1406 &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.
1407 &quot;A String&quot;,
1408 ],
1409 &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
1410 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1411 &quot;A String&quot;,
1412 ],
1413 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1414 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1415 },
1416 &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`.
1417 },
1418 ],
1419 &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.
1420 &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.
1421 },
1422 &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.
1423 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1424 &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;].
1425 &quot;A String&quot;,
1426 ],
1427 &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.
1428 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1429 },
1430 &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.
1431 },
1432 },
1433 },
1434 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1435 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1436 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1437 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1438 },
1439 },
1440 &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
1441 &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.
1442 &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 } }
1443 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1444 },
1445 },
1446 &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.
1447 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1448 &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.
1449 &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.
1450 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1451 &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}
1452 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1453 },
1454 },
1455 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1456 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1457 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
1458 &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.
1459 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
1460 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
1461 &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.
1462 },
1463 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
1464 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
1465 &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.
1466 },
1467 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
1468 &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.
1469 },
1470 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
1471 &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.
1472 &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.
1473 },
1474 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
1475 &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.
1476 &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).
1477 },
1478 },
1479 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
1480 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
1481 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
1482 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
1483 },
1484 &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
1485 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
1486 },
1487 },
1488 &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.
1489 &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.
1490 { # 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
1491 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
1492 &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)
1493 },
1494 ],
1495 &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}`
1496 &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}`
1497 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
1498 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
1499 },
1500 &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.
1501 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
1502 &quot;A String&quot;,
1503 ],
1504 &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.
1505 { # The definition of the Rag resource.
1506 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
1507 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
1508 &quot;A String&quot;,
1509 ],
1510 },
1511 ],
1512 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
1513 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
1514 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
1515 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
1516 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
1517 },
1518 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
1519 &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.
1520 },
1521 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
1522 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
1523 &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).
1524 },
1525 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
1526 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
1527 },
1528 },
1529 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
1530 },
1531 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
1532 &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.
1533 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
1534 },
1535 },
1536 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
1537 },
1538 },
1539 ],
1540 },
1541 },
1542 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
1543 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
1544 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
1545 &quot;A String&quot;,
1546 ],
1547 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
1548 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
1549 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
1550 },
1551 ],
1552 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results.
1553 }</pre>
1554 </div>
1555
1556 <div class="method">
1557 <code class="details" id="list_next">list_next()</code>
1558 <pre>Retrieves the next page of results.
1559
1560 Args:
1561 previous_request: The request for the previous page. (required)
1562 previous_response: The response from the request for the previous page. (required)
1563
1564 Returns:
1565 A request object that you can call &#x27;execute()&#x27; on to request the next
1566 page. Returns None if there are no more items in the collection.
1567 </pre>
1568 </div>
1569
1570 <div class="method">
1571 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
1572 <pre>Updates an Evaluation Set.
1573
1574 Args:
1575 name: string, Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` (required)
1576 body: object, The request body.
1577 The object takes the form of:
1578
1579 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
1580 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
1581 &quot;a_key&quot;: { # Represents configuration for an Agent.
1582 &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.
1583 &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.
1584 &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.
1585 &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.
1586 &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.
1587 &quot;A String&quot;,
1588 ],
1589 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
1590 { # 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).
1591 &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.
1592 },
1593 &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.
1594 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
1595 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
1596 &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.
1597 &quot;A String&quot;,
1598 ],
1599 },
1600 &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.
1601 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1602 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1603 &quot;A String&quot;,
1604 ],
1605 },
1606 &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
1607 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1608 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1609 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1610 },
1611 },
1612 &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.
1613 { # 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.
1614 &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.
1615 &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.
1616 &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.
1617 &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
1618 &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.
1619 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1620 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1621 ],
1622 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1623 &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.
1624 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1625 },
1626 &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.
1627 &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;]}`
1628 &quot;A String&quot;,
1629 ],
1630 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1631 &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.
1632 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1633 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1634 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1635 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1636 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1637 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1638 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1639 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1640 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1641 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1642 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1643 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1644 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1645 },
1646 &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.
1647 &quot;A String&quot;,
1648 ],
1649 &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
1650 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1651 &quot;A String&quot;,
1652 ],
1653 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1654 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1655 },
1656 &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`.
1657 &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.
1658 &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.
1659 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1660 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1661 ],
1662 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1663 &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.
1664 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1665 },
1666 &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.
1667 &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;]}`
1668 &quot;A String&quot;,
1669 ],
1670 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1671 &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.
1672 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1673 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1674 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1675 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1676 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1677 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1678 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1679 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1680 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1681 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1682 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1683 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1684 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1685 },
1686 &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.
1687 &quot;A String&quot;,
1688 ],
1689 &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
1690 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1691 &quot;A String&quot;,
1692 ],
1693 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1694 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1695 },
1696 &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`.
1697 },
1698 ],
1699 &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.
1700 &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.
1701 },
1702 &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.
1703 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1704 &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;].
1705 &quot;A String&quot;,
1706 ],
1707 &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.
1708 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1709 },
1710 &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.
1711 },
1712 },
1713 },
1714 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1715 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1716 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1717 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1718 },
1719 },
1720 &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
1721 &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.
1722 &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 } }
1723 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1724 },
1725 },
1726 &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.
1727 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1728 &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.
1729 &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.
1730 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1731 &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}
1732 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1733 },
1734 },
1735 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1736 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1737 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
1738 &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.
1739 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
1740 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
1741 &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.
1742 },
1743 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
1744 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
1745 &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.
1746 },
1747 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
1748 &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.
1749 },
1750 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
1751 &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.
1752 &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.
1753 },
1754 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
1755 &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.
1756 &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).
1757 },
1758 },
1759 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
1760 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
1761 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
1762 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
1763 },
1764 &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
1765 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
1766 },
1767 },
1768 &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.
1769 &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.
1770 { # 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
1771 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
1772 &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)
1773 },
1774 ],
1775 &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}`
1776 &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}`
1777 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
1778 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
1779 },
1780 &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.
1781 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
1782 &quot;A String&quot;,
1783 ],
1784 &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.
1785 { # The definition of the Rag resource.
1786 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
1787 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
1788 &quot;A String&quot;,
1789 ],
1790 },
1791 ],
1792 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
1793 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
1794 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
1795 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
1796 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
1797 },
1798 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
1799 &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.
1800 },
1801 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
1802 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
1803 &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).
1804 },
1805 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
1806 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
1807 },
1808 },
1809 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
1810 },
1811 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
1812 &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.
1813 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
1814 },
1815 },
1816 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
1817 },
1818 },
1819 ],
1820 },
1821 },
1822 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
1823 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
1824 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
1825 &quot;A String&quot;,
1826 ],
1827 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
1828 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
1829 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
1830 }
1831
1832 updateMask: string, Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.
1833 x__xgafv: string, V1 error format.
1834 Allowed values
1835 1 - v1 error format
1836 2 - v2 error format
1837
1838 Returns:
1839 An object of the form:
1840
1841 { # EvaluationSet is a collection of related EvaluationItems that are evaluated together.
1842 &quot;agentConfigs&quot;: { # Optional. Static configurations for each agent associated with the items in this set. Key: `agent_id` (matches the `author` field in `events`). Value: The static configuration of the agent.
1843 &quot;a_key&quot;: { # Represents configuration for an Agent.
1844 &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.
1845 &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.
1846 &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.
1847 &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.
1848 &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.
1849 &quot;A String&quot;,
1850 ],
1851 &quot;tools&quot;: [ # Optional. The list of tools available to this agent.
1852 { # 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).
1853 &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.
1854 },
1855 &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.
1856 &quot;enablePromptInjectionDetection&quot;: True or False, # Optional. Enables the prompt injection detection check on computer-use request.
1857 &quot;environment&quot;: &quot;A String&quot;, # Required. The environment being operated.
1858 &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.
1859 &quot;A String&quot;,
1860 ],
1861 },
1862 &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.
1863 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1864 &quot;excludeDomains&quot;: [ # Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
1865 &quot;A String&quot;,
1866 ],
1867 },
1868 &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
1869 &quot;apiKey&quot;: &quot;A String&quot;, # Required. The API key for ExaAiSearch.
1870 &quot;customConfigs&quot;: { # Optional. This field can be used to pass any parameter from the Exa.ai Search API.
1871 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1872 },
1873 },
1874 &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.
1875 { # 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.
1876 &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.
1877 &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.
1878 &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.
1879 &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
1880 &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.
1881 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1882 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1883 ],
1884 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1885 &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.
1886 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1887 },
1888 &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.
1889 &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;]}`
1890 &quot;A String&quot;,
1891 ],
1892 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1893 &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.
1894 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1895 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1896 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1897 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1898 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1899 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1900 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1901 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1902 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1903 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1904 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1905 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1906 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1907 },
1908 &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.
1909 &quot;A String&quot;,
1910 ],
1911 &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
1912 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1913 &quot;A String&quot;,
1914 ],
1915 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1916 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1917 },
1918 &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`.
1919 &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.
1920 &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.
1921 &quot;anyOf&quot;: [ # Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.
1922 # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1923 ],
1924 &quot;default&quot;: &quot;&quot;, # Optional. Default value to use if the field is not specified.
1925 &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.
1926 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1927 },
1928 &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.
1929 &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;]}`
1930 &quot;A String&quot;,
1931 ],
1932 &quot;example&quot;: &quot;&quot;, # Optional. Example of an instance of this schema.
1933 &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.
1934 &quot;items&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema # Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array.
1935 &quot;maxItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.
1936 &quot;maxLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.
1937 &quot;maxProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.
1938 &quot;maximum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.
1939 &quot;minItems&quot;: &quot;A String&quot;, # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.
1940 &quot;minLength&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.
1941 &quot;minProperties&quot;: &quot;A String&quot;, # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.
1942 &quot;minimum&quot;: 3.14, # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.
1943 &quot;nullable&quot;: True or False, # Optional. Indicates if the value of this field can be null.
1944 &quot;pattern&quot;: &quot;A String&quot;, # Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match.
1945 &quot;properties&quot;: { # Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object.
1946 &quot;a_key&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1Schema
1947 },
1948 &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.
1949 &quot;A String&quot;,
1950 ],
1951 &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
1952 &quot;required&quot;: [ # Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.
1953 &quot;A String&quot;,
1954 ],
1955 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the schema.
1956 &quot;type&quot;: &quot;A String&quot;, # Optional. Data type of the schema field.
1957 },
1958 &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`.
1959 },
1960 ],
1961 &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.
1962 &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.
1963 },
1964 &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.
1965 &quot;blockingConfidence&quot;: &quot;A String&quot;, # Optional. Sites with confidence level chosen &amp; above this value will be blocked from the search results.
1966 &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;].
1967 &quot;A String&quot;,
1968 ],
1969 &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.
1970 &quot;imageSearch&quot;: { # Image search for grounding and related configurations. # Optional. Setting this field enables image search. Image bytes are returned.
1971 },
1972 &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.
1973 },
1974 },
1975 },
1976 &quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. Specialized retrieval tool that is powered by Google Search.
1977 &quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
1978 &quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
1979 &quot;mode&quot;: &quot;A String&quot;, # The mode of the predictor to be used in dynamic retrieval.
1980 },
1981 },
1982 &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
1983 &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.
1984 &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 } }
1985 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1986 },
1987 },
1988 &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.
1989 &quot;disableAttribution&quot;: True or False, # Optional. Deprecated. This option is no longer supported.
1990 &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.
1991 &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.
1992 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
1993 &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}
1994 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
1995 },
1996 },
1997 &quot;apiSpec&quot;: &quot;A String&quot;, # The API spec that the external API implements.
1998 &quot;authConfig&quot;: { # Auth configuration to run the extension. # The authentication config to access the API.
1999 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Config for API key auth.
2000 &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.
2001 &quot;apiKeyString&quot;: &quot;A String&quot;, # Optional. The API key to be used in the request directly.
2002 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Optional. The location of the API key.
2003 &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.
2004 },
2005 &quot;authType&quot;: &quot;A String&quot;, # Type of auth scheme.
2006 &quot;googleServiceAccountConfig&quot;: { # Config for Google Service Account Authentication. # Config for Google Service Account auth.
2007 &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.
2008 },
2009 &quot;httpBasicAuthConfig&quot;: { # Config for HTTP Basic Authentication. # Config for HTTP Basic auth.
2010 &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.
2011 },
2012 &quot;oauthConfig&quot;: { # Config for user oauth. # Config for user oauth.
2013 &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.
2014 &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.
2015 },
2016 &quot;oidcConfig&quot;: { # Config for user OIDC auth. # Config for user OIDC auth.
2017 &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.
2018 &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).
2019 },
2020 },
2021 &quot;elasticSearchParams&quot;: { # The search parameters to use for the ELASTIC_SEARCH spec. # Parameters for the elastic search API.
2022 &quot;index&quot;: &quot;A String&quot;, # The ElasticSearch index to use.
2023 &quot;numHits&quot;: 42, # Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param.
2024 &quot;searchTemplate&quot;: &quot;A String&quot;, # The ElasticSearch search template to use.
2025 },
2026 &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
2027 &quot;simpleSearchParams&quot;: { # The search parameters to use for SIMPLE_SEARCH spec. # Parameters for the simple search API.
2028 },
2029 },
2030 &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.
2031 &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.
2032 { # 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
2033 &quot;dataStore&quot;: &quot;A String&quot;, # Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
2034 &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)
2035 },
2036 ],
2037 &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}`
2038 &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}`
2039 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter strings to be passed to the search API.
2040 &quot;maxResults&quot;: 42, # Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
2041 },
2042 &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.
2043 &quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
2044 &quot;A String&quot;,
2045 ],
2046 &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.
2047 { # The definition of the Rag resource.
2048 &quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
2049 &quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
2050 &quot;A String&quot;,
2051 ],
2052 },
2053 ],
2054 &quot;ragRetrievalConfig&quot;: { # Specifies the context retrieval config. # Optional. The retrieval config for the Rag query.
2055 &quot;filter&quot;: { # Config for filters. # Optional. Config for filters.
2056 &quot;metadataFilter&quot;: &quot;A String&quot;, # Optional. String for metadata filtering.
2057 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only returns contexts with vector distance smaller than the threshold.
2058 &quot;vectorSimilarityThreshold&quot;: 3.14, # Optional. Only returns contexts with vector similarity larger than the threshold.
2059 },
2060 &quot;hybridSearch&quot;: { # Config for Hybrid Search. # Optional. Config for Hybrid Search.
2061 &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.
2062 },
2063 &quot;ranking&quot;: { # Config for ranking and reranking. # Optional. Config for ranking and reranking.
2064 &quot;llmRanker&quot;: { # Config for LlmRanker. # Optional. Config for LlmRanker.
2065 &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).
2066 },
2067 &quot;rankService&quot;: { # Config for Rank Service. # Optional. Config for Rank Service.
2068 &quot;modelName&quot;: &quot;A String&quot;, # Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`
2069 },
2070 },
2071 &quot;topK&quot;: 42, # Optional. The number of contexts to retrieve.
2072 },
2073 &quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
2074 &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.
2075 &quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
2076 },
2077 },
2078 &quot;urlContext&quot;: { # Tool to support URL context. # Optional. Tool to support URL context retrieval.
2079 },
2080 },
2081 ],
2082 },
2083 },
2084 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was created.
2085 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the EvaluationSet.
2086 &quot;evaluationItems&quot;: [ # Required. The EvaluationItems that are part of this dataset.
2087 &quot;A String&quot;,
2088 ],
2089 &quot;metadata&quot;: &quot;&quot;, # Optional. Metadata for the EvaluationSet.
2090 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
2091 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this item was last updated.
2092 }</pre>
2093 </div>
2094
2095 </body></html>