Skip to content

Commit 19b3593

Browse files
1 parent d8b92ba commit 19b3593

File tree

113 files changed

+73115
-43771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+73115
-43771
lines changed

clients/google-api-services-aiplatform/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-aiplatform</artifactId>
25-
<version>v1-rev20260329-2.0.0</version>
25+
<version>v1-rev20260410-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260329-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260410-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java

Lines changed: 23380 additions & 17650 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.aiplatform.v1.model;
18+
19+
/**
20+
* Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or
21+
* the LLM response from LLM-based metrics/Autoraters.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudAiplatformV1EvaluationParserConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. Use custom code to parse the LLM response.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig customCodeParserConfig;
39+
40+
/**
41+
* Optional. Use custom code to parse the LLM response.
42+
* @return value or {@code null} for none
43+
*/
44+
public GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig getCustomCodeParserConfig() {
45+
return customCodeParserConfig;
46+
}
47+
48+
/**
49+
* Optional. Use custom code to parse the LLM response.
50+
* @param customCodeParserConfig customCodeParserConfig or {@code null} for none
51+
*/
52+
public GoogleCloudAiplatformV1EvaluationParserConfig setCustomCodeParserConfig(GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig customCodeParserConfig) {
53+
this.customCodeParserConfig = customCodeParserConfig;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudAiplatformV1EvaluationParserConfig set(String fieldName, Object value) {
59+
return (GoogleCloudAiplatformV1EvaluationParserConfig) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudAiplatformV1EvaluationParserConfig clone() {
64+
return (GoogleCloudAiplatformV1EvaluationParserConfig) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.aiplatform.v1.model;
18+
19+
/**
20+
* Configuration for parsing the LLM response using custom code.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Python function for parsing results. The function should be defined within this
34+
* string. The function takes a list of strings (LLM responses) and should return either a list of
35+
* dictionaries (for rubrics) or a single dictionary (for a metric result). Example function
36+
* signature: def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: When
37+
* parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric.
38+
* Example for rubrics: [ { "content": {"property": {"description": "The response is factual."}},
39+
* "type": "FACTUALITY", "importance": "HIGH" }, { "content": {"property": {"description": "The
40+
* response is fluent."}}, "type": "FLUENCY", "importance": "MEDIUM" } ] When parsing critique
41+
* results, return a dictionary representing a MetricResult. Example for a metric result: {
42+
* "score": 0.8, "explanation": "The model followed most instructions.", "rubric_verdicts": [...]
43+
* } ... code for result extraction and aggregation
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String parsingFunction;
48+
49+
/**
50+
* Required. Python function for parsing results. The function should be defined within this
51+
* string. The function takes a list of strings (LLM responses) and should return either a list of
52+
* dictionaries (for rubrics) or a single dictionary (for a metric result). Example function
53+
* signature: def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: When
54+
* parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric.
55+
* Example for rubrics: [ { "content": {"property": {"description": "The response is factual."}},
56+
* "type": "FACTUALITY", "importance": "HIGH" }, { "content": {"property": {"description": "The
57+
* response is fluent."}}, "type": "FLUENCY", "importance": "MEDIUM" } ] When parsing critique
58+
* results, return a dictionary representing a MetricResult. Example for a metric result: {
59+
* "score": 0.8, "explanation": "The model followed most instructions.", "rubric_verdicts": [...]
60+
* } ... code for result extraction and aggregation
61+
* @return value or {@code null} for none
62+
*/
63+
public java.lang.String getParsingFunction() {
64+
return parsingFunction;
65+
}
66+
67+
/**
68+
* Required. Python function for parsing results. The function should be defined within this
69+
* string. The function takes a list of strings (LLM responses) and should return either a list of
70+
* dictionaries (for rubrics) or a single dictionary (for a metric result). Example function
71+
* signature: def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: When
72+
* parsing rubrics, return a list of dictionaries, where each dictionary represents a Rubric.
73+
* Example for rubrics: [ { "content": {"property": {"description": "The response is factual."}},
74+
* "type": "FACTUALITY", "importance": "HIGH" }, { "content": {"property": {"description": "The
75+
* response is fluent."}}, "type": "FLUENCY", "importance": "MEDIUM" } ] When parsing critique
76+
* results, return a dictionary representing a MetricResult. Example for a metric result: {
77+
* "score": 0.8, "explanation": "The model followed most instructions.", "rubric_verdicts": [...]
78+
* } ... code for result extraction and aggregation
79+
* @param parsingFunction parsingFunction or {@code null} for none
80+
*/
81+
public GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig setParsingFunction(java.lang.String parsingFunction) {
82+
this.parsingFunction = parsingFunction;
83+
return this;
84+
}
85+
86+
@Override
87+
public GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig set(String fieldName, Object value) {
88+
return (GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig clone() {
93+
return (GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig) super.clone();
94+
}
95+
96+
}

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunInferenceConfig.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ public final class GoogleCloudAiplatformV1EvaluationRunInferenceConfig extends c
5959
@com.google.api.client.util.Key
6060
private java.lang.String model;
6161

62+
/**
63+
* Optional. The parallelism of the evaluation run for the inference step. If not specified, the
64+
* default parallelism will be used.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.Integer parallelism;
69+
6270
/**
6371
* Optional. Agent run config.
6472
* @return value or {@code null} for none
@@ -120,6 +128,25 @@ public GoogleCloudAiplatformV1EvaluationRunInferenceConfig setModel(java.lang.St
120128
return this;
121129
}
122130

131+
/**
132+
* Optional. The parallelism of the evaluation run for the inference step. If not specified, the
133+
* default parallelism will be used.
134+
* @return value or {@code null} for none
135+
*/
136+
public java.lang.Integer getParallelism() {
137+
return parallelism;
138+
}
139+
140+
/**
141+
* Optional. The parallelism of the evaluation run for the inference step. If not specified, the
142+
* default parallelism will be used.
143+
* @param parallelism parallelism or {@code null} for none
144+
*/
145+
public GoogleCloudAiplatformV1EvaluationRunInferenceConfig setParallelism(java.lang.Integer parallelism) {
146+
this.parallelism = parallelism;
147+
return this;
148+
}
149+
123150
@Override
124151
public GoogleCloudAiplatformV1EvaluationRunInferenceConfig set(String fieldName, Object value) {
125152
return (GoogleCloudAiplatformV1EvaluationRunInferenceConfig) super.set(fieldName, value);

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GenerateMemoriesRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudAiplatformV1GenerateMemoriesRequest extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Restricts memory generation to a subset of memory topics.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleCloudAiplatformV1MemoryTopicId> allowedTopics;
38+
3239
/**
3340
* Defines a direct source of content as the source content from which to generate memories.
3441
* The value may be {@code null}.
@@ -116,6 +123,23 @@ public final class GoogleCloudAiplatformV1GenerateMemoriesRequest extends com.go
116123
@com.google.api.client.util.Key
117124
private GoogleCloudAiplatformV1GenerateMemoriesRequestVertexSessionSource vertexSessionSource;
118125

126+
/**
127+
* Optional. Restricts memory generation to a subset of memory topics.
128+
* @return value or {@code null} for none
129+
*/
130+
public java.util.List<GoogleCloudAiplatformV1MemoryTopicId> getAllowedTopics() {
131+
return allowedTopics;
132+
}
133+
134+
/**
135+
* Optional. Restricts memory generation to a subset of memory topics.
136+
* @param allowedTopics allowedTopics or {@code null} for none
137+
*/
138+
public GoogleCloudAiplatformV1GenerateMemoriesRequest setAllowedTopics(java.util.List<GoogleCloudAiplatformV1MemoryTopicId> allowedTopics) {
139+
this.allowedTopics = allowedTopics;
140+
return this;
141+
}
142+
119143
/**
120144
* Defines a direct source of content as the source content from which to generate memories.
121145
* @return value or {@code null} for none

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1IntermediateExtractedMemory.java

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,80 @@
3030
public final class GoogleCloudAiplatformV1IntermediateExtractedMemory extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Output only. The fact of the extracted memory.
33+
* Output only. Represents the explanation of why the information was extracted from the source
34+
* content.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String context;
39+
40+
/**
41+
* Output only. Represents the fact of the extracted memory.
3442
* The value may be {@code null}.
3543
*/
3644
@com.google.api.client.util.Key
3745
private java.lang.String fact;
3846

3947
/**
40-
* Output only. The fact of the extracted memory.
48+
* Output only. Represents the structured value of the extracted memory.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.util.Map<String, java.lang.Object> structuredData;
53+
54+
/**
55+
* Output only. Represents the explanation of why the information was extracted from the source
56+
* content.
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.String getContext() {
60+
return context;
61+
}
62+
63+
/**
64+
* Output only. Represents the explanation of why the information was extracted from the source
65+
* content.
66+
* @param context context or {@code null} for none
67+
*/
68+
public GoogleCloudAiplatformV1IntermediateExtractedMemory setContext(java.lang.String context) {
69+
this.context = context;
70+
return this;
71+
}
72+
73+
/**
74+
* Output only. Represents the fact of the extracted memory.
4175
* @return value or {@code null} for none
4276
*/
4377
public java.lang.String getFact() {
4478
return fact;
4579
}
4680

4781
/**
48-
* Output only. The fact of the extracted memory.
82+
* Output only. Represents the fact of the extracted memory.
4983
* @param fact fact or {@code null} for none
5084
*/
5185
public GoogleCloudAiplatformV1IntermediateExtractedMemory setFact(java.lang.String fact) {
5286
this.fact = fact;
5387
return this;
5488
}
5589

90+
/**
91+
* Output only. Represents the structured value of the extracted memory.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.util.Map<String, java.lang.Object> getStructuredData() {
95+
return structuredData;
96+
}
97+
98+
/**
99+
* Output only. Represents the structured value of the extracted memory.
100+
* @param structuredData structuredData or {@code null} for none
101+
*/
102+
public GoogleCloudAiplatformV1IntermediateExtractedMemory setStructuredData(java.util.Map<String, java.lang.Object> structuredData) {
103+
this.structuredData = structuredData;
104+
return this;
105+
}
106+
56107
@Override
57108
public GoogleCloudAiplatformV1IntermediateExtractedMemory set(String fieldName, Object value) {
58109
return (GoogleCloudAiplatformV1IntermediateExtractedMemory) super.set(fieldName, value);

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1LLMBasedMetricSpec.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ public final class GoogleCloudAiplatformV1LLMBasedMetricSpec extends com.google.
5757
@com.google.api.client.util.Key
5858
private GoogleCloudAiplatformV1PredefinedMetricSpec predefinedRubricGenerationSpec;
5959

60+
/**
61+
* Optional. The parser config for the metric result.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private GoogleCloudAiplatformV1EvaluationParserConfig resultParserConfig;
66+
6067
/**
6168
* Dynamically generate rubrics using this specification.
6269
* The value may be {@code null}.
@@ -147,6 +154,23 @@ public GoogleCloudAiplatformV1LLMBasedMetricSpec setPredefinedRubricGenerationSp
147154
return this;
148155
}
149156

157+
/**
158+
* Optional. The parser config for the metric result.
159+
* @return value or {@code null} for none
160+
*/
161+
public GoogleCloudAiplatformV1EvaluationParserConfig getResultParserConfig() {
162+
return resultParserConfig;
163+
}
164+
165+
/**
166+
* Optional. The parser config for the metric result.
167+
* @param resultParserConfig resultParserConfig or {@code null} for none
168+
*/
169+
public GoogleCloudAiplatformV1LLMBasedMetricSpec setResultParserConfig(GoogleCloudAiplatformV1EvaluationParserConfig resultParserConfig) {
170+
this.resultParserConfig = resultParserConfig;
171+
return this;
172+
}
173+
150174
/**
151175
* Dynamically generate rubrics using this specification.
152176
* @return value or {@code null} for none

0 commit comments

Comments
 (0)