Skip to content

Commit 95a3704

Browse files
feat(firebaseml): update the api
#### firebaseml:v2beta The following keys were added: - schemas.GenerateContentRequest.properties.cachedContent.type (Total Keys: 1) - schemas.GenerationConfig.properties.responseSchema.$ref (Total Keys: 1)
1 parent 0c890d8 commit 95a3704

File tree

4 files changed

+69
-3
lines changed

4 files changed

+69
-3
lines changed

docs/dyn/firebaseml_v2beta.projects.locations.publishers.models.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ <h3>Method Details</h3>
166166
The object takes the form of:
167167

168168
{ # Request message for [PredictionService.GenerateContent].
169+
&quot;cachedContent&quot;: &quot;A String&quot;, # Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
169170
&quot;contents&quot;: [ # Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
170171
{ # The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
171172
&quot;parts&quot;: [ # Required. Ordered `Parts` that constitute a single message. Parts may have different IANA MIME types.
@@ -206,6 +207,34 @@ <h3>Method Details</h3>
206207
&quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of output tokens to generate per message.
207208
&quot;presencePenalty&quot;: 3.14, # Optional. Positive penalties.
208209
&quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
210+
&quot;responseSchema&quot;: { # Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be added in the future as needed. # Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
211+
&quot;default&quot;: &quot;&quot;, # Optional. Default value of the data.
212+
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the data.
213+
&quot;enum&quot;: [ # Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[&quot;EAST&quot;, NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}
214+
&quot;A String&quot;,
215+
],
216+
&quot;example&quot;: &quot;&quot;, # Optional. Example of the object. Will only populated when the object is the root.
217+
&quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. Supported formats: for NUMBER type: &quot;float&quot;, &quot;double&quot; for INTEGER type: &quot;int32&quot;, &quot;int64&quot; for STRING type: &quot;email&quot;, &quot;byte&quot;, etc
218+
&quot;items&quot;: # Object with schema name: Schema # Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
219+
&quot;maxItems&quot;: &quot;A String&quot;, # Optional. Maximum number of the elements for Type.ARRAY.
220+
&quot;maxLength&quot;: &quot;A String&quot;, # Optional. Maximum length of the Type.STRING
221+
&quot;maxProperties&quot;: &quot;A String&quot;, # Optional. Maximum number of the properties for Type.OBJECT.
222+
&quot;maximum&quot;: 3.14, # Optional. Maximum value of the Type.INTEGER and Type.NUMBER
223+
&quot;minItems&quot;: &quot;A String&quot;, # Optional. Minimum number of the elements for Type.ARRAY.
224+
&quot;minLength&quot;: &quot;A String&quot;, # Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
225+
&quot;minProperties&quot;: &quot;A String&quot;, # Optional. Minimum number of the properties for Type.OBJECT.
226+
&quot;minimum&quot;: 3.14, # Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
227+
&quot;nullable&quot;: True or False, # Optional. Indicates if the value may be null.
228+
&quot;pattern&quot;: &quot;A String&quot;, # Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
229+
&quot;properties&quot;: { # Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
230+
&quot;a_key&quot;: # Object with schema name: Schema
231+
},
232+
&quot;required&quot;: [ # Optional. Required properties of Type.OBJECT.
233+
&quot;A String&quot;,
234+
],
235+
&quot;title&quot;: &quot;A String&quot;, # Optional. The title of the Schema.
236+
&quot;type&quot;: &quot;A String&quot;, # Optional. The type of the data.
237+
},
209238
&quot;stopSequences&quot;: [ # Optional. Stop sequences.
210239
&quot;A String&quot;,
211240
],
@@ -469,6 +498,7 @@ <h3>Method Details</h3>
469498
The object takes the form of:
470499

471500
{ # Request message for [PredictionService.GenerateContent].
501+
&quot;cachedContent&quot;: &quot;A String&quot;, # Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
472502
&quot;contents&quot;: [ # Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
473503
{ # The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
474504
&quot;parts&quot;: [ # Required. Ordered `Parts` that constitute a single message. Parts may have different IANA MIME types.
@@ -509,6 +539,34 @@ <h3>Method Details</h3>
509539
&quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of output tokens to generate per message.
510540
&quot;presencePenalty&quot;: 3.14, # Optional. Positive penalties.
511541
&quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
542+
&quot;responseSchema&quot;: { # Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be added in the future as needed. # Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
543+
&quot;default&quot;: &quot;&quot;, # Optional. Default value of the data.
544+
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the data.
545+
&quot;enum&quot;: [ # Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[&quot;EAST&quot;, NORTH&quot;, &quot;SOUTH&quot;, &quot;WEST&quot;]}
546+
&quot;A String&quot;,
547+
],
548+
&quot;example&quot;: &quot;&quot;, # Optional. Example of the object. Will only populated when the object is the root.
549+
&quot;format&quot;: &quot;A String&quot;, # Optional. The format of the data. Supported formats: for NUMBER type: &quot;float&quot;, &quot;double&quot; for INTEGER type: &quot;int32&quot;, &quot;int64&quot; for STRING type: &quot;email&quot;, &quot;byte&quot;, etc
550+
&quot;items&quot;: # Object with schema name: Schema # Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
551+
&quot;maxItems&quot;: &quot;A String&quot;, # Optional. Maximum number of the elements for Type.ARRAY.
552+
&quot;maxLength&quot;: &quot;A String&quot;, # Optional. Maximum length of the Type.STRING
553+
&quot;maxProperties&quot;: &quot;A String&quot;, # Optional. Maximum number of the properties for Type.OBJECT.
554+
&quot;maximum&quot;: 3.14, # Optional. Maximum value of the Type.INTEGER and Type.NUMBER
555+
&quot;minItems&quot;: &quot;A String&quot;, # Optional. Minimum number of the elements for Type.ARRAY.
556+
&quot;minLength&quot;: &quot;A String&quot;, # Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
557+
&quot;minProperties&quot;: &quot;A String&quot;, # Optional. Minimum number of the properties for Type.OBJECT.
558+
&quot;minimum&quot;: 3.14, # Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
559+
&quot;nullable&quot;: True or False, # Optional. Indicates if the value may be null.
560+
&quot;pattern&quot;: &quot;A String&quot;, # Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
561+
&quot;properties&quot;: { # Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
562+
&quot;a_key&quot;: # Object with schema name: Schema
563+
},
564+
&quot;required&quot;: [ # Optional. Required properties of Type.OBJECT.
565+
&quot;A String&quot;,
566+
],
567+
&quot;title&quot;: &quot;A String&quot;, # Optional. The title of the Schema.
568+
&quot;type&quot;: &quot;A String&quot;, # Optional. The type of the data.
569+
},
512570
&quot;stopSequences&quot;: [ # Optional. Stop sequences.
513571
&quot;A String&quot;,
514572
],

googleapiclient/discovery_cache/documents/firebaseml.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
}
205205
}
206206
},
207-
"revision": "20240516",
207+
"revision": "20240524",
208208
"rootUrl": "https://firebaseml.googleapis.com/",
209209
"schemas": {
210210
"CancelOperationRequest": {

googleapiclient/discovery_cache/documents/firebaseml.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
}
319319
}
320320
},
321-
"revision": "20240516",
321+
"revision": "20240524",
322322
"rootUrl": "https://firebaseml.googleapis.com/",
323323
"schemas": {
324324
"DownloadModelResponse": {

googleapiclient/discovery_cache/documents/firebaseml.v2beta.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
}
207207
}
208208
},
209-
"revision": "20240516",
209+
"revision": "20240524",
210210
"rootUrl": "https://firebaseml.googleapis.com/",
211211
"schemas": {
212212
"Blob": {
@@ -539,6 +539,10 @@
539539
"description": "Request message for [PredictionService.GenerateContent].",
540540
"id": "GenerateContentRequest",
541541
"properties": {
542+
"cachedContent": {
543+
"description": "Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`",
544+
"type": "string"
545+
},
542546
"contents": {
543547
"description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.",
544548
"items": {
@@ -627,6 +631,10 @@
627631
"description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.",
628632
"type": "string"
629633
},
634+
"responseSchema": {
635+
"$ref": "Schema",
636+
"description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response."
637+
},
630638
"stopSequences": {
631639
"description": "Optional. Stop sequences.",
632640
"items": {

0 commit comments

Comments
 (0)