Skip to content

Commit 3cd5070

Browse files
Google APIscopybara-github
authored andcommitted
feat: add gemini_request_read_config field to AssembleDataRequest and AssessDataRequest in aiplatform v1beta
docs: fix comment for field_mapping field in GeminiTemplateConfig PiperOrigin-RevId: 752648609
1 parent 88cc72b commit 3cd5070

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

google/cloud/aiplatform/v1beta1/dataset_service.proto

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,10 @@ message AssessDataRequest {
10041004
type: "aiplatform.googleapis.com/Dataset"
10051005
}
10061006
];
1007+
1008+
// Optional. The Gemini request read config for the dataset.
1009+
GeminiRequestReadConfig gemini_request_read_config = 8
1010+
[(google.api.field_behavior) = OPTIONAL];
10071011
}
10081012

10091013
// Response message for
@@ -1072,11 +1076,25 @@ message GeminiTemplateConfig {
10721076
// for downstream applications.
10731077
GeminiExample gemini_example = 1 [(google.api.field_behavior) = REQUIRED];
10741078

1075-
// Required. Map of template params to the columns in the dataset table.
1079+
// Required. Map of template parameters to the columns in the dataset table.
10761080
map<string, string> field_mapping = 2
10771081
[(google.api.field_behavior) = REQUIRED];
10781082
}
10791083

1084+
// Configuration for how to read Gemini requests from a multimodal dataset.
1085+
message GeminiRequestReadConfig {
1086+
// The read config for the dataset.
1087+
oneof read_config {
1088+
// Gemini request template with placeholders.
1089+
GeminiTemplateConfig template_config = 1;
1090+
1091+
// Optional. Column name in the dataset table that contains already fully
1092+
// assembled Gemini requests.
1093+
string assembled_request_column_name = 4
1094+
[(google.api.field_behavior) = OPTIONAL];
1095+
}
1096+
}
1097+
10801098
// Format for Gemini examples used for Vertex Multimodal datasets.
10811099
message GeminiExample {
10821100
// Optional. The fully qualified name of the publisher model or tuned model
@@ -1175,6 +1193,10 @@ message AssembleDataRequest {
11751193
type: "aiplatform.googleapis.com/Dataset"
11761194
}
11771195
];
1196+
1197+
// Optional. The read config for the dataset.
1198+
GeminiRequestReadConfig gemini_request_read_config = 6
1199+
[(google.api.field_behavior) = OPTIONAL];
11781200
}
11791201

11801202
// Response message for

0 commit comments

Comments
 (0)