You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"responseJsonSchema": "", # Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
260
261
"responseLogprobs": True or False, # Optional. If true, export the logprobs results in response.
261
262
"responseMimeType": "A String", # 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.
262
263
"responseModalities": [ # Optional. The modalities of the response.
@@ -425,6 +426,7 @@ <h3>Method Details</h3>
425
426
"title": "A String", # Optional. The title of the Schema.
426
427
"type": "A String", # Optional. The type of the data.
427
428
},
429
+
"parametersJsonSchema": "", # 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: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`.
428
430
"response": { # 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-object). More fields may be added in the future as needed. # 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.
429
431
"additionalProperties": "", # Optional. Can either be a boolean or an object; controls the presence of additional properties.
430
432
"anyOf": [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
@@ -464,6 +466,7 @@ <h3>Method Details</h3>
464
466
"title": "A String", # Optional. The title of the Schema.
465
467
"type": "A String", # Optional. The type of the data.
466
468
},
469
+
"responseJsonSchema": "", # 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`.
467
470
},
468
471
],
469
472
"googleSearch": { # 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.
@@ -688,6 +691,7 @@ <h3>Method Details</h3>
688
691
"maxOutputTokens": 42, # Optional. The maximum number of output tokens to generate per message.
689
692
"mediaResolution": "A String", # Optional. If specified, the media resolution specified will be used.
"responseJsonSchema": "", # Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
691
695
"responseLogprobs": True or False, # Optional. If true, export the logprobs results in response.
692
696
"responseMimeType": "A String", # 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.
693
697
"responseModalities": [ # Optional. The modalities of the response.
@@ -877,6 +881,7 @@ <h3>Method Details</h3>
877
881
"title": "A String", # Optional. The title of the Schema.
878
882
"type": "A String", # Optional. The type of the data.
879
883
},
884
+
"parametersJsonSchema": "", # 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: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`.
880
885
"response": { # 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-object). More fields may be added in the future as needed. # 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.
881
886
"additionalProperties": "", # Optional. Can either be a boolean or an object; controls the presence of additional properties.
882
887
"anyOf": [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
@@ -916,6 +921,7 @@ <h3>Method Details</h3>
916
921
"title": "A String", # Optional. The title of the Schema.
917
922
"type": "A String", # Optional. The type of the data.
918
923
},
924
+
"responseJsonSchema": "", # 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`.
919
925
},
920
926
],
921
927
"googleSearch": { # 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.
@@ -1367,6 +1373,7 @@ <h3>Method Details</h3>
1367
1373
"maxOutputTokens": 42, # Optional. The maximum number of output tokens to generate per message.
1368
1374
"mediaResolution": "A String", # Optional. If specified, the media resolution specified will be used.
"responseJsonSchema": "", # Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
1370
1377
"responseLogprobs": True or False, # Optional. If true, export the logprobs results in response.
1371
1378
"responseMimeType": "A String", # 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.
1372
1379
"responseModalities": [ # Optional. The modalities of the response.
@@ -1556,6 +1563,7 @@ <h3>Method Details</h3>
1556
1563
"title": "A String", # Optional. The title of the Schema.
1557
1564
"type": "A String", # Optional. The type of the data.
1558
1565
},
1566
+
"parametersJsonSchema": "", # 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: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`.
1559
1567
"response": { # 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-object). More fields may be added in the future as needed. # 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.
1560
1568
"additionalProperties": "", # Optional. Can either be a boolean or an object; controls the presence of additional properties.
1561
1569
"anyOf": [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
@@ -1595,6 +1603,7 @@ <h3>Method Details</h3>
1595
1603
"title": "A String", # Optional. The title of the Schema.
1596
1604
"type": "A String", # Optional. The type of the data.
1597
1605
},
1606
+
"responseJsonSchema": "", # 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`.
1598
1607
},
1599
1608
],
1600
1609
"googleSearch": { # 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.
0 commit comments