30
30
public final class GoogleCloudAiplatformV1beta1CountTokensRequest extends com .google .api .client .json .GenericJson {
31
31
32
32
/**
33
- * Required . Input content.
33
+ * Optional . Input content.
34
34
* The value may be {@code null}.
35
35
*/
36
36
@ com .google .api .client .util .Key
@@ -43,31 +43,48 @@ public final class GoogleCloudAiplatformV1beta1CountTokensRequest extends com.go
43
43
}
44
44
45
45
/**
46
- * Required . The instances that are the input to token counting call. Schema is identical to the
46
+ * Optional . The instances that are the input to token counting call. Schema is identical to the
47
47
* prediction schema of the underlying model.
48
48
* The value may be {@code null}.
49
49
*/
50
50
@ com .google .api .client .util .Key
51
51
private java .util .List <java .lang .Object > instances ;
52
52
53
53
/**
54
- * Required . The name of the publisher model requested to serve the prediction. Format:
54
+ * Optional . The name of the publisher model requested to serve the prediction. Format:
55
55
* `projects/{project}/locations/{location}/publishers/models`
56
56
* The value may be {@code null}.
57
57
*/
58
58
@ com .google .api .client .util .Key
59
59
private java .lang .String model ;
60
60
61
61
/**
62
- * Required. Input content.
62
+ * Optional. The user provided system instructions for the model. Note: only text should be used
63
+ * in parts and content in each part will be in a separate paragraph.
64
+ * The value may be {@code null}.
65
+ */
66
+ @ com .google .api .client .util .Key
67
+ private GoogleCloudAiplatformV1beta1Content systemInstruction ;
68
+
69
+ /**
70
+ * Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a
71
+ * piece of code that enables the system to interact with external systems to perform an action,
72
+ * or set of actions, outside of knowledge and scope of the model.
73
+ * The value may be {@code null}.
74
+ */
75
+ @ com .google .api .client .util .Key
76
+ private java .util .List <GoogleCloudAiplatformV1beta1Tool > tools ;
77
+
78
+ /**
79
+ * Optional. Input content.
63
80
* @return value or {@code null} for none
64
81
*/
65
82
public java .util .List <GoogleCloudAiplatformV1beta1Content > getContents () {
66
83
return contents ;
67
84
}
68
85
69
86
/**
70
- * Required . Input content.
87
+ * Optional . Input content.
71
88
* @param contents contents or {@code null} for none
72
89
*/
73
90
public GoogleCloudAiplatformV1beta1CountTokensRequest setContents (java .util .List <GoogleCloudAiplatformV1beta1Content > contents ) {
@@ -76,7 +93,7 @@ public GoogleCloudAiplatformV1beta1CountTokensRequest setContents(java.util.List
76
93
}
77
94
78
95
/**
79
- * Required . The instances that are the input to token counting call. Schema is identical to the
96
+ * Optional . The instances that are the input to token counting call. Schema is identical to the
80
97
* prediction schema of the underlying model.
81
98
* @return value or {@code null} for none
82
99
*/
@@ -85,7 +102,7 @@ public java.util.List<java.lang.Object> getInstances() {
85
102
}
86
103
87
104
/**
88
- * Required . The instances that are the input to token counting call. Schema is identical to the
105
+ * Optional . The instances that are the input to token counting call. Schema is identical to the
89
106
* prediction schema of the underlying model.
90
107
* @param instances instances or {@code null} for none
91
108
*/
@@ -95,7 +112,7 @@ public GoogleCloudAiplatformV1beta1CountTokensRequest setInstances(java.util.Lis
95
112
}
96
113
97
114
/**
98
- * Required . The name of the publisher model requested to serve the prediction. Format:
115
+ * Optional . The name of the publisher model requested to serve the prediction. Format:
99
116
* `projects/{project}/locations/{location}/publishers/models`
100
117
* @return value or {@code null} for none
101
118
*/
@@ -104,7 +121,7 @@ public java.lang.String getModel() {
104
121
}
105
122
106
123
/**
107
- * Required . The name of the publisher model requested to serve the prediction. Format:
124
+ * Optional . The name of the publisher model requested to serve the prediction. Format:
108
125
* `projects/{project}/locations/{location}/publishers/models`
109
126
* @param model model or {@code null} for none
110
127
*/
@@ -113,6 +130,46 @@ public GoogleCloudAiplatformV1beta1CountTokensRequest setModel(java.lang.String
113
130
return this ;
114
131
}
115
132
133
+ /**
134
+ * Optional. The user provided system instructions for the model. Note: only text should be used
135
+ * in parts and content in each part will be in a separate paragraph.
136
+ * @return value or {@code null} for none
137
+ */
138
+ public GoogleCloudAiplatformV1beta1Content getSystemInstruction () {
139
+ return systemInstruction ;
140
+ }
141
+
142
+ /**
143
+ * Optional. The user provided system instructions for the model. Note: only text should be used
144
+ * in parts and content in each part will be in a separate paragraph.
145
+ * @param systemInstruction systemInstruction or {@code null} for none
146
+ */
147
+ public GoogleCloudAiplatformV1beta1CountTokensRequest setSystemInstruction (GoogleCloudAiplatformV1beta1Content systemInstruction ) {
148
+ this .systemInstruction = systemInstruction ;
149
+ return this ;
150
+ }
151
+
152
+ /**
153
+ * Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a
154
+ * piece of code that enables the system to interact with external systems to perform an action,
155
+ * or set of actions, outside of knowledge and scope of the model.
156
+ * @return value or {@code null} for none
157
+ */
158
+ public java .util .List <GoogleCloudAiplatformV1beta1Tool > getTools () {
159
+ return tools ;
160
+ }
161
+
162
+ /**
163
+ * Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a
164
+ * piece of code that enables the system to interact with external systems to perform an action,
165
+ * or set of actions, outside of knowledge and scope of the model.
166
+ * @param tools tools or {@code null} for none
167
+ */
168
+ public GoogleCloudAiplatformV1beta1CountTokensRequest setTools (java .util .List <GoogleCloudAiplatformV1beta1Tool > tools ) {
169
+ this .tools = tools ;
170
+ return this ;
171
+ }
172
+
116
173
@ Override
117
174
public GoogleCloudAiplatformV1beta1CountTokensRequest set (String fieldName , Object value ) {
118
175
return (GoogleCloudAiplatformV1beta1CountTokensRequest ) super .set (fieldName , value );
0 commit comments