Python 88.3%
TypeScript 7.6%
Shell 4.1%
1{2 "documentationLink": "https://developers.generativeai.google/api",3 "ownerDomain": "google.com",4 "resources": {5 "generatedFiles": {6 "methods": {7 "list": {8 "response": {9 "$ref": "ListGeneratedFilesResponse"10 },11 "flatPath": "v1beta/generatedFiles",12 "httpMethod": "GET",13 "description": "Lists the generated files owned by the requesting project.",14 "parameterOrder": [],15 "id": "generativelanguage.generatedFiles.list",16 "path": "v1beta/generatedFiles",17 "scopes": [18 "https://www.googleapis.com/auth/devstorage.read_only"19 ],20 "parameters": {21 "pageToken": {22 "type": "string",23 "location": "query",24 "description": "Optional. A page token from a previous `ListGeneratedFiles` call."25 },26 "pageSize": {27 "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.",28 "location": "query",29 "format": "int32",30 "type": "integer"31 }32 }33 }34 },35 "resources": {36 "operations": {37 "methods": {38 "get": {39 "response": {40 "$ref": "Operation"41 },42 "id": "generativelanguage.generatedFiles.operations.get",43 "flatPath": "v1beta/generatedFiles/{generatedFilesId}/operations/{operationsId}",44 "parameterOrder": [45 "name"46 ],47 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",48 "httpMethod": "GET",49 "path": "v1beta/{+name}",50 "parameters": {51 "name": {52 "pattern": "^generatedFiles/[^/]+/operations/[^/]+$",53 "location": "path",54 "required": true,55 "description": "The name of the operation resource.",56 "type": "string"57 }58 }59 }60 }61 }62 }63 },64 "models": {65 "methods": {66 "get": {67 "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.",68 "response": {69 "$ref": "Model"70 },71 "parameters": {72 "name": {73 "location": "path",74 "required": true,75 "pattern": "^models/[^/]+$",76 "type": "string",77 "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`"78 }79 },80 "httpMethod": "GET",81 "parameterOrder": [82 "name"83 ],84 "path": "v1beta/{+name}",85 "id": "generativelanguage.models.get",86 "flatPath": "v1beta/models/{modelsId}"87 },88 "generateMessage": {89 "httpMethod": "POST",90 "id": "generativelanguage.models.generateMessage",91 "path": "v1beta/{+model}:generateMessage",92 "request": {93 "$ref": "GenerateMessageRequest"94 },95 "parameterOrder": [96 "model"97 ],98 "parameters": {99 "model": {100 "description": "Required. The name of the model to use. Format: `name=models/{model}`.",101 "pattern": "^models/[^/]+$",102 "location": "path",103 "required": true,104 "type": "string"105 }106 },107 "deprecated": true,108 "response": {109 "$ref": "GenerateMessageResponse"110 },111 "description": "Generates a response from the model given an input `MessagePrompt`.",112 "flatPath": "v1beta/models/{modelsId}:generateMessage"113 },114 "embedContent": {115 "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).",116 "httpMethod": "POST",117 "id": "generativelanguage.models.embedContent",118 "parameters": {119 "model": {120 "location": "path",121 "required": true,122 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",123 "type": "string",124 "pattern": "^models/[^/]+$"125 }126 },127 "request": {128 "$ref": "EmbedContentRequest"129 },130 "response": {131 "$ref": "EmbedContentResponse"132 },133 "parameterOrder": [134 "model"135 ],136 "path": "v1beta/{+model}:embedContent",137 "flatPath": "v1beta/models/{modelsId}:embedContent"138 },139 "predictLongRunning": {140 "flatPath": "v1beta/models/{modelsId}:predictLongRunning",141 "description": "Same as Predict but returns an LRO.",142 "parameters": {143 "model": {144 "type": "string",145 "pattern": "^models/[^/]+$",146 "description": "Required. The name of the model for prediction. Format: `name=models/{model}`.",147 "location": "path",148 "required": true149 }150 },151 "response": {152 "$ref": "Operation"153 },154 "request": {155 "$ref": "PredictLongRunningRequest"156 },157 "httpMethod": "POST",158 "parameterOrder": [159 "model"160 ],161 "id": "generativelanguage.models.predictLongRunning",162 "path": "v1beta/{+model}:predictLongRunning"163 },164 "streamGenerateContent": {165 "request": {166 "$ref": "GenerateContentRequest"167 },168 "flatPath": "v1beta/models/{modelsId}:streamGenerateContent",169 "id": "generativelanguage.models.streamGenerateContent",170 "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",171 "parameters": {172 "model": {173 "type": "string",174 "location": "path",175 "required": true,176 "pattern": "^models/[^/]+$",177 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."178 }179 },180 "path": "v1beta/{+model}:streamGenerateContent",181 "response": {182 "$ref": "GenerateContentResponse"183 },184 "parameterOrder": [185 "model"186 ],187 "httpMethod": "POST"188 },189 "embedText": {190 "httpMethod": "POST",191 "id": "generativelanguage.models.embedText",192 "path": "v1beta/{+model}:embedText",193 "request": {194 "$ref": "EmbedTextRequest"195 },196 "description": "Generates an embedding from the model given an input message.",197 "parameterOrder": [198 "model"199 ],200 "response": {201 "$ref": "EmbedTextResponse"202 },203 "parameters": {204 "model": {205 "type": "string",206 "description": "Required. The model name to use with the format model=models/{model}.",207 "location": "path",208 "required": true,209 "pattern": "^models/[^/]+$"210 }211 },212 "deprecated": true,213 "flatPath": "v1beta/models/{modelsId}:embedText"214 },215 "batchGenerateContent": {216 "flatPath": "v1beta/models/{modelsId}:batchGenerateContent",217 "parameterOrder": [218 "model"219 ],220 "response": {221 "$ref": "Operation"222 },223 "httpMethod": "POST",224 "id": "generativelanguage.models.batchGenerateContent",225 "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",226 "parameters": {227 "model": {228 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",229 "location": "path",230 "required": true,231 "type": "string",232 "pattern": "^models/[^/]+$"233 }234 },235 "path": "v1beta/{+model}:batchGenerateContent",236 "request": {237 "$ref": "BatchGenerateContentRequest"238 }239 },240 "countMessageTokens": {241 "httpMethod": "POST",242 "description": "Runs a model's tokenizer on a string and returns the token count.",243 "response": {244 "$ref": "CountMessageTokensResponse"245 },246 "id": "generativelanguage.models.countMessageTokens",247 "flatPath": "v1beta/models/{modelsId}:countMessageTokens",248 "path": "v1beta/{+model}:countMessageTokens",249 "parameters": {250 "model": {251 "pattern": "^models/[^/]+$",252 "location": "path",253 "required": true,254 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",255 "type": "string"256 }257 },258 "deprecated": true,259 "parameterOrder": [260 "model"261 ],262 "request": {263 "$ref": "CountMessageTokensRequest"264 }265 },266 "batchEmbedContents": {267 "parameterOrder": [268 "model"269 ],270 "httpMethod": "POST",271 "id": "generativelanguage.models.batchEmbedContents",272 "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.",273 "path": "v1beta/{+model}:batchEmbedContents",274 "response": {275 "$ref": "BatchEmbedContentsResponse"276 },277 "flatPath": "v1beta/models/{modelsId}:batchEmbedContents",278 "parameters": {279 "model": {280 "pattern": "^models/[^/]+$",281 "type": "string",282 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",283 "location": "path",284 "required": true285 }286 },287 "request": {288 "$ref": "BatchEmbedContentsRequest"289 }290 },291 "countTokens": {292 "id": "generativelanguage.models.countTokens",293 "parameters": {294 "model": {295 "pattern": "^models/[^/]+$",296 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",297 "type": "string",298 "location": "path",299 "required": true300 }301 },302 "path": "v1beta/{+model}:countTokens",303 "parameterOrder": [304 "model"305 ],306 "request": {307 "$ref": "CountTokensRequest"308 },309 "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.",310 "httpMethod": "POST",311 "response": {312 "$ref": "CountTokensResponse"313 },314 "flatPath": "v1beta/models/{modelsId}:countTokens"315 },316 "generateAnswer": {317 "description": "Generates a grounded answer from the model given an input `GenerateAnswerRequest`.",318 "flatPath": "v1beta/models/{modelsId}:generateAnswer",319 "path": "v1beta/{+model}:generateAnswer",320 "id": "generativelanguage.models.generateAnswer",321 "response": {322 "$ref": "GenerateAnswerResponse"323 },324 "parameters": {325 "model": {326 "pattern": "^models/[^/]+$",327 "description": "Required. The name of the `Model` to use for generating the grounded response. Format: `model=models/{model}`.",328 "location": "path",329 "required": true,330 "type": "string"331 }332 },333 "deprecated": true,334 "request": {335 "$ref": "GenerateAnswerRequest"336 },337 "parameterOrder": [338 "model"339 ],340 "httpMethod": "POST"341 },342 "generateText": {343 "id": "generativelanguage.models.generateText",344 "httpMethod": "POST",345 "description": "Generates a response from the model given an input message.",346 "flatPath": "v1beta/models/{modelsId}:generateText",347 "parameterOrder": [348 "model"349 ],350 "request": {351 "$ref": "GenerateTextRequest"352 },353 "parameters": {354 "model": {355 "location": "path",356 "required": true,357 "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",358 "type": "string",359 "pattern": "^models/[^/]+$"360 }361 },362 "deprecated": true,363 "path": "v1beta/{+model}:generateText",364 "response": {365 "$ref": "GenerateTextResponse"366 }367 },368 "list": {369 "parameterOrder": [],370 "path": "v1beta/models",371 "httpMethod": "GET",372 "flatPath": "v1beta/models",373 "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.",374 "parameters": {375 "pageToken": {376 "type": "string",377 "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.",378 "location": "query"379 },380 "pageSize": {381 "format": "int32",382 "location": "query",383 "description": "The maximum number of `Models` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.",384 "type": "integer"385 }386 },387 "id": "generativelanguage.models.list",388 "response": {389 "$ref": "ListModelsResponse"390 }391 },392 "countTextTokens": {393 "description": "Runs a model's tokenizer on a text and returns the token count.",394 "id": "generativelanguage.models.countTextTokens",395 "path": "v1beta/{+model}:countTextTokens",396 "request": {397 "$ref": "CountTextTokensRequest"398 },399 "httpMethod": "POST",400 "flatPath": "v1beta/models/{modelsId}:countTextTokens",401 "parameters": {402 "model": {403 "type": "string",404 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",405 "location": "path",406 "required": true,407 "pattern": "^models/[^/]+$"408 }409 },410 "deprecated": true,411 "parameterOrder": [412 "model"413 ],414 "response": {415 "$ref": "CountTextTokensResponse"416 }417 },418 "asyncBatchEmbedContent": {419 "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.",420 "parameterOrder": [421 "model"422 ],423 "httpMethod": "POST",424 "id": "generativelanguage.models.asyncBatchEmbedContent",425 "request": {426 "$ref": "AsyncBatchEmbedContentRequest"427 },428 "flatPath": "v1beta/models/{modelsId}:asyncBatchEmbedContent",429 "path": "v1beta/{+model}:asyncBatchEmbedContent",430 "response": {431 "$ref": "Operation"432 },433 "parameters": {434 "model": {435 "pattern": "^models/[^/]+$",436 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",437 "type": "string",438 "location": "path",439 "required": true440 }441 }442 },443 "batchEmbedText": {444 "flatPath": "v1beta/models/{modelsId}:batchEmbedText",445 "parameters": {446 "model": {447 "pattern": "^models/[^/]+$",448 "location": "path",449 "required": true,450 "type": "string",451 "description": "Required. The name of the `Model` to use for generating the embedding. Examples: models/embedding-gecko-001"452 }453 },454 "deprecated": true,455 "response": {456 "$ref": "BatchEmbedTextResponse"457 },458 "httpMethod": "POST",459 "request": {460 "$ref": "BatchEmbedTextRequest"461 },462 "id": "generativelanguage.models.batchEmbedText",463 "description": "Generates multiple embeddings from the model given input text in a synchronous call.",464 "path": "v1beta/{+model}:batchEmbedText",465 "parameterOrder": [466 "model"467 ]468 },469 "predict": {470 "parameterOrder": [471 "model"472 ],473 "path": "v1beta/{+model}:predict",474 "httpMethod": "POST",475 "request": {476 "$ref": "PredictRequest"477 },478 "flatPath": "v1beta/models/{modelsId}:predict",479 "description": "Performs a prediction request.",480 "parameters": {481 "model": {482 "type": "string",483 "location": "path",484 "required": true,485 "description": "Required. The name of the model for prediction. Format: `name=models/{model}`.",486 "pattern": "^models/[^/]+$"487 }488 },489 "id": "generativelanguage.models.predict",490 "response": {491 "$ref": "PredictResponse"492 }493 },494 "generateContent": {495 "flatPath": "v1beta/models/{modelsId}:generateContent",496 "parameters": {497 "model": {498 "type": "string",499 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",500 "location": "path",501 "required": true,502 "pattern": "^models/[^/]+$"503 }504 },505 "path": "v1beta/{+model}:generateContent",506 "response": {507 "$ref": "GenerateContentResponse"508 },509 "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",510 "httpMethod": "POST",511 "request": {512 "$ref": "GenerateContentRequest"513 },514 "id": "generativelanguage.models.generateContent",515 "parameterOrder": [516 "model"517 ]518 }519 },520 "resources": {521 "operations": {522 "methods": {523 "get": {524 "path": "v1beta/{+name}",525 "parameters": {526 "name": {527 "type": "string",528 "description": "The name of the operation resource.",529 "pattern": "^models/[^/]+/operations/[^/]+$",530 "location": "path",531 "required": true532 }533 },534 "parameterOrder": [535 "name"536 ],537 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",538 "httpMethod": "GET",539 "id": "generativelanguage.models.operations.get",540 "response": {541 "$ref": "Operation"542 },543 "flatPath": "v1beta/models/{modelsId}/operations/{operationsId}"544 },545 "list": {546 "id": "generativelanguage.models.operations.list",547 "flatPath": "v1beta/models/{modelsId}/operations",548 "httpMethod": "GET",549 "parameters": {550 "pageSize": {551 "format": "int32",552 "description": "The standard list page size.",553 "location": "query",554 "type": "integer"555 },556 "filter": {557 "type": "string",558 "description": "The standard list filter.",559 "location": "query"560 },561 "name": {562 "type": "string",563 "location": "path",564 "required": true,565 "pattern": "^models/[^/]+$",566 "description": "The name of the operation's parent resource."567 },568 "pageToken": {569 "description": "The standard list page token.",570 "type": "string",571 "location": "query"572 },573 "returnPartialSuccess": {574 "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",575 "location": "query",576 "type": "boolean"577 }578 },579 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",580 "response": {581 "$ref": "ListOperationsResponse"582 },583 "path": "v1beta/{+name}/operations",584 "parameterOrder": [585 "name"586 ]587 }588 }589 }590 }591 },592 "tunedModels": {593 "methods": {594 "generateContent": {595 "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",596 "path": "v1beta/{+model}:generateContent",597 "id": "generativelanguage.tunedModels.generateContent",598 "httpMethod": "POST",599 "request": {600 "$ref": "GenerateContentRequest"601 },602 "response": {603 "$ref": "GenerateContentResponse"604 },605 "parameterOrder": [606 "model"607 ],608 "parameters": {609 "model": {610 "location": "path",611 "required": true,612 "pattern": "^tunedModels/[^/]+$",613 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",614 "type": "string"615 }616 },617 "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateContent"618 },619 "create": {620 "request": {621 "$ref": "TunedModel"622 },623 "parameterOrder": [],624 "response": {625 "$ref": "Operation"626 },627 "path": "v1beta/tunedModels",628 "flatPath": "v1beta/tunedModels",629 "id": "generativelanguage.tunedModels.create",630 "parameters": {631 "tunedModelId": {632 "location": "query",633 "type": "string",634 "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`."635 }636 },637 "deprecated": true,638 "httpMethod": "POST",639 "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222"640 },641 "list": {642 "path": "v1beta/tunedModels",643 "id": "generativelanguage.tunedModels.list",644 "parameters": {645 "filter": {646 "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone",647 "location": "query",648 "type": "string"649 },650 "pageSize": {651 "location": "query",652 "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.",653 "format": "int32",654 "type": "integer"655 },656 "pageToken": {657 "location": "query",658 "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.",659 "type": "string"660 }661 },662 "deprecated": true,663 "parameterOrder": [],664 "response": {665 "$ref": "ListTunedModelsResponse"666 },667 "description": "Lists created tuned models.",668 "flatPath": "v1beta/tunedModels",669 "httpMethod": "GET"670 },671 "asyncBatchEmbedContent": {672 "httpMethod": "POST",673 "response": {674 "$ref": "Operation"675 },676 "flatPath": "v1beta/tunedModels/{tunedModelsId}:asyncBatchEmbedContent",677 "id": "generativelanguage.tunedModels.asyncBatchEmbedContent",678 "parameterOrder": [679 "model"680 ],681 "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.",682 "parameters": {683 "model": {684 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",685 "type": "string",686 "location": "path",687 "required": true,688 "pattern": "^tunedModels/[^/]+$"689 }690 },691 "path": "v1beta/{+model}:asyncBatchEmbedContent",692 "request": {693 "$ref": "AsyncBatchEmbedContentRequest"694 }695 },696 "batchGenerateContent": {697 "parameterOrder": [698 "model"699 ],700 "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",701 "httpMethod": "POST",702 "request": {703 "$ref": "BatchGenerateContentRequest"704 },705 "parameters": {706 "model": {707 "location": "path",708 "required": true,709 "pattern": "^tunedModels/[^/]+$",710 "type": "string",711 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."712 }713 },714 "path": "v1beta/{+model}:batchGenerateContent",715 "response": {716 "$ref": "Operation"717 },718 "id": "generativelanguage.tunedModels.batchGenerateContent",719 "flatPath": "v1beta/tunedModels/{tunedModelsId}:batchGenerateContent"720 },721 "delete": {722 "description": "Deletes a tuned model.",723 "parameters": {724 "name": {725 "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",726 "pattern": "^tunedModels/[^/]+$",727 "type": "string",728 "location": "path",729 "required": true730 }731 },732 "deprecated": true,733 "parameterOrder": [734 "name"735 ],736 "path": "v1beta/{+name}",737 "flatPath": "v1beta/tunedModels/{tunedModelsId}",738 "id": "generativelanguage.tunedModels.delete",739 "httpMethod": "DELETE",740 "response": {741 "$ref": "Empty"742 }743 },744 "streamGenerateContent": {745 "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",746 "parameterOrder": [747 "model"748 ],749 "id": "generativelanguage.tunedModels.streamGenerateContent",750 "httpMethod": "POST",751 "flatPath": "v1beta/tunedModels/{tunedModelsId}:streamGenerateContent",752 "response": {753 "$ref": "GenerateContentResponse"754 },755 "request": {756 "$ref": "GenerateContentRequest"757 },758 "parameters": {759 "model": {760 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",761 "pattern": "^tunedModels/[^/]+$",762 "type": "string",763 "location": "path",764 "required": true765 }766 },767 "path": "v1beta/{+model}:streamGenerateContent"768 },769 "transferOwnership": {770 "id": "generativelanguage.tunedModels.transferOwnership",771 "response": {772 "$ref": "TransferOwnershipResponse"773 },774 "path": "v1beta/{+name}:transferOwnership",775 "parameterOrder": [776 "name"777 ],778 "httpMethod": "POST",779 "flatPath": "v1beta/tunedModels/{tunedModelsId}:transferOwnership",780 "request": {781 "$ref": "TransferOwnershipRequest"782 },783 "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.",784 "parameters": {785 "name": {786 "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`",787 "pattern": "^tunedModels/[^/]+$",788 "location": "path",789 "required": true,790 "type": "string"791 }792 }793 },794 "get": {795 "response": {796 "$ref": "TunedModel"797 },798 "parameterOrder": [799 "name"800 ],801 "httpMethod": "GET",802 "description": "Gets information about a specific TunedModel.",803 "id": "generativelanguage.tunedModels.get",804 "flatPath": "v1beta/tunedModels/{tunedModelsId}",805 "path": "v1beta/{+name}",806 "parameters": {807 "name": {808 "type": "string",809 "location": "path",810 "required": true,811 "pattern": "^tunedModels/[^/]+$",812 "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`"813 }814 },815 "deprecated": true816 },817 "generateText": {818 "httpMethod": "POST",819 "description": "Generates a response from the model given an input message.",820 "path": "v1beta/{+model}:generateText",821 "request": {822 "$ref": "GenerateTextRequest"823 },824 "parameterOrder": [825 "model"826 ],827 "response": {828 "$ref": "GenerateTextResponse"829 },830 "id": "generativelanguage.tunedModels.generateText",831 "parameters": {832 "model": {833 "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",834 "location": "path",835 "required": true,836 "pattern": "^tunedModels/[^/]+$",837 "type": "string"838 }839 },840 "deprecated": true,841 "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateText"842 },843 "patch": {844 "httpMethod": "PATCH",845 "flatPath": "v1beta/tunedModels/{tunedModelsId}",846 "description": "Updates a tuned model.",847 "response": {848 "$ref": "TunedModel"849 },850 "parameterOrder": [851 "name"852 ],853 "parameters": {854 "updateMask": {855 "description": "Optional. The list of fields to update.",856 "format": "google-fieldmask",857 "type": "string",858 "location": "query"859 },860 "name": {861 "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`",862 "location": "path",863 "required": true,864 "type": "string",865 "pattern": "^tunedModels/[^/]+$"866 }867 },868 "deprecated": true,869 "request": {870 "$ref": "TunedModel"871 },872 "id": "generativelanguage.tunedModels.patch",873 "path": "v1beta/{+name}"874 }875 },876 "resources": {877 "permissions": {878 "methods": {879 "list": {880 "httpMethod": "GET",881 "response": {882 "$ref": "ListPermissionsResponse"883 },884 "id": "generativelanguage.tunedModels.permissions.list",885 "path": "v1beta/{+parent}/permissions",886 "parameters": {887 "parent": {888 "location": "path",889 "required": true,890 "type": "string",891 "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",892 "pattern": "^tunedModels/[^/]+$"893 },894 "pageToken": {895 "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.",896 "type": "string",897 "location": "query"898 },899 "pageSize": {900 "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.",901 "location": "query",902 "format": "int32",903 "type": "integer"904 }905 },906 "description": "Lists permissions for the specific resource.",907 "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",908 "parameterOrder": [909 "parent"910 ]911 },912 "create": {913 "response": {914 "$ref": "Permission"915 },916 "httpMethod": "POST",917 "path": "v1beta/{+parent}/permissions",918 "id": "generativelanguage.tunedModels.permissions.create",919 "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",920 "parameters": {921 "parent": {922 "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",923 "type": "string",924 "location": "path",925 "required": true,926 "pattern": "^tunedModels/[^/]+$"927 }928 },929 "description": "Create a permission to a specific resource.",930 "request": {931 "$ref": "Permission"932 },933 "parameterOrder": [934 "parent"935 ]936 },937 "get": {938 "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",939 "parameterOrder": [940 "name"941 ],942 "response": {943 "$ref": "Permission"944 },945 "description": "Gets information about a specific Permission.",946 "id": "generativelanguage.tunedModels.permissions.get",947 "httpMethod": "GET",948 "path": "v1beta/{+name}",949 "parameters": {950 "name": {951 "location": "path",952 "required": true,953 "type": "string",954 "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",955 "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`"956 }957 }958 },959 "patch": {960 "parameters": {961 "name": {962 "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",963 "type": "string",964 "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",965 "location": "path",966 "required": true967 },968 "updateMask": {969 "location": "query",970 "format": "google-fieldmask",971 "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)",972 "type": "string"973 }974 },975 "parameterOrder": [976 "name"977 ],978 "id": "generativelanguage.tunedModels.permissions.patch",979 "request": {980 "$ref": "Permission"981 },982 "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",983 "httpMethod": "PATCH",984 "description": "Updates the permission.",985 "path": "v1beta/{+name}",986 "response": {987 "$ref": "Permission"988 }989 },990 "delete": {991 "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",992 "parameterOrder": [993 "name"994 ],995 "description": "Deletes the permission.",996 "httpMethod": "DELETE",997 "response": {998 "$ref": "Empty"999 },1000 "path": "v1beta/{+name}",1001 "parameters": {1002 "name": {1003 "location": "path",1004 "required": true,1005 "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",1006 "type": "string",1007 "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`"1008 }1009 },1010 "id": "generativelanguage.tunedModels.permissions.delete"1011 }1012 }1013 },1014 "operations": {1015 "methods": {1016 "list": {1017 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",1018 "response": {1019 "$ref": "ListOperationsResponse"1020 },1021 "parameterOrder": [1022 "name"1023 ],1024 "path": "v1beta/{+name}/operations",1025 "parameters": {1026 "name": {1027 "description": "The name of the operation's parent resource.",1028 "type": "string",1029 "location": "path",1030 "required": true,1031 "pattern": "^tunedModels/[^/]+$"1032 },1033 "pageToken": {1034 "description": "The standard list page token.",1035 "location": "query",1036 "type": "string"1037 },1038 "filter": {1039 "description": "The standard list filter.",1040 "location": "query",1041 "type": "string"1042 },1043 "returnPartialSuccess": {1044 "type": "boolean",1045 "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",1046 "location": "query"1047 },1048 "pageSize": {1049 "description": "The standard list page size.",1050 "location": "query",1051 "type": "integer",1052 "format": "int32"1053 }1054 },1055 "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations",1056 "id": "generativelanguage.tunedModels.operations.list",1057 "httpMethod": "GET"1058 },1059 "get": {1060 "parameters": {1061 "name": {1062 "pattern": "^tunedModels/[^/]+/operations/[^/]+$",1063 "type": "string",1064 "description": "The name of the operation resource.",1065 "location": "path",1066 "required": true1067 }1068 },1069 "parameterOrder": [1070 "name"1071 ],1072 "response": {1073 "$ref": "Operation"1074 },1075 "httpMethod": "GET",1076 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",1077 "path": "v1beta/{+name}",1078 "id": "generativelanguage.tunedModels.operations.get",1079 "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations/{operationsId}"1080 }1081 }1082 }1083 }1084 },1085 "fileSearchStores": {1086 "resources": {1087 "operations": {1088 "methods": {1089 "get": {1090 "parameters": {1091 "name": {1092 "type": "string",1093 "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$",1094 "description": "The name of the operation resource.",1095 "location": "path",1096 "required": true1097 }1098 },1099 "path": "v1beta/{+name}",1100 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",1101 "response": {1102 "$ref": "Operation"1103 },1104 "httpMethod": "GET",1105 "id": "generativelanguage.fileSearchStores.operations.get",1106 "parameterOrder": [1107 "name"1108 ],1109 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}"1110 }1111 }1112 },1113 "documents": {1114 "methods": {1115 "delete": {1116 "httpMethod": "DELETE",1117 "parameters": {1118 "force": {1119 "type": "boolean",1120 "location": "query",1121 "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s."1122 },1123 "name": {1124 "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$",1125 "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",1126 "type": "string",1127 "location": "path",1128 "required": true1129 }1130 },1131 "response": {1132 "$ref": "Empty"1133 },1134 "id": "generativelanguage.fileSearchStores.documents.delete",1135 "path": "v1beta/{+name}",1136 "parameterOrder": [1137 "name"1138 ],1139 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",1140 "description": "Deletes a `Document`."1141 },1142 "list": {1143 "response": {1144 "$ref": "ListDocumentsResponse"1145 },1146 "parameters": {1147 "pageSize": {1148 "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.",1149 "format": "int32",1150 "type": "integer",1151 "location": "query"1152 },1153 "pageToken": {1154 "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.",1155 "type": "string",1156 "location": "query"1157 },1158 "parent": {1159 "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`",1160 "pattern": "^fileSearchStores/[^/]+$",1161 "type": "string",1162 "location": "path",1163 "required": true1164 }1165 },1166 "path": "v1beta/{+parent}/documents",1167 "httpMethod": "GET",1168 "description": "Lists all `Document`s in a `Corpus`.",1169 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents",1170 "parameterOrder": [1171 "parent"1172 ],1173 "id": "generativelanguage.fileSearchStores.documents.list"1174 },1175 "get": {1176 "description": "Gets information about a specific `Document`.",1177 "parameterOrder": [1178 "name"1179 ],1180 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",1181 "parameters": {1182 "name": {1183 "type": "string",1184 "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$",1185 "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",1186 "location": "path",1187 "required": true1188 }1189 },1190 "id": "generativelanguage.fileSearchStores.documents.get",1191 "httpMethod": "GET",1192 "response": {1193 "$ref": "Document"1194 },1195 "path": "v1beta/{+name}"1196 }1197 }1198 },1199 "upload": {1200 "resources": {1201 "operations": {1202 "methods": {1203 "get": {1204 "parameterOrder": [1205 "name"1206 ],1207 "path": "v1beta/{+name}",1208 "response": {1209 "$ref": "Operation"1210 },1211 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",1212 "id": "generativelanguage.fileSearchStores.upload.operations.get",1213 "parameters": {1214 "name": {1215 "type": "string",1216 "location": "path",1217 "required": true,1218 "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$",1219 "description": "The name of the operation resource."1220 }1221 },1222 "httpMethod": "GET",1223 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}"1224 }1225 }1226 }1227 }1228 }1229 },1230 "methods": {1231 "create": {1232 "id": "generativelanguage.fileSearchStores.create",1233 "parameterOrder": [],1234 "parameters": {},1235 "request": {1236 "$ref": "FileSearchStore"1237 },1238 "path": "v1beta/fileSearchStores",1239 "description": "Creates an empty `FileSearchStore`.",1240 "response": {1241 "$ref": "FileSearchStore"1242 },1243 "flatPath": "v1beta/fileSearchStores",1244 "httpMethod": "POST"1245 },1246 "list": {1247 "id": "generativelanguage.fileSearchStores.list",1248 "httpMethod": "GET",1249 "response": {1250 "$ref": "ListFileSearchStoresResponse"1251 },1252 "parameters": {1253 "pageSize": {1254 "type": "integer",1255 "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.",1256 "location": "query",1257 "format": "int32"1258 },1259 "pageToken": {1260 "type": "string",1261 "location": "query",1262 "description": "Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token."1263 }1264 },1265 "description": "Lists all `FileSearchStores` owned by the user.",1266 "flatPath": "v1beta/fileSearchStores",1267 "parameterOrder": [],1268 "path": "v1beta/fileSearchStores"1269 },1270 "importFile": {1271 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:importFile",1272 "request": {1273 "$ref": "ImportFileRequest"1274 },1275 "response": {1276 "$ref": "Operation"1277 },1278 "parameters": {1279 "fileSearchStoreName": {1280 "location": "path",1281 "required": true,1282 "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`",1283 "type": "string",1284 "pattern": "^fileSearchStores/[^/]+$"1285 }1286 },1287 "parameterOrder": [1288 "fileSearchStoreName"1289 ],1290 "path": "v1beta/{+fileSearchStoreName}:importFile",1291 "id": "generativelanguage.fileSearchStores.importFile",1292 "description": "Imports a `File` from File Service to a `FileSearchStore`.",1293 "scopes": [1294 "https://www.googleapis.com/auth/devstorage.read_only"1295 ],1296 "httpMethod": "POST"1297 },1298 "get": {1299 "id": "generativelanguage.fileSearchStores.get",1300 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",1301 "httpMethod": "GET",1302 "path": "v1beta/{+name}",1303 "parameters": {1304 "name": {1305 "type": "string",1306 "location": "path",1307 "required": true,1308 "pattern": "^fileSearchStores/[^/]+$",1309 "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`"1310 }1311 },1312 "description": "Gets information about a specific `FileSearchStore`.",1313 "response": {1314 "$ref": "FileSearchStore"1315 },1316 "parameterOrder": [1317 "name"1318 ]1319 },1320 "delete": {1321 "path": "v1beta/{+name}",1322 "parameterOrder": [1323 "name"1324 ],1325 "id": "generativelanguage.fileSearchStores.delete",1326 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",1327 "description": "Deletes a `FileSearchStore`.",1328 "parameters": {1329 "name": {1330 "pattern": "^fileSearchStores/[^/]+$",1331 "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`",1332 "type": "string",1333 "location": "path",1334 "required": true1335 },1336 "force": {1337 "type": "boolean",1338 "location": "query",1339 "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s."1340 }1341 },1342 "response": {1343 "$ref": "Empty"1344 },1345 "httpMethod": "DELETE"1346 }1347 }1348 },1349 "corpora": {1350 "resources": {1351 "operations": {1352 "methods": {1353 "get": {1354 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",1355 "id": "generativelanguage.corpora.operations.get",1356 "flatPath": "v1beta/corpora/{corporaId}/operations/{operationsId}",1357 "parameterOrder": [1358 "name"1359 ],1360 "httpMethod": "GET",1361 "response": {1362 "$ref": "Operation"1363 },1364 "path": "v1beta/{+name}",1365 "parameters": {1366 "name": {1367 "pattern": "^corpora/[^/]+/operations/[^/]+$",1368 "location": "path",1369 "required": true,1370 "description": "The name of the operation resource.",1371 "type": "string"1372 }1373 }1374 }1375 }1376 },1377 "permissions": {1378 "methods": {1379 "patch": {1380 "path": "v1beta/{+name}",1381 "parameters": {1382 "updateMask": {1383 "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)",1384 "type": "string",1385 "format": "google-fieldmask",1386 "location": "query"1387 },1388 "name": {1389 "pattern": "^corpora/[^/]+/permissions/[^/]+$",1390 "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",1391 "location": "path",1392 "required": true,1393 "type": "string"1394 }1395 },1396 "id": "generativelanguage.corpora.permissions.patch",1397 "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",1398 "request": {1399 "$ref": "Permission"1400 },1401 "response": {1402 "$ref": "Permission"1403 },1404 "description": "Updates the permission.",1405 "parameterOrder": [1406 "name"1407 ],1408 "httpMethod": "PATCH"1409 },1410 "delete": {1411 "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",1412 "path": "v1beta/{+name}",1413 "parameterOrder": [1414 "name"1415 ],1416 "id": "generativelanguage.corpora.permissions.delete",1417 "response": {1418 "$ref": "Empty"1419 },1420 "parameters": {1421 "name": {1422 "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",1423 "location": "path",1424 "required": true,1425 "pattern": "^corpora/[^/]+/permissions/[^/]+$",1426 "type": "string"1427 }1428 },1429 "description": "Deletes the permission.",1430 "httpMethod": "DELETE"1431 },1432 "create": {1433 "path": "v1beta/{+parent}/permissions",1434 "request": {1435 "$ref": "Permission"1436 },1437 "flatPath": "v1beta/corpora/{corporaId}/permissions",1438 "response": {1439 "$ref": "Permission"1440 },1441 "httpMethod": "POST",1442 "id": "generativelanguage.corpora.permissions.create",1443 "parameterOrder": [1444 "parent"1445 ],1446 "description": "Create a permission to a specific resource.",1447 "parameters": {1448 "parent": {1449 "pattern": "^corpora/[^/]+$",1450 "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",1451 "type": "string",1452 "location": "path",1453 "required": true1454 }1455 }1456 },1457 "list": {1458 "httpMethod": "GET",1459 "parameterOrder": [1460 "parent"1461 ],1462 "parameters": {1463 "pageSize": {1464 "type": "integer",1465 "format": "int32",1466 "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.",1467 "location": "query"1468 },1469 "parent": {1470 "type": "string",1471 "location": "path",1472 "required": true,1473 "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",1474 "pattern": "^corpora/[^/]+$"1475 },1476 "pageToken": {1477 "type": "string",1478 "location": "query",1479 "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token."1480 }1481 },1482 "response": {1483 "$ref": "ListPermissionsResponse"1484 },1485 "path": "v1beta/{+parent}/permissions",1486 "flatPath": "v1beta/corpora/{corporaId}/permissions",1487 "id": "generativelanguage.corpora.permissions.list",1488 "description": "Lists permissions for the specific resource."1489 },1490 "get": {1491 "httpMethod": "GET",1492 "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",1493 "parameters": {1494 "name": {1495 "type": "string",1496 "pattern": "^corpora/[^/]+/permissions/[^/]+$",1497 "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",1498 "location": "path",1499 "required": true1500 }1501 },1502 "path": "v1beta/{+name}",1503 "id": "generativelanguage.corpora.permissions.get",1504 "parameterOrder": [1505 "name"1506 ],1507 "description": "Gets information about a specific Permission.",1508 "response": {1509 "$ref": "Permission"1510 }1511 }1512 }1513 }1514 },1515 "methods": {1516 "get": {1517 "path": "v1beta/{+name}",1518 "description": "Gets information about a specific `Corpus`.",1519 "parameters": {1520 "name": {1521 "type": "string",1522 "pattern": "^corpora/[^/]+$",1523 "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`",1524 "location": "path",1525 "required": true1526 }1527 },1528 "deprecated": true,1529 "id": "generativelanguage.corpora.get",1530 "parameterOrder": [1531 "name"1532 ],1533 "response": {1534 "$ref": "Corpus"1535 },1536 "httpMethod": "GET",1537 "flatPath": "v1beta/corpora/{corporaId}"1538 },1539 "list": {1540 "httpMethod": "GET",1541 "response": {1542 "$ref": "ListCorporaResponse"1543 },1544 "parameterOrder": [],1545 "flatPath": "v1beta/corpora",1546 "id": "generativelanguage.corpora.list",1547 "parameters": {1548 "pageToken": {1549 "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.",1550 "location": "query",1551 "type": "string"1552 },1553 "pageSize": {1554 "location": "query",1555 "type": "integer",1556 "format": "int32",1557 "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page."1558 }1559 },1560 "deprecated": true,1561 "description": "Lists all `Corpora` owned by the user.",1562 "path": "v1beta/corpora"1563 },1564 "delete": {1565 "path": "v1beta/{+name}",1566 "parameters": {1567 "name": {1568 "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`",1569 "type": "string",1570 "pattern": "^corpora/[^/]+$",1571 "location": "path",1572 "required": true1573 },1574 "force": {1575 "location": "query",1576 "type": "boolean",1577 "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s."1578 }1579 },1580 "deprecated": true,1581 "response": {1582 "$ref": "Empty"1583 },1584 "httpMethod": "DELETE",1585 "id": "generativelanguage.corpora.delete",1586 "description": "Deletes a `Corpus`.",1587 "parameterOrder": [1588 "name"1589 ],1590 "flatPath": "v1beta/corpora/{corporaId}"1591 },1592 "create": {1593 "request": {1594 "$ref": "Corpus"1595 },1596 "id": "generativelanguage.corpora.create",1597 "parameters": {},1598 "deprecated": true,1599 "parameterOrder": [],1600 "path": "v1beta/corpora",1601 "response": {1602 "$ref": "Corpus"1603 },1604 "flatPath": "v1beta/corpora",1605 "description": "Creates an empty `Corpus`.",1606 "httpMethod": "POST"1607 }1608 }1609 },1610 "cachedContents": {1611 "methods": {1612 "get": {1613 "scopes": [1614 "https://www.googleapis.com/auth/devstorage.read_only"1615 ],1616 "httpMethod": "GET",1617 "flatPath": "v1beta/cachedContents/{cachedContentsId}",1618 "parameterOrder": [1619 "name"1620 ],1621 "description": "Reads CachedContent resource.",1622 "id": "generativelanguage.cachedContents.get",1623 "path": "v1beta/{+name}",1624 "response": {1625 "$ref": "CachedContent"1626 },1627 "parameters": {1628 "name": {1629 "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`",1630 "location": "path",1631 "required": true,1632 "pattern": "^cachedContents/[^/]+$",1633 "type": "string"1634 }1635 }1636 },1637 "delete": {1638 "scopes": [1639 "https://www.googleapis.com/auth/devstorage.read_only"1640 ],1641 "id": "generativelanguage.cachedContents.delete",1642 "httpMethod": "DELETE",1643 "description": "Deletes CachedContent resource.",1644 "flatPath": "v1beta/cachedContents/{cachedContentsId}",1645 "response": {1646 "$ref": "Empty"1647 },1648 "parameters": {1649 "name": {1650 "type": "string",1651 "location": "path",1652 "required": true,1653 "pattern": "^cachedContents/[^/]+$",1654 "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`"1655 }1656 },1657 "parameterOrder": [1658 "name"1659 ],1660 "path": "v1beta/{+name}"1661 },1662 "patch": {1663 "httpMethod": "PATCH",1664 "id": "generativelanguage.cachedContents.patch",1665 "scopes": [1666 "https://www.googleapis.com/auth/devstorage.read_only"1667 ],1668 "description": "Updates CachedContent resource (only expiration is updatable).",1669 "parameterOrder": [1670 "name"1671 ],1672 "request": {1673 "$ref": "CachedContent"1674 },1675 "flatPath": "v1beta/cachedContents/{cachedContentsId}",1676 "parameters": {1677 "updateMask": {1678 "description": "The list of fields to update.",1679 "location": "query",1680 "type": "string",1681 "format": "google-fieldmask"1682 },1683 "name": {1684 "type": "string",1685 "location": "path",1686 "required": true,1687 "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",1688 "pattern": "^cachedContents/[^/]+$"1689 }1690 },1691 "path": "v1beta/{+name}",1692 "response": {1693 "$ref": "CachedContent"1694 }1695 },1696 "list": {1697 "scopes": [1698 "https://www.googleapis.com/auth/devstorage.read_only"1699 ],1700 "parameterOrder": [],1701 "httpMethod": "GET",1702 "description": "Lists CachedContents.",1703 "id": "generativelanguage.cachedContents.list",1704 "flatPath": "v1beta/cachedContents",1705 "path": "v1beta/cachedContents",1706 "parameters": {1707 "pageSize": {1708 "format": "int32",1709 "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",1710 "location": "query",1711 "type": "integer"1712 },1713 "pageToken": {1714 "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.",1715 "type": "string",1716 "location": "query"1717 }1718 },1719 "response": {1720 "$ref": "ListCachedContentsResponse"1721 }1722 },1723 "create": {1724 "httpMethod": "POST",1725 "request": {1726 "$ref": "CachedContent"1727 },1728 "scopes": [1729 "https://www.googleapis.com/auth/devstorage.read_only"1730 ],1731 "path": "v1beta/cachedContents",1732 "parameters": {},1733 "id": "generativelanguage.cachedContents.create",1734 "parameterOrder": [],1735 "response": {1736 "$ref": "CachedContent"1737 },1738 "flatPath": "v1beta/cachedContents",1739 "description": "Creates CachedContent resource."1740 }1741 }1742 },1743 "batches": {1744 "methods": {1745 "list": {1746 "parameterOrder": [1747 "name"1748 ],1749 "response": {1750 "$ref": "ListOperationsResponse"1751 },1752 "httpMethod": "GET",1753 "path": "v1beta/{+name}",1754 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",1755 "id": "generativelanguage.batches.list",1756 "parameters": {1757 "pageSize": {1758 "description": "The standard list page size.",1759 "type": "integer",1760 "location": "query",1761 "format": "int32"1762 },1763 "returnPartialSuccess": {1764 "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",1765 "type": "boolean",1766 "location": "query"1767 },1768 "pageToken": {1769 "location": "query",1770 "description": "The standard list page token.",1771 "type": "string"1772 },1773 "filter": {1774 "description": "The standard list filter.",1775 "location": "query",1776 "type": "string"1777 },1778 "name": {1779 "description": "The name of the operation's parent resource.",1780 "pattern": "^batches$",1781 "location": "path",1782 "required": true,1783 "type": "string"1784 }1785 },1786 "flatPath": "v1beta/batches"1787 },1788 "get": {1789 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",1790 "parameterOrder": [1791 "name"1792 ],1793 "id": "generativelanguage.batches.get",1794 "response": {1795 "$ref": "Operation"1796 },1797 "parameters": {1798 "name": {1799 "description": "The name of the operation resource.",1800 "location": "path",1801 "required": true,1802 "type": "string",1803 "pattern": "^batches/[^/]+$"1804 }1805 },1806 "flatPath": "v1beta/batches/{batchesId}",1807 "path": "v1beta/{+name}",1808 "httpMethod": "GET"1809 },1810 "updateEmbedContentBatch": {1811 "flatPath": "v1beta/batches/{batchesId}:updateEmbedContentBatch",1812 "description": "Updates a batch of EmbedContent requests for batch processing.",1813 "parameters": {1814 "name": {1815 "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",1816 "pattern": "^batches/[^/]+$",1817 "type": "string",1818 "location": "path",1819 "required": true1820 },1821 "updateMask": {1822 "description": "Optional. The list of fields to update.",1823 "type": "string",1824 "format": "google-fieldmask",1825 "location": "query"1826 }1827 },1828 "response": {1829 "$ref": "EmbedContentBatch"1830 },1831 "id": "generativelanguage.batches.updateEmbedContentBatch",1832 "path": "v1beta/{+name}:updateEmbedContentBatch",1833 "httpMethod": "PATCH",1834 "parameterOrder": [1835 "name"1836 ],1837 "request": {1838 "$ref": "EmbedContentBatch"1839 }1840 },1841 "delete": {1842 "flatPath": "v1beta/batches/{batchesId}",1843 "parameterOrder": [1844 "name"1845 ],1846 "id": "generativelanguage.batches.delete",1847 "response": {1848 "$ref": "Empty"1849 },1850 "parameters": {1851 "name": {1852 "location": "path",1853 "required": true,1854 "type": "string",1855 "pattern": "^batches/[^/]+$",1856 "description": "The name of the operation resource to be deleted."1857 }1858 },1859 "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",1860 "path": "v1beta/{+name}",1861 "httpMethod": "DELETE"1862 },1863 "cancel": {1864 "flatPath": "v1beta/batches/{batchesId}:cancel",1865 "parameterOrder": [1866 "name"1867 ],1868 "path": "v1beta/{+name}:cancel",1869 "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",1870 "parameters": {1871 "name": {1872 "pattern": "^batches/[^/]+$",1873 "location": "path",1874 "required": true,1875 "description": "The name of the operation resource to be cancelled.",1876 "type": "string"1877 }1878 },1879 "response": {1880 "$ref": "Empty"1881 },1882 "httpMethod": "POST",1883 "id": "generativelanguage.batches.cancel"1884 },1885 "updateGenerateContentBatch": {1886 "response": {1887 "$ref": "GenerateContentBatch"1888 },1889 "request": {1890 "$ref": "GenerateContentBatch"1891 },1892 "flatPath": "v1beta/batches/{batchesId}:updateGenerateContentBatch",1893 "parameters": {1894 "name": {1895 "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",1896 "location": "path",1897 "required": true,1898 "pattern": "^batches/[^/]+$",1899 "type": "string"1900 },1901 "updateMask": {1902 "type": "string",1903 "location": "query",1904 "format": "google-fieldmask",1905 "description": "Optional. The list of fields to update."1906 }1907 },1908 "path": "v1beta/{+name}:updateGenerateContentBatch",1909 "parameterOrder": [1910 "name"1911 ],1912 "id": "generativelanguage.batches.updateGenerateContentBatch",1913 "httpMethod": "PATCH",1914 "description": "Updates a batch of GenerateContent requests for batch processing."1915 }1916 }1917 },1918 "auth_tokens": {1919 "methods": {1920 "create": {1921 "response": {1922 "$ref": "AuthToken"1923 },1924 "path": "v1beta/auth_tokens",1925 "id": "generativelanguage.auth_tokens.create",1926 "flatPath": "v1beta/auth_tokens",1927 "httpMethod": "POST",1928 "parameterOrder": [],1929 "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.",1930 "parameters": {},1931 "request": {1932 "$ref": "AuthToken"1933 }1934 }1935 }1936 },1937 "environments": {1938 "methods": {1939 "list": {1940 "description": "Lists environments.",1941 "flatPath": "v1beta/environments:list",1942 "parameterOrder": [],1943 "path": "v1beta/environments:list",1944 "httpMethod": "GET",1945 "id": "generativelanguage.environments.list",1946 "response": {1947 "$ref": "ListEnvironmentsResponse"1948 },1949 "parameters": {1950 "pageSize": {1951 "format": "int32",1952 "description": "Optional. Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.",1953 "type": "integer",1954 "location": "query"1955 },1956 "pageToken": {1957 "description": "Optional. Pagination token.",1958 "location": "query",1959 "type": "string"1960 }1961 }1962 },1963 "delete": {1964 "response": {1965 "$ref": "Empty"1966 },1967 "description": "Deletes an environment.",1968 "parameterOrder": [1969 "id"1970 ],1971 "path": "v1beta/environments/{id}:delete",1972 "httpMethod": "DELETE",1973 "flatPath": "v1beta/environments/{id}:delete",1974 "id": "generativelanguage.environments.delete",1975 "parameters": {1976 "id": {1977 "location": "path",1978 "required": true,1979 "description": "Required. Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.",1980 "type": "string"1981 }1982 }1983 },1984 "create": {1985 "httpMethod": "POST",1986 "request": {1987 "$ref": "CreateEnvironmentRequest"1988 },1989 "response": {1990 "$ref": "Environment"1991 },1992 "description": "Creates an environment.",1993 "id": "generativelanguage.environments.create",1994 "path": "v1beta/environments:create",1995 "parameterOrder": [],1996 "flatPath": "v1beta/environments:create",1997 "parameters": {}1998 },1999 "get": {2000 "flatPath": "v1beta/environments/{id}:get",2001 "description": "Gets an environment.",2002 "id": "generativelanguage.environments.get",2003 "httpMethod": "GET",2004 "parameterOrder": [2005 "id"2006 ],2007 "path": "v1beta/environments/{id}:get",2008 "response": {2009 "$ref": "Environment"2010 },2011 "parameters": {2012 "id": {2013 "type": "string",2014 "location": "path",2015 "required": true,2016 "description": "Required. Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122."2017 }2018 }2019 }2020 },2021 "resources": {2022 "files": {2023 "resources": {2024 "media": {2025 "methods": {2026 "upload": {2027 "httpMethod": "PUT",2028 "description": "Uploads (creates or updates) a file in an environment's workspace.",2029 "supportsMediaUpload": true,2030 "path": "v1beta/{+parent}/files/{+path}",2031 "mediaUpload": {2032 "maxSize": "2147483648",2033 "accept": [2034 "*/*"2035 ],2036 "protocols": {2037 "resumable": {2038 "multipart": true,2039 "path": "/resumable/upload/v1beta/{+parent}/files/{+path}"2040 },2041 "simple": {2042 "multipart": true,2043 "path": "/upload/v1beta/{+parent}/files/{+path}"2044 }2045 }2046 },2047 "id": "generativelanguage.environments.files.media.upload",2048 "flatPath": "v1beta/environments/{environmentsId}/files/{filesId}",2049 "parameterOrder": [2050 "parent",2051 "path"2052 ],2053 "parameters": {2054 "path": {2055 "type": "string",2056 "location": "path",2057 "required": true,2058 "description": "Required. The destination relative path of the file within the environment. Example: \"workspace/src/main.py\"",2059 "pattern": "^.*$"2060 },2061 "parent": {2062 "description": "Required. The resource name of the target environment. Format: `environments/{environment_id}`",2063 "pattern": "^environments/[^/]+$",2064 "type": "string",2065 "location": "path",2066 "required": true2067 }2068 },2069 "response": {2070 "$ref": "UploadEnvironmentFileResponse"2071 },2072 "request": {2073 "$ref": "UploadEnvironmentFileRequest"2074 }2075 },2076 "download": {2077 "useMediaDownloadService": true,2078 "id": "generativelanguage.environments.files.media.download",2079 "parameters": {2080 "path": {2081 "description": "Optional. The path of the file or directory within the environment. If empty, defaults to the root of the workspace. Example: \"workspace/src/main.py\"",2082 "location": "path",2083 "required": true,2084 "pattern": "^.*$",2085 "type": "string"2086 },2087 "parent": {2088 "location": "path",2089 "required": true,2090 "type": "string",2091 "pattern": "^environments/[^/]+$",2092 "description": "Required. The resource name of the environment. Format: `environments/{environment_id}`"2093 },2094 "recursive": {2095 "location": "query",2096 "description": "Optional. If true and the path is a directory, recursively lists all files and subdirectories. Defaults to false (immediate children only).",2097 "type": "boolean"2098 },2099 "page_size": {2100 "description": "Optional. Maximum number of entries to return per page (for directory listing). If unspecified, defaults to 100. Maximum is 1000. NOLINT",2101 "location": "query",2102 "format": "int32",2103 "type": "integer"2104 },2105 "page_token": {2106 "location": "query",2107 "type": "string",2108 "description": "Optional. Pagination token for directory listing. NOLINT"2109 }2110 },2111 "supportsMediaDownload": true,2112 "flatPath": "v1beta/environments/{environmentsId}/files/{filesId}",2113 "response": {2114 "$ref": "GetEnvironmentFilesResponse"2115 },2116 "description": "Retrieves file metadata or directory contents from an environment's snapshot. To download file contents directly, pass ?alt=media or use the files.download helper.",2117 "parameterOrder": [2118 "parent",2119 "path"2120 ],2121 "httpMethod": "GET",2122 "path": "v1beta/{+parent}/files/{+path}"2123 }2124 }2125 }2126 }2127 }2128 }2129 },2130 "files": {2131 "methods": {2132 "list": {2133 "description": "Lists the metadata for `File`s owned by the requesting project.",2134 "parameterOrder": [],2135 "scopes": [2136 "https://www.googleapis.com/auth/devstorage.read_only"2137 ],2138 "id": "generativelanguage.files.list",2139 "parameters": {2140 "pageToken": {2141 "location": "query",2142 "description": "Optional. A page token from a previous `ListFiles` call.",2143 "type": "string"2144 },2145 "pageSize": {2146 "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.",2147 "location": "query",2148 "type": "integer",2149 "format": "int32"2150 }2151 },2152 "flatPath": "v1beta/files",2153 "path": "v1beta/files",2154 "response": {2155 "$ref": "ListFilesResponse"2156 },2157 "httpMethod": "GET"2158 },2159 "register": {2160 "request": {2161 "$ref": "RegisterFilesRequest"2162 },2163 "path": "v1beta/files:register",2164 "httpMethod": "POST",2165 "flatPath": "v1beta/files:register",2166 "id": "generativelanguage.files.register",2167 "parameterOrder": [],2168 "response": {2169 "$ref": "RegisterFilesResponse"2170 },2171 "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.",2172 "scopes": [2173 "https://www.googleapis.com/auth/devstorage.read_only"2174 ],2175 "parameters": {}2176 },2177 "get": {2178 "id": "generativelanguage.files.get",2179 "parameters": {2180 "name": {2181 "location": "path",2182 "required": true,2183 "type": "string",2184 "description": "Required. The name of the `File` to get. Example: `files/abc-123`",2185 "pattern": "^files/[^/]+$"2186 }2187 },2188 "response": {2189 "$ref": "File"2190 },2191 "scopes": [2192 "https://www.googleapis.com/auth/devstorage.read_only"2193 ],2194 "flatPath": "v1beta/files/{filesId}",2195 "httpMethod": "GET",2196 "path": "v1beta/{+name}",2197 "description": "Gets the metadata for the given `File`.",2198 "parameterOrder": [2199 "name"2200 ]2201 },2202 "delete": {2203 "parameterOrder": [2204 "name"2205 ],2206 "httpMethod": "DELETE",2207 "id": "generativelanguage.files.delete",2208 "scopes": [2209 "https://www.googleapis.com/auth/devstorage.read_only"2210 ],2211 "response": {2212 "$ref": "Empty"2213 },2214 "description": "Deletes the `File`.",2215 "parameters": {2216 "name": {2217 "location": "path",2218 "required": true,2219 "type": "string",2220 "description": "Required. The name of the `File` to delete. Example: `files/abc-123`",2221 "pattern": "^files/[^/]+$"2222 }2223 },2224 "path": "v1beta/{+name}",2225 "flatPath": "v1beta/files/{filesId}"2226 }2227 }2228 },2229 "media": {2230 "methods": {2231 "uploadToFileSearchStore": {2232 "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore",2233 "parameterOrder": [2234 "fileSearchStoreName"2235 ],2236 "request": {2237 "$ref": "UploadToFileSearchStoreRequest"2238 },2239 "response": {2240 "$ref": "CustomLongRunningOperation"2241 },2242 "mediaUpload": {2243 "accept": [2244 "*/*"2245 ],2246 "maxSize": "104857600",2247 "protocols": {2248 "simple": {2249 "multipart": true,2250 "path": "/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore"2251 },2252 "resumable": {2253 "path": "/resumable/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",2254 "multipart": true2255 }2256 }2257 },2258 "supportsMediaUpload": true,2259 "parameters": {2260 "fileSearchStoreName": {2261 "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`",2262 "location": "path",2263 "required": true,2264 "type": "string",2265 "pattern": "^fileSearchStores/[^/]+$"2266 }2267 },2268 "scopes": [2269 "https://www.googleapis.com/auth/devstorage.read_only"2270 ],2271 "path": "v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",2272 "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.",2273 "httpMethod": "POST",2274 "id": "generativelanguage.media.uploadToFileSearchStore"2275 },2276 "upload": {2277 "id": "generativelanguage.media.upload",2278 "description": "Creates a `File`.",2279 "response": {2280 "$ref": "CreateFileResponse"2281 },2282 "httpMethod": "POST",2283 "flatPath": "v1beta/files",2284 "supportsMediaUpload": true,2285 "path": "v1beta/files",2286 "mediaUpload": {2287 "accept": [2288 "*/*"2289 ],2290 "maxSize": "2147483648",2291 "protocols": {2292 "simple": {2293 "multipart": true,2294 "path": "/upload/v1beta/files"2295 },2296 "resumable": {2297 "multipart": true,2298 "path": "/resumable/upload/v1beta/files"2299 }2300 }2301 },2302 "scopes": [2303 "https://www.googleapis.com/auth/devstorage.read_only"2304 ],2305 "request": {2306 "$ref": "CreateFileRequest"2307 },2308 "parameterOrder": [],2309 "parameters": {}2310 }2311 }2312 },2313 "dynamic": {2314 "methods": {2315 "streamGenerateContent": {2316 "path": "v1beta/{+model}:streamGenerateContent",2317 "httpMethod": "POST",2318 "flatPath": "v1beta/dynamic/{dynamicId}:streamGenerateContent",2319 "response": {2320 "$ref": "GenerateContentResponse"2321 },2322 "id": "generativelanguage.dynamic.streamGenerateContent",2323 "parameters": {2324 "model": {2325 "type": "string",2326 "pattern": "^dynamic/[^/]+$",2327 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",2328 "location": "path",2329 "required": true2330 }2331 },2332 "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",2333 "parameterOrder": [2334 "model"2335 ],2336 "request": {2337 "$ref": "GenerateContentRequest"2338 }2339 },2340 "generateContent": {2341 "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",2342 "path": "v1beta/{+model}:generateContent",2343 "parameters": {2344 "model": {2345 "type": "string",2346 "pattern": "^dynamic/[^/]+$",2347 "location": "path",2348 "required": true,2349 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."2350 }2351 },2352 "flatPath": "v1beta/dynamic/{dynamicId}:generateContent",2353 "parameterOrder": [2354 "model"2355 ],2356 "response": {2357 "$ref": "GenerateContentResponse"2358 },2359 "id": "generativelanguage.dynamic.generateContent",2360 "request": {2361 "$ref": "GenerateContentRequest"2362 },2363 "httpMethod": "POST"2364 }2365 }2366 }2367 },2368 "mtlsRootUrl": "https://generativelanguage.mtls.googleapis.com/",2369 "auth": {2370 "oauth2": {2371 "scopes": {2372 "https://www.googleapis.com/auth/devstorage.read_only": {2373 "description": "View your data in Google Cloud Storage"2374 }2375 }2376 }2377 },2378 "rootUrl": "https://generativelanguage.googleapis.com/",2379 "version_module": true,2380 "baseUrl": "https://generativelanguage.googleapis.com/",2381 "title": "Gemini API",2382 "schemas": {2383 "ToolConfig": {2384 "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.",2385 "type": "object",2386 "id": "ToolConfig",2387 "properties": {2388 "retrievalConfig": {2389 "description": "Optional. Retrieval config.",2390 "$ref": "RetrievalConfig"2391 },2392 "includeServerSideToolInvocations": {2393 "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions.",2394 "type": "boolean"2395 },2396 "functionCallingConfig": {2397 "description": "Optional. Function calling config.",2398 "$ref": "FunctionCallingConfig"2399 }2400 }2401 },2402 "FunctionResponse": {2403 "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.",2404 "properties": {2405 "id": {2406 "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`.",2407 "type": "string"2408 },2409 "name": {2410 "type": "string",2411 "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128."2412 },2413 "scheduling": {2414 "enum": [2415 "SCHEDULING_UNSPECIFIED",2416 "SILENT",2417 "WHEN_IDLE",2418 "INTERRUPT"2419 ],2420 "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.",2421 "type": "string",2422 "enumDescriptions": [2423 "This value is unused.",2424 "Only add the result to the conversation context, do not interrupt or trigger generation.",2425 "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.",2426 "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output."2427 ]2428 },2429 "willContinue": {2430 "type": "boolean",2431 "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`."2432 },2433 "response": {2434 "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal.",2435 "additionalProperties": {2436 "description": "Properties of the object.",2437 "type": "any"2438 },2439 "type": "object"2440 },2441 "parts": {2442 "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.",2443 "type": "array",2444 "items": {2445 "$ref": "FunctionResponsePart"2446 }2447 }2448 },2449 "type": "object",2450 "id": "FunctionResponse"2451 },2452 "ModelStatus": {2453 "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.",2454 "properties": {2455 "modelStage": {2456 "type": "string",2457 "description": "The stage of the underlying model.",2458 "enumDeprecated": [2459 false,2460 true,2461 false,2462 false,2463 false,2464 false,2465 true,2466 false2467 ],2468 "enumDescriptions": [2469 "Unspecified model stage.",2470 "The underlying model is subject to lots of tunings.",2471 "Models in this stage are for experimental purposes only.",2472 "Models in this stage are more mature than experimental models.",2473 "Models in this stage are considered stable and ready for production use.",2474 "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.",2475 "Models in this stage are deprecated. These models cannot be used.",2476 "Models in this stage are retired. These models cannot be used."2477 ],2478 "enum": [2479 "MODEL_STAGE_UNSPECIFIED",2480 "UNSTABLE_EXPERIMENTAL",2481 "EXPERIMENTAL",2482 "PREVIEW",2483 "STABLE",2484 "LEGACY",2485 "DEPRECATED",2486 "RETIRED"2487 ]2488 },2489 "retirementTime": {2490 "format": "google-datetime",2491 "description": "The time at which the model will be retired.",2492 "type": "string"2493 },2494 "message": {2495 "description": "A message explaining the model status.",2496 "type": "string"2497 }2498 },2499 "type": "object",2500 "id": "ModelStatus"2501 },2502 "PromptFeedback": {2503 "type": "object",2504 "properties": {2505 "safetyRatings": {2506 "items": {2507 "$ref": "SafetyRating"2508 },2509 "type": "array",2510 "description": "Ratings for safety of the prompt. There is at most one rating per category."2511 },2512 "blockReason": {2513 "type": "string",2514 "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.",2515 "enum": [2516 "BLOCK_REASON_UNSPECIFIED",2517 "SAFETY",2518 "OTHER",2519 "BLOCKLIST",2520 "PROHIBITED_CONTENT",2521 "IMAGE_SAFETY"2522 ],2523 "enumDescriptions": [2524 "Default value. This value is unused.",2525 "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.",2526 "Prompt was blocked due to unknown reasons.",2527 "Prompt was blocked due to the terms which are included from the terminology blocklist.",2528 "Prompt was blocked due to prohibited content.",2529 "Candidates blocked due to unsafe image generation content."2530 ]2531 }2532 },2533 "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.",2534 "id": "PromptFeedback"2535 },2536 "Condition": {2537 "type": "object",2538 "properties": {2539 "operation": {2540 "type": "string",2541 "enumDescriptions": [2542 "The default value. This value is unused.",2543 "Supported by numeric.",2544 "Supported by numeric.",2545 "Supported by numeric & string.",2546 "Supported by numeric.",2547 "Supported by numeric.",2548 "Supported by numeric & string.",2549 "Supported by string only when `CustomMetadata` value type for the given key has a `string_list_value`.",2550 "Supported by string only when `CustomMetadata` value type for the given key has a `string_list_value`."2551 ],2552 "enum": [2553 "OPERATOR_UNSPECIFIED",2554 "LESS",2555 "LESS_EQUAL",2556 "EQUAL",2557 "GREATER_EQUAL",2558 "GREATER",2559 "NOT_EQUAL",2560 "INCLUDES",2561 "EXCLUDES"2562 ],2563 "description": "Required. Operator applied to the given key-value pair to trigger the condition."2564 },2565 "numericValue": {2566 "description": "The numeric value to filter the metadata on.",2567 "format": "float",2568 "type": "number"2569 },2570 "stringValue": {2571 "type": "string",2572 "description": "The string value to filter the metadata on."2573 }2574 },2575 "id": "Condition",2576 "description": "Filter condition applicable to a single key."2577 },2578 "TuningExamples": {2579 "type": "object",2580 "id": "TuningExamples",2581 "properties": {2582 "examples": {2583 "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.",2584 "items": {2585 "$ref": "TuningExample"2586 },2587 "type": "array"2588 }2589 },2590 "description": "A set of tuning examples. Can be training or validation data."2591 },2592 "Tool": {2593 "type": "object",2594 "properties": {2595 "functionDeclarations": {2596 "type": "array",2597 "items": {2598 "$ref": "FunctionDeclaration"2599 },2600 "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn."2601 },2602 "googleSearchRetrieval": {2603 "description": "Optional. Retrieval tool that is powered by Google search.",2604 "$ref": "GoogleSearchRetrieval"2605 },2606 "fileSearch": {2607 "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.",2608 "$ref": "FileSearch"2609 },2610 "mcpServers": {2611 "items": {2612 "$ref": "McpServer"2613 },2614 "description": "Optional. MCP Servers to connect to.",2615 "type": "array"2616 },2617 "codeExecution": {2618 "$ref": "CodeExecution",2619 "description": "Optional. Enables the model to execute code as part of generation."2620 },2621 "computerUse": {2622 "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.",2623 "$ref": "ComputerUse"2624 },2625 "googleMaps": {2626 "$ref": "GoogleMaps",2627 "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query."2628 },2629 "urlContext": {2630 "description": "Optional. Tool to support URL context retrieval.",2631 "$ref": "UrlContext"2632 },2633 "googleSearch": {2634 "$ref": "GoogleSearch",2635 "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."2636 }2637 },2638 "id": "Tool",2639 "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. Next ID: 17"2640 },2641 "GenerateTextResponse": {2642 "description": "The response from the model, including candidate completions.",2643 "id": "GenerateTextResponse",2644 "properties": {2645 "candidates": {2646 "type": "array",2647 "description": "Candidate responses from the model.",2648 "items": {2649 "$ref": "TextCompletion"2650 }2651 },2652 "safetyFeedback": {2653 "description": "Returns any safety feedback related to content filtering.",2654 "type": "array",2655 "items": {2656 "$ref": "SafetyFeedback"2657 }2658 },2659 "filters": {2660 "items": {2661 "$ref": "ContentFilter"2662 },2663 "description": "A set of content filtering metadata for the prompt and response text. This indicates which `SafetyCategory`(s) blocked a candidate from this response, the lowest `HarmProbability` that triggered a block, and the HarmThreshold setting for that category. This indicates the smallest change to the `SafetySettings` that would be necessary to unblock at least 1 response. The blocking is configured by the `SafetySettings` in the request (or the default `SafetySettings` of the API).",2664 "type": "array"2665 }2666 },2667 "type": "object"2668 },2669 "LogprobsResultCandidate": {2670 "type": "object",2671 "properties": {2672 "tokenId": {2673 "description": "The candidate’s token id value.",2674 "type": "integer",2675 "format": "int32"2676 },2677 "logProbability": {2678 "type": "number",2679 "format": "float",2680 "description": "The candidate's log probability."2681 },2682 "token": {2683 "description": "The candidate’s token string value.",2684 "type": "string"2685 }2686 },2687 "description": "Candidate for the logprobs token and score.",2688 "id": "LogprobsResultCandidate"2689 },2690 "ImageResponseFormat": {2691 "type": "object",2692 "id": "ImageResponseFormat",2693 "description": "Configuration for image output format.",2694 "properties": {2695 "aspectRatio": {2696 "type": "string",2697 "enumDescriptions": [2698 "Default value. This value is unused.",2699 "1:1 aspect ratio.",2700 "2:3 aspect ratio.",2701 "3:2 aspect ratio.",2702 "3:4 aspect ratio.",2703 "4:3 aspect ratio.",2704 "4:5 aspect ratio.",2705 "5:4 aspect ratio.",2706 "9:16 aspect ratio.",2707 "16:9 aspect ratio.",2708 "21:9 aspect ratio.",2709 "1:8 aspect ratio.",2710 "8:1 aspect ratio.",2711 "1:4 aspect ratio.",2712 "4:1 aspect ratio."2713 ],2714 "enum": [2715 "ASPECT_RATIO_UNSPECIFIED",2716 "ASPECT_RATIO_ONE_BY_ONE",2717 "ASPECT_RATIO_TWO_BY_THREE",2718 "ASPECT_RATIO_THREE_BY_TWO",2719 "ASPECT_RATIO_THREE_BY_FOUR",2720 "ASPECT_RATIO_FOUR_BY_THREE",2721 "ASPECT_RATIO_FOUR_BY_FIVE",2722 "ASPECT_RATIO_FIVE_BY_FOUR",2723 "ASPECT_RATIO_NINE_BY_SIXTEEN",2724 "ASPECT_RATIO_SIXTEEN_BY_NINE",2725 "ASPECT_RATIO_TWENTY_ONE_BY_NINE",2726 "ASPECT_RATIO_ONE_BY_EIGHT",2727 "ASPECT_RATIO_EIGHT_BY_ONE",2728 "ASPECT_RATIO_ONE_BY_FOUR",2729 "ASPECT_RATIO_FOUR_BY_ONE"2730 ],2731 "description": "Optional. The aspect ratio for the image output."2732 },2733 "mimeType": {2734 "enum": [2735 "MIME_TYPE_UNSPECIFIED",2736 "IMAGE_JPEG"2737 ],2738 "enumDescriptions": [2739 "Default value. This value is unused.",2740 "JPEG image format."2741 ],2742 "type": "string",2743 "description": "Optional. The MIME type of the image output."2744 },2745 "imageSize": {2746 "type": "string",2747 "description": "Optional. The size of the image output.",2748 "enum": [2749 "IMAGE_SIZE_UNSPECIFIED",2750 "IMAGE_SIZE_FIVE_TWELVE",2751 "IMAGE_SIZE_ONE_K",2752 "IMAGE_SIZE_TWO_K",2753 "IMAGE_SIZE_FOUR_K"2754 ],2755 "enumDescriptions": [2756 "Default value. This value is unused.",2757 "512px image size.",2758 "1K image size.",2759 "2K image size.",2760 "4K image size."2761 ]2762 },2763 "delivery": {2764 "type": "string",2765 "enum": [2766 "DELIVERY_UNSPECIFIED",2767 "INLINE",2768 "URI"2769 ],2770 "description": "Optional. The delivery mode for the image output.",2771 "enumDescriptions": [2772 "Default value. This value is unused.",2773 "Image data is returned inline in the response.",2774 "Image data is returned as a URI."2775 ]2776 }2777 }2778 },2779 "CitationMetadata": {2780 "properties": {2781 "citationSources": {2782 "items": {2783 "$ref": "CitationSource"2784 },2785 "description": "Citations to sources for a specific response.",2786 "type": "array"2787 }2788 },2789 "description": "A collection of source attributions for a piece of content.",2790 "id": "CitationMetadata",2791 "type": "object"2792 },2793 "Content": {2794 "description": "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.",2795 "properties": {2796 "role": {2797 "type": "string",2798 "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset."2799 },2800 "parts": {2801 "items": {2802 "$ref": "Part"2803 },2804 "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",2805 "type": "array"2806 }2807 },2808 "id": "Content",2809 "type": "object"2810 },2811 "GoogleMaps": {2812 "properties": {2813 "enableWidget": {2814 "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.",2815 "type": "boolean"2816 }2817 },2818 "description": "The GoogleMaps Tool that provides geospatial context for the user's query.",2819 "id": "GoogleMaps",2820 "type": "object"2821 },2822 "DynamicRetrievalConfig": {2823 "id": "DynamicRetrievalConfig",2824 "description": "Describes the options to customize dynamic retrieval.",2825 "properties": {2826 "dynamicThreshold": {2827 "format": "float",2828 "type": "number",2829 "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used."2830 },2831 "mode": {2832 "description": "The mode of the predictor to be used in dynamic retrieval.",2833 "enum": [2834 "MODE_UNSPECIFIED",2835 "MODE_DYNAMIC"2836 ],2837 "type": "string",2838 "enumDescriptions": [2839 "Always trigger retrieval.",2840 "Run retrieval only when system decides it is necessary."2841 ]2842 }2843 },2844 "type": "object"2845 },2846 "TopCandidates": {2847 "id": "TopCandidates",2848 "properties": {2849 "candidates": {2850 "items": {2851 "$ref": "LogprobsResultCandidate"2852 },2853 "description": "Sorted by log probability in descending order.",2854 "type": "array"2855 }2856 },2857 "description": "Candidates with top log probabilities at each decoding step.",2858 "type": "object"2859 },2860 "ExecutableCode": {2861 "id": "ExecutableCode",2862 "type": "object",2863 "properties": {2864 "code": {2865 "type": "string",2866 "description": "Required. The code to be executed."2867 },2868 "id": {2869 "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",2870 "type": "string"2871 },2872 "language": {2873 "enumDescriptions": [2874 "Unspecified language. This value should not be used.",2875 "Python \u003e= 3.10, with numpy and simpy available. Python is the default language."2876 ],2877 "enum": [2878 "LANGUAGE_UNSPECIFIED",2879 "PYTHON"2880 ],2881 "description": "Required. Programming language of the `code`.",2882 "type": "string"2883 }2884 },2885 "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated."2886 },2887 "InputConfig": {2888 "description": "Configures the input to the batch request.",2889 "type": "object",2890 "id": "InputConfig",2891 "properties": {2892 "fileName": {2893 "description": "The name of the `File` containing the input requests.",2894 "type": "string"2895 },2896 "requests": {2897 "$ref": "InlinedRequests",2898 "description": "The requests to be processed in the batch."2899 }2900 }2901 },2902 "Image": {2903 "properties": {2904 "imageUri": {2905 "description": "The image asset URL.",2906 "type": "string"2907 },2908 "title": {2909 "description": "The title of the web page that the image is from.",2910 "type": "string"2911 },2912 "sourceUri": {2913 "type": "string",2914 "description": "The web page URI for attribution."2915 },2916 "domain": {2917 "type": "string",2918 "description": "The root domain of the web page that the image is from, e.g. \"example.com\"."2919 }2920 },2921 "description": "Chunk from image search.",2922 "type": "object",2923 "id": "Image"2924 },2925 "GroundingPassage": {2926 "id": "GroundingPassage",2927 "type": "object",2928 "properties": {2929 "id": {2930 "description": "Identifier for the passage for attributing this passage in grounded answers.",2931 "type": "string"2932 },2933 "content": {2934 "$ref": "Content",2935 "description": "Content of the passage."2936 }2937 },2938 "description": "Passage included inline with a grounding configuration."2939 },2940 "TuningExample": {2941 "description": "A single example for tuning.",2942 "type": "object",2943 "properties": {2944 "output": {2945 "description": "Required. The expected model output.",2946 "type": "string"2947 },2948 "textInput": {2949 "description": "Optional. Text model input.",2950 "type": "string"2951 }2952 },2953 "id": "TuningExample"2954 },2955 "File": {2956 "description": "A file uploaded to the API. Next ID: 15",2957 "type": "object",2958 "properties": {2959 "displayName": {2960 "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"",2961 "type": "string"2962 },2963 "updateTime": {2964 "format": "google-datetime",2965 "type": "string",2966 "description": "Output only. The timestamp of when the `File` was last updated.",2967 "readOnly": true2968 },2969 "createTime": {2970 "readOnly": true,2971 "format": "google-datetime",2972 "type": "string",2973 "description": "Output only. The timestamp of when the `File` was created."2974 },2975 "uri": {2976 "type": "string",2977 "description": "Output only. The uri of the `File`.",2978 "readOnly": true2979 },2980 "state": {2981 "enumDescriptions": [2982 "The default value. This value is used if the state is omitted.",2983 "File is being processed and cannot be used for inference yet.",2984 "File is processed and available for inference.",2985 "File failed processing."2986 ],2987 "readOnly": true,2988 "description": "Output only. Processing state of the File.",2989 "enum": [2990 "STATE_UNSPECIFIED",2991 "PROCESSING",2992 "ACTIVE",2993 "FAILED"2994 ],2995 "type": "string"2996 },2997 "error": {2998 "$ref": "Status",2999 "description": "Output only. Error status if File processing failed.",3000 "readOnly": true3001 },3002 "mimeType": {3003 "readOnly": true,3004 "type": "string",3005 "description": "Output only. MIME type of the file."3006 },3007 "source": {3008 "description": "Source of the File.",3009 "enumDescriptions": [3010 "Used if source is not specified.",3011 "Indicates the file is uploaded by the user.",3012 "Indicates the file is generated by Google.",3013 "Indicates the file is a registered, i.e. a Google Cloud Storage file."3014 ],3015 "type": "string",3016 "enum": [3017 "SOURCE_UNSPECIFIED",3018 "UPLOADED",3019 "GENERATED",3020 "REGISTERED"3021 ]3022 },3023 "videoMetadata": {3024 "$ref": "VideoFileMetadata",3025 "description": "Output only. Metadata for a video.",3026 "readOnly": true3027 },3028 "sizeBytes": {3029 "description": "Output only. Size of the file in bytes.",3030 "readOnly": true,3031 "type": "string",3032 "format": "int64"3033 },3034 "name": {3035 "type": "string",3036 "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`"3037 },3038 "downloadUri": {3039 "description": "Output only. The download uri of the `File`.",3040 "type": "string",3041 "readOnly": true3042 },3043 "expirationTime": {3044 "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.",3045 "readOnly": true,3046 "type": "string",3047 "format": "google-datetime"3048 },3049 "sha256Hash": {3050 "description": "Output only. SHA-256 hash of the uploaded bytes.",3051 "format": "byte",3052 "readOnly": true,3053 "type": "string"3054 }3055 },3056 "id": "File"3057 },3058 "AudioTranscription": {3059 "properties": {3060 "text": {3061 "type": "string",3062 "description": "Required. The transcription text of this audio segment."3063 },3064 "speakerLabel": {3065 "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.",3066 "type": "string"3067 },3068 "words": {3069 "type": "array",3070 "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.",3071 "items": {3072 "$ref": "WordInfo"3073 }3074 }3075 },3076 "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.",3077 "id": "AudioTranscription",3078 "type": "object"3079 },3080 "FileSearch": {3081 "type": "object",3082 "properties": {3083 "fileSearchStoreNames": {3084 "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",3085 "type": "array",3086 "items": {3087 "type": "string"3088 }3089 },3090 "topK": {3091 "format": "int32",3092 "description": "Optional. The number of semantic retrieval chunks to retrieve.",3093 "type": "integer"3094 },3095 "metadataFilter": {3096 "type": "string",3097 "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks."3098 }3099 },3100 "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",3101 "id": "FileSearch"3102 },3103 "TunedModel": {3104 "description": "A fine-tuned model created using ModelService.CreateTunedModel.",3105 "type": "object",3106 "id": "TunedModel",3107 "properties": {3108 "description": {3109 "type": "string",3110 "description": "Optional. A short description of this model."3111 },3112 "baseModel": {3113 "type": "string",3114 "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`"3115 },3116 "temperature": {3117 "format": "float",3118 "type": "number",3119 "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model."3120 },3121 "tuningTask": {3122 "$ref": "TuningTask",3123 "description": "Required. The tuning task that creates the tuned model."3124 },3125 "state": {3126 "description": "Output only. The state of the tuned model.",3127 "type": "string",3128 "readOnly": true,3129 "enum": [3130 "STATE_UNSPECIFIED",3131 "CREATING",3132 "ACTIVE",3133 "FAILED"3134 ],3135 "enumDescriptions": [3136 "The default value. This value is unused.",3137 "The model is being created.",3138 "The model is ready to be used.",3139 "The model failed to be created."3140 ]3141 },3142 "displayName": {3143 "type": "string",3144 "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces."3145 },3146 "name": {3147 "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`",3148 "readOnly": true,3149 "type": "string"3150 },3151 "topP": {3152 "format": "float",3153 "type": "number",3154 "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model."3155 },3156 "topK": {3157 "type": "integer",3158 "format": "int32",3159 "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model."3160 },3161 "updateTime": {3162 "type": "string",3163 "readOnly": true,3164 "format": "google-datetime",3165 "description": "Output only. The timestamp when this model was updated."3166 },3167 "tunedModelSource": {3168 "$ref": "TunedModelSource",3169 "description": "Optional. TunedModel to use as the starting point for training the new model."3170 },3171 "readerProjectNumbers": {3172 "items": {3173 "type": "string",3174 "format": "int64"3175 },3176 "type": "array",3177 "description": "Optional. List of project numbers that have read access to the tuned model."3178 },3179 "createTime": {3180 "readOnly": true,3181 "format": "google-datetime",3182 "description": "Output only. The timestamp when this model was created.",3183 "type": "string"3184 }3185 }3186 },3187 "GenerateContentResponse": {3188 "type": "object",3189 "id": "GenerateContentResponse",3190 "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`.",3191 "properties": {3192 "candidates": {3193 "items": {3194 "$ref": "Candidate"3195 },3196 "description": "Candidate responses from the model.",3197 "type": "array"3198 },3199 "modelStatus": {3200 "readOnly": true,3201 "description": "Output only. The current model status of this model.",3202 "$ref": "ModelStatus"3203 },3204 "usageMetadata": {3205 "$ref": "UsageMetadata",3206 "readOnly": true,3207 "description": "Output only. Metadata on the generation requests' token usage."3208 },3209 "promptFeedback": {3210 "description": "Returns the prompt's feedback related to the content filters.",3211 "$ref": "PromptFeedback"3212 },3213 "responseId": {3214 "readOnly": true,3215 "description": "Output only. response_id is used to identify each response.",3216 "type": "string"3217 },3218 "modelVersion": {3219 "type": "string",3220 "readOnly": true,3221 "description": "Output only. The model version used to generate the response."3222 }3223 }3224 },3225 "BidiGenerateContentSetup": {3226 "properties": {3227 "realtimeInputConfig": {3228 "$ref": "RealtimeInputConfig",3229 "description": "Optional. Configures the handling of realtime input."3230 },3231 "generationConfig": {3232 "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`",3233 "$ref": "GenerationConfig"3234 },3235 "model": {3236 "type": "string",3237 "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`"3238 },3239 "tools": {3240 "type": "array",3241 "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.",3242 "items": {3243 "$ref": "Tool"3244 }3245 },3246 "sessionResumption": {3247 "$ref": "SessionResumptionConfig",3248 "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages."3249 },3250 "historyConfig": {3251 "$ref": "HistoryConfig",3252 "description": "Optional. Configures the exchange of history between the client and the server."3253 },3254 "labels": {3255 "additionalProperties": {3256 "type": "string"3257 },3258 "type": "object",3259 "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)"3260 },3261 "outputAudioTranscription": {3262 "$ref": "AudioTranscriptionConfig",3263 "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured."3264 },3265 "inputAudioTranscription": {3266 "$ref": "AudioTranscriptionConfig",3267 "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured."3268 },3269 "contextWindowCompression": {3270 "$ref": "ContextWindowCompressionConfig",3271 "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length."3272 },3273 "systemInstruction": {3274 "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph.",3275 "$ref": "Content"3276 }3277 },3278 "id": "BidiGenerateContentSetup",3279 "type": "object",3280 "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages."3281 },3282 "DiffDownloadResponse": {3283 "description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",3284 "type": "object",3285 "id": "DiffDownloadResponse",3286 "properties": {3287 "objectLocation": {3288 "description": "The original object location.",3289 "$ref": "CompositeMedia"3290 }3291 }3292 },3293 "GetEnvironmentFilesResponse": {3294 "id": "GetEnvironmentFilesResponse",3295 "description": "Response for `GetEnvironmentFiles`.",3296 "type": "object",3297 "properties": {3298 "files": {3299 "items": {3300 "$ref": "EnvironmentFile"3301 },3302 "type": "array",3303 "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`)."3304 },3305 "next_page_token": {3306 "type": "string",3307 "description": "Pagination token for directory listing. NOLINT"3308 }3309 }3310 },3311 "DownloadMediaResponse": {3312 "description": "Response for DownloadMedia.",3313 "id": "DownloadMediaResponse",3314 "type": "object",3315 "properties": {3316 "blob": {3317 "description": "Output only. The blob data.",3318 "readOnly": true,3319 "$ref": "GdataMedia"3320 }3321 }3322 },3323 "Message": {3324 "description": "The base unit of structured text. A `Message` includes an `author` and the `content` of the `Message`. The `author` is used to tag messages when they are fed to the model as text.",3325 "type": "object",3326 "properties": {3327 "content": {3328 "description": "Required. The text content of the structured `Message`.",3329 "type": "string"3330 },3331 "author": {3332 "description": "Optional. The author of this Message. This serves as a key for tagging the content of this Message when it is fed to the model as text. The author can be any alphanumeric string.",3333 "type": "string"3334 },3335 "citationMetadata": {3336 "description": "Output only. Citation information for model-generated `content` in this `Message`. If this `Message` was generated as output from the model, this field may be populated with attribution information for any text included in the `content`. This field is used only on output.",3337 "$ref": "CitationMetadata",3338 "readOnly": true3339 }3340 },3341 "id": "Message"3342 },3343 "WhiteSpaceConfig": {3344 "id": "WhiteSpaceConfig",3345 "type": "object",3346 "description": "Configuration for a white space chunking algorithm [white space delimited].",3347 "properties": {3348 "maxTokensPerChunk": {3349 "type": "integer",3350 "format": "int32",3351 "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow."3352 },3353 "maxOverlapTokens": {3354 "type": "integer",3355 "description": "Maximum number of overlapping tokens between two adjacent chunks.",3356 "format": "int32"3357 }3358 }3359 },3360 "CountTokensRequest": {3361 "type": "object",3362 "id": "CountTokensRequest",3363 "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",3364 "properties": {3365 "contents": {3366 "type": "array",3367 "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.",3368 "items": {3369 "$ref": "Content"3370 }3371 },3372 "generateContentRequest": {3373 "$ref": "GenerateContentRequest",3374 "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both."3375 }3376 }3377 },3378 "LogprobsResult": {3379 "id": "LogprobsResult",3380 "type": "object",3381 "description": "Logprobs Result",3382 "properties": {3383 "chosenCandidates": {3384 "type": "array",3385 "items": {3386 "$ref": "LogprobsResultCandidate"3387 },3388 "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates."3389 },3390 "logProbabilitySum": {3391 "description": "Sum of log probabilities for all tokens.",3392 "type": "number",3393 "format": "float"3394 },3395 "topCandidates": {3396 "type": "array",3397 "items": {3398 "$ref": "TopCandidates"3399 },3400 "description": "Length = total number of decoding steps."3401 }3402 }3403 },3404 "RetrievedContext": {3405 "description": "Chunk from context retrieved by the file search tool.",3406 "id": "RetrievedContext",3407 "properties": {3408 "title": {3409 "type": "string",3410 "description": "Optional. Title of the document."3411 },3412 "uri": {3413 "description": "Optional. URI reference of the semantic retrieval document.",3414 "type": "string"3415 },3416 "pageNumber": {3417 "description": "Optional. Page number of the retrieved context, if applicable.",3418 "type": "integer",3419 "format": "int32"3420 },3421 "customMetadata": {3422 "type": "array",3423 "items": {3424 "$ref": "GroundingChunkCustomMetadata"3425 },3426 "description": "Optional. User-provided metadata about the retrieved context."3427 },3428 "mediaId": {3429 "type": "string",3430 "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}"3431 },3432 "text": {3433 "type": "string",3434 "description": "Optional. Text of the chunk."3435 },3436 "fileSearchStore": {3437 "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`",3438 "type": "string"3439 }3440 },3441 "type": "object"3442 },3443 "Environment": {3444 "type": "object",3445 "description": "An execution environment for an agent.",3446 "properties": {3447 "updated": {3448 "type": "string",3449 "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",3450 "readOnly": true3451 },3452 "fileCount": {3453 "description": "Output only. The number of files in the environment, output only.",3454 "format": "int64",3455 "readOnly": true,3456 "type": "string"3457 },3458 "networkMode": {3459 "enumDescriptions": [3460 "Default value. Unused.",3461 "All network egress is blocked."3462 ],3463 "description": "Network egress mode.",3464 "type": "string",3465 "enum": [3466 "NETWORK_MODE_UNSPECIFIED",3467 "DISABLED"3468 ]3469 },3470 "status": {3471 "readOnly": true,3472 "enumDescriptions": [3473 "",3474 "",3475 ""3476 ],3477 "enum": [3478 "STATUS_UNSPECIFIED",3479 "ACTIVE",3480 "EXPIRED"3481 ],3482 "description": "Output only. The status of the environment container.",3483 "type": "string"3484 },3485 "lastAccessed": {3486 "readOnly": true,3487 "type": "string",3488 "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)."3489 },3490 "networkAllowlist": {3491 "description": "Allow only specific domains.",3492 "$ref": "EnvironmentNetworkEgressAllowlist"3493 },3494 "id": {3495 "description": "Required. Output only. The ID of the environment.",3496 "readOnly": true,3497 "type": "string"3498 },3499 "sources": {3500 "description": "Sources to be mounted into the environment.",3501 "type": "array",3502 "items": {3503 "$ref": "Source"3504 }3505 },3506 "sizeBytes": {3507 "format": "int64",3508 "readOnly": true,3509 "type": "string",3510 "description": "Output only. The total size of the environment files in bytes, output only."3511 },3512 "created": {3513 "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",3514 "type": "string",3515 "readOnly": true3516 }3517 },3518 "id": "Environment"3519 },3520 "GenerateMessageResponse": {3521 "description": "The response from the model. This includes candidate messages and conversation history in the form of chronologically-ordered messages.",3522 "properties": {3523 "filters": {3524 "description": "A set of content filtering metadata for the prompt and response text. This indicates which `SafetyCategory`(s) blocked a candidate from this response, the lowest `HarmProbability` that triggered a block, and the HarmThreshold setting for that category.",3525 "items": {3526 "$ref": "ContentFilter"3527 },3528 "type": "array"3529 },3530 "candidates": {3531 "type": "array",3532 "description": "Candidate response messages from the model.",3533 "items": {3534 "$ref": "Message"3535 }3536 },3537 "messages": {3538 "description": "The conversation history used by the model.",3539 "type": "array",3540 "items": {3541 "$ref": "Message"3542 }3543 }3544 },3545 "id": "GenerateMessageResponse",3546 "type": "object"3547 },3548 "CountTextTokensResponse": {3549 "type": "object",3550 "id": "CountTextTokensResponse",3551 "properties": {3552 "tokenCount": {3553 "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative.",3554 "type": "integer",3555 "format": "int32"3556 }3557 },3558 "description": "A response from `CountTextTokens`. It returns the model's `token_count` for the `prompt`."3559 },3560 "CodeExecution": {3561 "id": "CodeExecution",3562 "properties": {},3563 "type": "object",3564 "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool."3565 },3566 "CountMessageTokensRequest": {3567 "properties": {3568 "prompt": {3569 "description": "Required. The prompt, whose token count is to be returned.",3570 "$ref": "MessagePrompt"3571 }3572 },3573 "type": "object",3574 "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",3575 "id": "CountMessageTokensRequest"3576 },3577 "ObjectId": {3578 "type": "object",3579 "properties": {3580 "objectName": {3581 "description": "The name of the object.",3582 "type": "string"3583 },3584 "bucketName": {3585 "type": "string",3586 "description": "The name of the bucket to which this object belongs."3587 },3588 "generation": {3589 "format": "int64",3590 "type": "string",3591 "description": "Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions"3592 }3593 },3594 "id": "ObjectId",3595 "description": "This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763."3596 },3597 "CustomLongRunningOperation": {3598 "properties": {3599 "response": {3600 "additionalProperties": {3601 "description": "Properties of the object. Contains field @type with type URL.",3602 "type": "any"3603 },3604 "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",3605 "type": "object"3606 },3607 "done": {3608 "type": "boolean",3609 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."3610 },3611 "error": {3612 "description": "The error result of the operation in case of failure or cancellation.",3613 "$ref": "Status"3614 },3615 "metadata": {3616 "additionalProperties": {3617 "description": "Properties of the object. Contains field @type with type URL.",3618 "type": "any"3619 },3620 "type": "object",3621 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any."3622 },3623 "name": {3624 "type": "string",3625 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`."3626 }3627 },3628 "id": "CustomLongRunningOperation",3629 "type": "object"3630 },3631 "MetadataFilter": {3632 "type": "object",3633 "properties": {3634 "conditions": {3635 "type": "array",3636 "items": {3637 "$ref": "Condition"3638 },3639 "description": "Required. The `Condition`s for the given key that will trigger this filter. Multiple `Condition`s are joined by logical ORs."3640 },3641 "key": {3642 "description": "Required. The key of the metadata to filter on.",3643 "type": "string"3644 }3645 },3646 "id": "MetadataFilter",3647 "description": "User provided filter to limit retrieval based on `Chunk` or `Document` level metadata values. Example (genre = drama OR genre = action): key = \"document.custom_metadata.genre\" conditions = [{string_value = \"drama\", operation = EQUAL}, {string_value = \"action\", operation = EQUAL}]"3648 },3649 "PredictRequest": {3650 "id": "PredictRequest",3651 "properties": {3652 "instances": {3653 "type": "array",3654 "description": "Required. The instances that are the input to the prediction call.",3655 "items": {3656 "type": "any"3657 }3658 },3659 "labels": {3660 "additionalProperties": {3661 "type": "string"3662 },3663 "type": "object",3664 "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)"3665 },3666 "parameters": {3667 "description": "Optional. The parameters that govern the prediction call.",3668 "type": "any"3669 }3670 },3671 "description": "Request message for PredictionService.Predict.",3672 "type": "object"3673 },3674 "Blob": {3675 "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",3676 "properties": {3677 "displayName": {3678 "type": "string",3679 "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`."3680 },3681 "mimeType": {3682 "type": "string",3683 "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //"3684 },3685 "data": {3686 "description": "Raw bytes for media formats.",3687 "type": "string",3688 "format": "byte"3689 }3690 },3691 "id": "Blob",3692 "type": "object"3693 },3694 "RetrievalMetadata": {3695 "type": "object",3696 "id": "RetrievalMetadata",3697 "properties": {3698 "googleSearchDynamicRetrievalScore": {3699 "format": "float",3700 "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.",3701 "type": "number"3702 }3703 },3704 "description": "Metadata related to retrieval in the grounding flow."3705 },3706 "Permission": {3707 "properties": {3708 "name": {3709 "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",3710 "type": "string",3711 "readOnly": true3712 },3713 "granteeType": {3714 "description": "Optional. Immutable. The type of the grantee.",3715 "enumDescriptions": [3716 "The default value. This value is unused.",3717 "Represents a user. When set, you must provide email_address for the user.",3718 "Represents a group. When set, you must provide email_address for the group.",3719 "Represents access to everyone. No extra information is required."3720 ],3721 "enum": [3722 "GRANTEE_TYPE_UNSPECIFIED",3723 "USER",3724 "GROUP",3725 "EVERYONE"3726 ],3727 "type": "string"3728 },3729 "emailAddress": {3730 "type": "string",3731 "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE."3732 },3733 "role": {3734 "type": "string",3735 "description": "Required. The role granted by this permission.",3736 "enumDescriptions": [3737 "The default value. This value is unused.",3738 "Owner can use, update, share and delete the resource.",3739 "Writer can use, update and share the resource.",3740 "Reader can use the resource."3741 ],3742 "enum": [3743 "ROLE_UNSPECIFIED",3744 "OWNER",3745 "WRITER",3746 "READER"3747 ]3748 }3749 },3750 "id": "Permission",3751 "type": "object",3752 "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete"3753 },3754 "EgressRule": {3755 "type": "object",3756 "properties": {3757 "domain": {3758 "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains.",3759 "type": "string"3760 },3761 "credential": {3762 "type": "string",3763 "description": "Optional. Reference to a server-managed Credential resource by ID."3764 },3765 "transform": {3766 "additionalProperties": {3767 "type": "string"3768 },3769 "type": "object",3770 "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\")."3771 }3772 },3773 "id": "EgressRule",3774 "description": "A single domain allowlist rule with optional header injection."3775 },3776 "ListFilesResponse": {3777 "description": "Response for `ListFiles`.",3778 "id": "ListFilesResponse",3779 "type": "object",3780 "properties": {3781 "nextPageToken": {3782 "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.",3783 "type": "string"3784 },3785 "files": {3786 "items": {3787 "$ref": "File"3788 },3789 "description": "The list of `File`s.",3790 "type": "array"3791 }3792 }3793 },3794 "HttpBody": {3795 "properties": {3796 "contentType": {3797 "type": "string",3798 "description": "The HTTP Content-Type header value specifying the content type of the body."3799 },3800 "extensions": {3801 "description": "Application specific response metadata. Must be set in the first response for streaming APIs.",3802 "items": {3803 "type": "object",3804 "additionalProperties": {3805 "description": "Properties of the object. Contains field @type with type URL.",3806 "type": "any"3807 }3808 },3809 "type": "array"3810 },3811 "data": {3812 "description": "The HTTP request/response body as raw binary.",3813 "format": "byte",3814 "type": "string"3815 }3816 },3817 "type": "object",3818 "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.",3819 "id": "HttpBody"3820 },3821 "EmbeddingUsageMetadata": {3822 "id": "EmbeddingUsageMetadata",3823 "properties": {3824 "promptTokenCount": {3825 "readOnly": true,3826 "type": "integer",3827 "format": "int32",3828 "description": "Output only. Number of tokens in the prompt."3829 },3830 "promptTokenDetails": {3831 "type": "array",3832 "items": {3833 "$ref": "ModalityTokenCount"3834 },3835 "readOnly": true,3836 "description": "Output only. List of modalities that were processed in the request input."3837 }3838 },3839 "type": "object",3840 "description": "Metadata on the usage of the embedding request."3841 },3842 "StringList": {3843 "type": "object",3844 "description": "User provided string values assigned to a single metadata key.",3845 "id": "StringList",3846 "properties": {3847 "values": {3848 "type": "array",3849 "items": {3850 "type": "string"3851 },3852 "description": "The string values of the metadata to store."3853 }3854 }3855 },3856 "EmbedTextResponse": {3857 "type": "object",3858 "id": "EmbedTextResponse",3859 "properties": {3860 "embedding": {3861 "$ref": "Embedding",3862 "description": "Output only. The embedding generated from the input text.",3863 "readOnly": true3864 }3865 },3866 "description": "The response to a EmbedTextRequest."3867 },3868 "Part": {3869 "type": "object",3870 "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",3871 "properties": {3872 "functionResponse": {3873 "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model.",3874 "$ref": "FunctionResponse"3875 },3876 "videoMetadata": {3877 "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.",3878 "$ref": "VideoMetadata"3879 },3880 "audioTranscription": {3881 "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.",3882 "$ref": "AudioTranscription"3883 },3884 "mediaResolution": {3885 "$ref": "V1mainMediaResolution",3886 "description": "Optional. Media resolution for the input media."3887 },3888 "toolResponse": {3889 "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.",3890 "$ref": "ToolResponse"3891 },3892 "fileData": {3893 "$ref": "FileData",3894 "description": "URI based data."3895 },3896 "thoughtSignature": {3897 "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",3898 "type": "string",3899 "format": "byte"3900 },3901 "mediaProcessing": {3902 "enumDescriptions": [3903 "Defaults to model-specific processing.",3904 "Fixed-rate frame extraction. All frames placed in context.",3905 "Model-driven dynamic navigation. Recommended for most use cases."3906 ],3907 "type": "string",3908 "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",3909 "enum": [3910 "MEDIA_PROCESSING_UNSPECIFIED",3911 "STATIC",3912 "AGENTIC"3913 ]3914 },3915 "partMetadata": {3916 "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.",3917 "additionalProperties": {3918 "description": "Properties of the object.",3919 "type": "any"3920 },3921 "type": "object"3922 },3923 "inlineData": {3924 "description": "Inline media bytes.",3925 "$ref": "Blob"3926 },3927 "codeExecutionResult": {3928 "description": "Result of executing the `ExecutableCode`.",3929 "$ref": "CodeExecutionResult"3930 },3931 "text": {3932 "description": "Inline text.",3933 "type": "string"3934 },3935 "executableCode": {3936 "description": "Code generated by the model that is meant to be executed.",3937 "$ref": "ExecutableCode"3938 },3939 "functionCall": {3940 "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",3941 "$ref": "FunctionCall"3942 },3943 "thought": {3944 "description": "Optional. Indicates if the part is thought from the model.",3945 "type": "boolean"3946 },3947 "toolCall": {3948 "$ref": "ToolCall",3949 "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API."3950 }3951 },3952 "id": "Part"3953 },3954 "DownloadParameters": {3955 "properties": {3956 "allowGzipCompression": {3957 "description": "A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.",3958 "type": "boolean"3959 },3960 "ignoreRange": {3961 "description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.",3962 "type": "boolean"3963 }3964 },3965 "id": "DownloadParameters",3966 "description": "Parameters specific to media downloads.",3967 "type": "object"3968 },3969 "GroundingChunkCustomMetadata": {3970 "id": "GroundingChunkCustomMetadata",3971 "properties": {3972 "numericValue": {3973 "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.",3974 "format": "float",3975 "type": "number"3976 },3977 "stringListValue": {3978 "description": "Optional. A list of string values for the metadata.",3979 "$ref": "GroundingChunkStringList"3980 },3981 "stringValue": {3982 "description": "Optional. The string value of the metadata.",3983 "type": "string"3984 },3985 "key": {3986 "description": "The key of the metadata.",3987 "type": "string"3988 }3989 },3990 "type": "object",3991 "description": "User provided metadata about the GroundingFact."3992 },3993 "Empty": {3994 "id": "Empty",3995 "properties": {},3996 "type": "object",3997 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }"3998 },3999 "WordInfo": {4000 "id": "WordInfo",4001 "description": "Information about a single recognized word.",4002 "type": "object",4003 "properties": {4004 "word": {4005 "description": "Required. Transcript of the word.",4006 "type": "string"4007 },4008 "startOffset": {4009 "format": "google-duration",4010 "description": "Optional. Start offset in time of the word relative to the start of the audio.",4011 "type": "string"4012 },4013 "endOffset": {4014 "description": "Optional. End offset in time of the word relative to the start of the audio.",4015 "type": "string",4016 "format": "google-duration"4017 }4018 }4019 },4020 "Status": {4021 "properties": {4022 "message": {4023 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",4024 "type": "string"4025 },4026 "code": {4027 "description": "The status code, which should be an enum value of google.rpc.Code.",4028 "format": "int32",4029 "type": "integer"4030 },4031 "details": {4032 "items": {4033 "type": "object",4034 "additionalProperties": {4035 "description": "Properties of the object. Contains field @type with type URL.",4036 "type": "any"4037 }4038 },4039 "type": "array",4040 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use."4041 }4042 },4043 "id": "Status",4044 "type": "object",4045 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."4046 },4047 "MultiSpeakerVoiceConfig": {4048 "properties": {4049 "speakerVoiceConfigs": {4050 "type": "array",4051 "description": "Required. All the enabled speaker voices.",4052 "items": {4053 "$ref": "SpeakerVoiceConfig"4054 }4055 }4056 },4057 "type": "object",4058 "id": "MultiSpeakerVoiceConfig",4059 "description": "The configuration for the multi-speaker setup."4060 },4061 "ListPermissionsResponse": {4062 "type": "object",4063 "description": "Response from `ListPermissions` containing a paginated list of permissions.",4064 "id": "ListPermissionsResponse",4065 "properties": {4066 "nextPageToken": {4067 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",4068 "type": "string"4069 },4070 "permissions": {4071 "type": "array",4072 "description": "Returned permissions.",4073 "items": {4074 "$ref": "Permission"4075 }4076 }4077 }4078 },4079 "EmbedContentBatchOutput": {4080 "properties": {4081 "responsesFile": {4082 "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.",4083 "type": "string",4084 "readOnly": true4085 },4086 "inlinedResponses": {4087 "readOnly": true,4088 "$ref": "InlinedEmbedContentResponses",4089 "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests."4090 }4091 },4092 "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.",4093 "type": "object",4094 "id": "EmbedContentBatchOutput"4095 },4096 "InlinedEmbedContentRequest": {4097 "type": "object",4098 "properties": {4099 "metadata": {4100 "type": "object",4101 "additionalProperties": {4102 "type": "any",4103 "description": "Properties of the object."4104 },4105 "description": "Optional. The metadata to be associated with the request."4106 },4107 "request": {4108 "description": "Required. The request to be processed in the batch.",4109 "$ref": "EmbedContentRequest"4110 }4111 },4112 "description": "The request to be processed in the batch.",4113 "id": "InlinedEmbedContentRequest"4114 },4115 "CreateFileResponse": {4116 "id": "CreateFileResponse",4117 "description": "Response for `CreateFile`.",4118 "properties": {4119 "file": {4120 "description": "Metadata for the created file.",4121 "$ref": "File"4122 }4123 },4124 "type": "object"4125 },4126 "Operation": {4127 "type": "object",4128 "properties": {4129 "error": {4130 "$ref": "Status",4131 "description": "The error result of the operation in case of failure or cancellation."4132 },4133 "response": {4134 "type": "object",4135 "additionalProperties": {4136 "type": "any",4137 "description": "Properties of the object. Contains field @type with type URL."4138 },4139 "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`."4140 },4141 "done": {4142 "type": "boolean",4143 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."4144 },4145 "name": {4146 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",4147 "type": "string"4148 },4149 "metadata": {4150 "type": "object",4151 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",4152 "additionalProperties": {4153 "type": "any",4154 "description": "Properties of the object. Contains field @type with type URL."4155 }4156 }4157 },4158 "id": "Operation",4159 "description": "This resource represents a long-running operation that is the result of a network API call."4160 },4161 "EnvironmentNetworkEgressAllowlist": {4162 "properties": {4163 "allowlist": {4164 "description": "List of allowed domains and their configurations.",4165 "items": {4166 "$ref": "EgressRule"4167 },4168 "type": "array"4169 }4170 },4171 "type": "object",4172 "description": "Network egress configuration for the environment.",4173 "id": "EnvironmentNetworkEgressAllowlist"4174 },4175 "LanguageAuto": {4176 "id": "LanguageAuto",4177 "deprecated": true,4178 "properties": {},4179 "type": "object",4180 "description": "Indicates the language of the audio should be automatically detected."4181 },4182 "SafetySetting": {4183 "id": "SafetySetting",4184 "properties": {4185 "threshold": {4186 "description": "Required. Controls the probability threshold at which harm is blocked.",4187 "enumDescriptions": [4188 "Threshold is unspecified.",4189 "Content with NEGLIGIBLE will be allowed.",4190 "Content with NEGLIGIBLE and LOW will be allowed.",4191 "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.",4192 "All content will be allowed.",4193 "Turn off the safety filter."4194 ],4195 "enum": [4196 "HARM_BLOCK_THRESHOLD_UNSPECIFIED",4197 "BLOCK_LOW_AND_ABOVE",4198 "BLOCK_MEDIUM_AND_ABOVE",4199 "BLOCK_ONLY_HIGH",4200 "BLOCK_NONE",4201 "OFF"4202 ],4203 "type": "string"4204 },4205 "category": {4206 "description": "Required. The category for this setting.",4207 "enumDescriptions": [4208 "Category is unspecified.",4209 "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.",4210 "**PaLM** - Content that is rude, disrespectful, or profane.",4211 "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",4212 "**PaLM** - Contains references to sexual acts or other lewd content.",4213 "**PaLM** - Promotes unchecked medical advice.",4214 "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.",4215 "**Gemini** - Harassment content.",4216 "**Gemini** - Hate speech and content.",4217 "**Gemini** - Sexually explicit content.",4218 "**Gemini** - Dangerous content.",4219 "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",4220 "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."4221 ],4222 "enum": [4223 "HARM_CATEGORY_UNSPECIFIED",4224 "HARM_CATEGORY_DEROGATORY",4225 "HARM_CATEGORY_TOXICITY",4226 "HARM_CATEGORY_VIOLENCE",4227 "HARM_CATEGORY_SEXUAL",4228 "HARM_CATEGORY_MEDICAL",4229 "HARM_CATEGORY_DANGEROUS",4230 "HARM_CATEGORY_HARASSMENT",4231 "HARM_CATEGORY_HATE_SPEECH",4232 "HARM_CATEGORY_SEXUALLY_EXPLICIT",4233 "HARM_CATEGORY_DANGEROUS_CONTENT",4234 "HARM_CATEGORY_CIVIC_INTEGRITY",4235 "HARM_CATEGORY_JAILBREAK"4236 ],4237 "enumDeprecated": [4238 false,4239 false,4240 false,4241 false,4242 false,4243 false,4244 false,4245 false,4246 false,4247 false,4248 false,4249 true,4250 false4251 ],4252 "type": "string"4253 }4254 },4255 "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.",4256 "type": "object"4257 },4258 "Corpus": {4259 "type": "object",4260 "id": "Corpus",4261 "properties": {4262 "createTime": {4263 "format": "google-datetime",4264 "type": "string",4265 "description": "Output only. The Timestamp of when the `Corpus` was created.",4266 "readOnly": true4267 },4268 "displayName": {4269 "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"",4270 "type": "string"4271 },4272 "name": {4273 "description": "Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`",4274 "readOnly": true,4275 "type": "string"4276 },4277 "updateTime": {4278 "format": "google-datetime",4279 "description": "Output only. The Timestamp of when the `Corpus` was last updated.",4280 "type": "string",4281 "readOnly": true4282 }4283 },4284 "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora."4285 },4286 "GoogleAiGenerativelanguageV1betaSegment": {4287 "id": "GoogleAiGenerativelanguageV1betaSegment",4288 "description": "Segment of the content.",4289 "properties": {4290 "endIndex": {4291 "format": "int32",4292 "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.",4293 "type": "integer"4294 },4295 "startIndex": {4296 "type": "integer",4297 "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.",4298 "format": "int32"4299 },4300 "text": {4301 "description": "The text corresponding to the segment from the response.",4302 "type": "string"4303 },4304 "partIndex": {4305 "description": "The index of a Part object within its parent Content object.",4306 "type": "integer",4307 "format": "int32"4308 }4309 },4310 "type": "object"4311 },4312 "ContentTypeInfo": {4313 "properties": {4314 "fromHeader": {4315 "type": "string",4316 "description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request."4317 },4318 "fromFusionId": {4319 "type": "string",4320 "description": "The content type of the file detected by Fusion ID. go/fusionid"4321 },4322 "fromFileName": {4323 "description": "The content type of the file derived from the file extension of the original file name used by the client.",4324 "type": "string"4325 },4326 "fusionIdDetectionMetadata": {4327 "type": "string",4328 "format": "byte",4329 "description": "Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only set if from_fusion_id is set."4330 },4331 "bestGuess": {4332 "description": "Scotty's best guess of what the content type of the file is.",4333 "type": "string"4334 },4335 "fromUrlPath": {4336 "type": "string",4337 "description": "The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API)."4338 },4339 "fromBytes": {4340 "description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file.",4341 "type": "string"4342 }4343 },4344 "description": "Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.",4345 "type": "object",4346 "id": "ContentTypeInfo"4347 },4348 "CreateEnvironmentRequest": {4349 "type": "object",4350 "id": "CreateEnvironmentRequest",4351 "properties": {4352 "sources": {4353 "items": {4354 "$ref": "Source"4355 },4356 "description": "Sources to be mounted into the environment.",4357 "type": "array"4358 },4359 "networkMode": {4360 "enumDescriptions": [4361 "Default value. Unused.",4362 "All network egress is blocked."4363 ],4364 "enum": [4365 "NETWORK_MODE_UNSPECIFIED",4366 "DISABLED"4367 ],4368 "type": "string",4369 "description": "Network egress mode."4370 },4371 "networkAllowlist": {4372 "description": "Allow only specific domains.",4373 "$ref": "EnvironmentNetworkEgressAllowlist"4374 },4375 "fromEnvironment": {4376 "description": "Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.",4377 "type": "string"4378 }4379 },4380 "description": "Request for `CreateEnvironment`."4381 },4382 "InlinedRequests": {4383 "properties": {4384 "requests": {4385 "type": "array",4386 "items": {4387 "$ref": "InlinedRequest"4388 },4389 "description": "Required. The requests to be processed in the batch."4390 }4391 },4392 "type": "object",4393 "description": "The requests to be processed in the batch if provided as part of the batch creation request.",4394 "id": "InlinedRequests"4395 },4396 "FileSearchStore": {4397 "id": "FileSearchStore",4398 "description": "A `FileSearchStore` is a collection of `Document`s.",4399 "type": "object",4400 "properties": {4401 "displayName": {4402 "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"",4403 "type": "string"4404 },4405 "updateTime": {4406 "readOnly": true,4407 "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.",4408 "type": "string",4409 "format": "google-datetime"4410 },4411 "sizeBytes": {4412 "type": "string",4413 "format": "int64",4414 "readOnly": true,4415 "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`."4416 },4417 "embeddingModel": {4418 "type": "string",4419 "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used."4420 },4421 "activeDocumentsCount": {4422 "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.",4423 "readOnly": true,4424 "type": "string",4425 "format": "int64"4426 },4427 "failedDocumentsCount": {4428 "readOnly": true,4429 "type": "string",4430 "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.",4431 "format": "int64"4432 },4433 "createTime": {4434 "format": "google-datetime",4435 "description": "Output only. The Timestamp of when the `FileSearchStore` was created.",4436 "type": "string",4437 "readOnly": true4438 },4439 "name": {4440 "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.",4441 "type": "string",4442 "readOnly": true4443 },4444 "pendingDocumentsCount": {4445 "type": "string",4446 "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.",4447 "format": "int64",4448 "readOnly": true4449 }4450 }4451 },4452 "Hyperparameters": {4453 "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance",4454 "properties": {4455 "learningRateMultiplier": {4456 "type": "number",4457 "format": "float",4458 "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used."4459 },4460 "learningRate": {4461 "type": "number",4462 "format": "float",4463 "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples."4464 },4465 "epochCount": {4466 "format": "int32",4467 "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used.",4468 "type": "integer"4469 },4470 "batchSize": {4471 "type": "integer",4472 "format": "int32",4473 "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples."4474 }4475 },4476 "type": "object",4477 "id": "Hyperparameters"4478 },4479 "BatchEmbedContentsResponse": {4480 "type": "object",4481 "properties": {4482 "usageMetadata": {4483 "description": "Output only. The usage metadata for the request.",4484 "$ref": "EmbeddingUsageMetadata",4485 "readOnly": true4486 },4487 "embeddings": {4488 "type": "array",4489 "readOnly": true,4490 "items": {4491 "$ref": "ContentEmbedding"4492 },4493 "description": "Output only. The embeddings for each request, in the same order as provided in the batch request."4494 }4495 },4496 "description": "The response to a `BatchEmbedContentsRequest`.",4497 "id": "BatchEmbedContentsResponse"4498 },4499 "ListCorporaResponse": {4500 "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.",4501 "properties": {4502 "nextPageToken": {4503 "type": "string",4504 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."4505 },4506 "corpora": {4507 "items": {4508 "$ref": "Corpus"4509 },4510 "type": "array",4511 "description": "The returned corpora."4512 }4513 },4514 "id": "ListCorporaResponse",4515 "type": "object"4516 },4517 "FunctionDeclaration": {4518 "id": "FunctionDeclaration",4519 "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.",4520 "type": "object",4521 "properties": {4522 "name": {4523 "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128.",4524 "type": "string"4525 },4526 "behavior": {4527 "enumDescriptions": [4528 "This value is unused.",4529 "If set, the system will wait to receive the function response before continuing the conversation.",4530 "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model."4531 ],4532 "type": "string",4533 "enum": [4534 "UNSPECIFIED",4535 "BLOCKING",4536 "NON_BLOCKING"4537 ],4538 "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method."4539 },4540 "parameters": {4541 "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter.",4542 "$ref": "Schema"4543 },4544 "responseJsonSchema": {4545 "type": "any",4546 "description": "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`."4547 },4548 "parametersJsonSchema": {4549 "description": "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`.",4550 "type": "any"4551 },4552 "response": {4553 "$ref": "Schema",4554 "description": "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."4555 },4556 "description": {4557 "type": "string",4558 "description": "Required. A brief description of the function."4559 }4560 }4561 },4562 "McpServer": {4563 "type": "object",4564 "properties": {4565 "streamableHttpTransport": {4566 "$ref": "StreamableHttpTransport",4567 "description": "A transport that can stream HTTP requests and responses."4568 },4569 "name": {4570 "description": "The name of the MCPServer.",4571 "type": "string"4572 }4573 },4574 "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 7",4575 "id": "McpServer"4576 },4577 "SemanticRetrieverChunk": {4578 "type": "object",4579 "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",4580 "properties": {4581 "source": {4582 "readOnly": true,4583 "type": "string",4584 "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`"4585 },4586 "chunk": {4587 "type": "string",4588 "readOnly": true,4589 "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`"4590 }4591 },4592 "id": "SemanticRetrieverChunk"4593 },4594 "ContextWindowCompressionConfig": {4595 "description": "Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length.",4596 "id": "ContextWindowCompressionConfig",4597 "type": "object",4598 "properties": {4599 "slidingWindow": {4600 "$ref": "SlidingWindow",4601 "description": "A sliding-window mechanism."4602 },4603 "triggerTokens": {4604 "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.",4605 "format": "int64",4606 "type": "string"4607 }4608 }4609 },4610 "InputFeedback": {4611 "id": "InputFeedback",4612 "type": "object",4613 "properties": {4614 "blockReason": {4615 "description": "Optional. If set, the input was blocked and no candidates are returned. Rephrase the input.",4616 "enumDescriptions": [4617 "Default value. This value is unused.",4618 "Input was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.",4619 "Input was blocked due to other reasons."4620 ],4621 "type": "string",4622 "enum": [4623 "BLOCK_REASON_UNSPECIFIED",4624 "SAFETY",4625 "OTHER"4626 ]4627 },4628 "safetyRatings": {4629 "type": "array",4630 "description": "Ratings for safety of the input. There is at most one rating per category.",4631 "items": {4632 "$ref": "SafetyRating"4633 }4634 }4635 },4636 "description": "Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question."4637 },4638 "Example": {4639 "description": "An input/output example used to instruct the Model. It demonstrates how the model should respond or format its response.",4640 "id": "Example",4641 "type": "object",4642 "properties": {4643 "input": {4644 "description": "Required. An example of an input `Message` from the user.",4645 "$ref": "Message"4646 },4647 "output": {4648 "$ref": "Message",4649 "description": "Required. An example of what the model should output given the input."4650 }4651 }4652 },4653 "ListModelsResponse": {4654 "description": "Response from `ListModel` containing a paginated list of Models.",4655 "type": "object",4656 "properties": {4657 "models": {4658 "items": {4659 "$ref": "Model"4660 },4661 "description": "The returned Models.",4662 "type": "array"4663 },4664 "nextPageToken": {4665 "type": "string",4666 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."4667 }4668 },4669 "id": "ListModelsResponse"4670 },4671 "RegisterFilesRequest": {4672 "type": "object",4673 "id": "RegisterFilesRequest",4674 "description": "Request for `RegisterFiles`.",4675 "properties": {4676 "uris": {4677 "type": "array",4678 "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.",4679 "items": {4680 "type": "string"4681 }4682 }4683 }4684 },4685 "BatchEmbedContentsRequest": {4686 "id": "BatchEmbedContentsRequest",4687 "description": "Batch request to get embeddings from the model for a list of prompts.",4688 "type": "object",4689 "properties": {4690 "requests": {4691 "type": "array",4692 "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.",4693 "items": {4694 "$ref": "EmbedContentRequest"4695 }4696 }4697 }4698 },4699 "InlinedEmbedContentResponses": {4700 "type": "object",4701 "description": "The responses to the requests in the batch.",4702 "properties": {4703 "inlinedResponses": {4704 "description": "Output only. The responses to the requests in the batch.",4705 "items": {4706 "$ref": "InlinedEmbedContentResponse"4707 },4708 "readOnly": true,4709 "type": "array"4710 }4711 },4712 "id": "InlinedEmbedContentResponses"4713 },4714 "ListTunedModelsResponse": {4715 "description": "Response from `ListTunedModels` containing a paginated list of Models.",4716 "type": "object",4717 "id": "ListTunedModelsResponse",4718 "properties": {4719 "tunedModels": {4720 "type": "array",4721 "items": {4722 "$ref": "TunedModel"4723 },4724 "description": "The returned Models."4725 },4726 "nextPageToken": {4727 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",4728 "type": "string"4729 }4730 }4731 },4732 "ListDocumentsResponse": {4733 "type": "object",4734 "id": "ListDocumentsResponse",4735 "properties": {4736 "nextPageToken": {4737 "type": "string",4738 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."4739 },4740 "documents": {4741 "type": "array",4742 "description": "The returned `Document`s.",4743 "items": {4744 "$ref": "Document"4745 }4746 }4747 },4748 "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`."4749 },4750 "V1mainCreateTunedModelMetadata": {4751 "description": "Metadata about the state and progress of creating a tuned model returned from the long-running operation",4752 "type": "object",4753 "id": "V1mainCreateTunedModelMetadata",4754 "properties": {4755 "snapshots": {4756 "type": "array",4757 "items": {4758 "$ref": "V1mainTuningSnapshot"4759 },4760 "description": "Metrics collected during tuning."4761 },4762 "completedSteps": {4763 "type": "integer",4764 "format": "int32",4765 "description": "The number of steps completed."4766 },4767 "totalSteps": {4768 "format": "int32",4769 "description": "The total number of tuning steps.",4770 "type": "integer"4771 },4772 "completedPercent": {4773 "type": "number",4774 "description": "The completed percentage for the tuning operation.",4775 "format": "float"4776 },4777 "tunedModel": {4778 "type": "string",4779 "description": "Name of the tuned model associated with the tuning operation."4780 }4781 }4782 },4783 "BatchEmbedTextRequest": {4784 "type": "object",4785 "description": "Batch request to get a text embedding from the model.",4786 "id": "BatchEmbedTextRequest",4787 "properties": {4788 "texts": {4789 "type": "array",4790 "items": {4791 "type": "string"4792 },4793 "description": "Optional. The free-form input texts that the model will turn into an embedding. The current limit is 100 texts, over which an error will be thrown."4794 },4795 "requests": {4796 "items": {4797 "$ref": "EmbedTextRequest"4798 },4799 "type": "array",4800 "description": "Optional. Embed requests for the batch. Only one of `texts` or `requests` can be set."4801 }4802 }4803 },4804 "InlinedRequest": {4805 "id": "InlinedRequest",4806 "type": "object",4807 "properties": {4808 "request": {4809 "description": "Required. The request to be processed in the batch.",4810 "$ref": "GenerateContentRequest"4811 },4812 "metadata": {4813 "additionalProperties": {4814 "description": "Properties of the object.",4815 "type": "any"4816 },4817 "type": "object",4818 "description": "Optional. The metadata to be associated with the request."4819 }4820 },4821 "description": "The request to be processed in the batch."4822 },4823 "InlinedResponse": {4824 "type": "object",4825 "id": "InlinedResponse",4826 "properties": {4827 "error": {4828 "$ref": "Status",4829 "description": "Output only. The error encountered while processing the request.",4830 "readOnly": true4831 },4832 "response": {4833 "$ref": "GenerateContentResponse",4834 "description": "Output only. The response to the request.",4835 "readOnly": true4836 },4837 "metadata": {4838 "description": "Output only. The metadata associated with the request.",4839 "readOnly": true,4840 "additionalProperties": {4841 "description": "Properties of the object.",4842 "type": "any"4843 },4844 "type": "object"4845 }4846 },4847 "description": "The response to a single request in the batch."4848 },4849 "VoiceConfig": {4850 "description": "The configuration for the voice to use.",4851 "properties": {4852 "prebuiltVoiceConfig": {4853 "description": "The configuration for the prebuilt voice to use.",4854 "$ref": "PrebuiltVoiceConfig"4855 }4856 },4857 "type": "object",4858 "id": "VoiceConfig"4859 },4860 "FunctionResponseBlob": {4861 "properties": {4862 "data": {4863 "type": "string",4864 "format": "byte",4865 "description": "Raw bytes for media formats."4866 },4867 "mimeType": {4868 "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats).",4869 "type": "string"4870 }4871 },4872 "id": "FunctionResponseBlob",4873 "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",4874 "type": "object"4875 },4876 "GeneratedFile": {4877 "properties": {4878 "name": {4879 "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`",4880 "type": "string"4881 },4882 "state": {4883 "enumDescriptions": [4884 "The default value. This value is used if the state is omitted.",4885 "Being generated.",4886 "Generated and is ready for download.",4887 "Failed to generate the GeneratedFile."4888 ],4889 "description": "Output only. The state of the GeneratedFile.",4890 "enum": [4891 "STATE_UNSPECIFIED",4892 "GENERATING",4893 "GENERATED",4894 "FAILED"4895 ],4896 "readOnly": true,4897 "type": "string"4898 },4899 "error": {4900 "$ref": "Status",4901 "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state."4902 },4903 "mimeType": {4904 "description": "MIME type of the generatedFile.",4905 "type": "string"4906 }4907 },4908 "type": "object",4909 "description": "A file generated on behalf of a user.",4910 "id": "GeneratedFile"4911 },4912 "SessionResumptionConfig": {4913 "id": "SessionResumptionConfig",4914 "properties": {4915 "handle": {4916 "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections.",4917 "type": "string"4918 }4919 },4920 "type": "object",4921 "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages."4922 },4923 "Interval": {4924 "properties": {4925 "startTime": {4926 "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",4927 "format": "google-datetime",4928 "type": "string"4929 },4930 "endTime": {4931 "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.",4932 "type": "string",4933 "format": "google-datetime"4934 }4935 },4936 "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.",4937 "id": "Interval",4938 "type": "object"4939 },4940 "UploadEnvironmentFileResponse": {4941 "type": "object",4942 "description": "Response for `UploadEnvironmentFile`.",4943 "properties": {4944 "files": {4945 "type": "array",4946 "items": {4947 "$ref": "EnvironmentFile"4948 },4949 "description": "List of files created or extracted in the environment."4950 }4951 },4952 "id": "UploadEnvironmentFileResponse"4953 },4954 "TransferOwnershipRequest": {4955 "description": "Request to transfer the ownership of the tuned model.",4956 "properties": {4957 "emailAddress": {4958 "description": "Required. The email address of the user to whom the tuned model is being transferred to.",4959 "type": "string"4960 }4961 },4962 "id": "TransferOwnershipRequest",4963 "type": "object"4964 },4965 "EmbedContentBatch": {4966 "type": "object",4967 "description": "A resource representing a batch of `EmbedContent` requests.",4968 "id": "EmbedContentBatch",4969 "properties": {4970 "endTime": {4971 "type": "string",4972 "description": "Output only. The time at which the batch processing completed.",4973 "format": "google-datetime",4974 "readOnly": true4975 },4976 "batchStats": {4977 "description": "Output only. Stats about the batch.",4978 "readOnly": true,4979 "$ref": "EmbedContentBatchStats"4980 },4981 "state": {4982 "type": "string",4983 "enumDescriptions": [4984 "The batch state is unspecified.",4985 "The service is preparing to run the batch.",4986 "The batch is in progress.",4987 "The batch completed successfully.",4988 "The batch failed.",4989 "The batch has been cancelled.",4990 "The batch has expired."4991 ],4992 "enum": [4993 "BATCH_STATE_UNSPECIFIED",4994 "BATCH_STATE_PENDING",4995 "BATCH_STATE_RUNNING",4996 "BATCH_STATE_SUCCEEDED",4997 "BATCH_STATE_FAILED",4998 "BATCH_STATE_CANCELLED",4999 "BATCH_STATE_EXPIRED"5000 ],5001 "readOnly": true,5002 "description": "Output only. The state of the batch."5003 },5004 "model": {5005 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",5006 "type": "string"5007 },5008 "createTime": {5009 "readOnly": true,5010 "format": "google-datetime",5011 "description": "Output only. The time at which the batch was created.",5012 "type": "string"5013 },5014 "name": {5015 "readOnly": true,5016 "type": "string",5017 "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`."5018 },5019 "updateTime": {5020 "readOnly": true,5021 "description": "Output only. The time at which the batch was last updated.",5022 "type": "string",5023 "format": "google-datetime"5024 },5025 "priority": {5026 "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.",5027 "format": "int64",5028 "type": "string"5029 },5030 "inputConfig": {5031 "description": "Required. Input configuration of the instances on which batch processing are performed.",5032 "$ref": "InputEmbedContentConfig"5033 },5034 "output": {5035 "$ref": "EmbedContentBatchOutput",5036 "readOnly": true,5037 "description": "Output only. The output of the batch request."5038 },5039 "displayName": {5040 "type": "string",5041 "description": "Required. The user-defined name of this batch."5042 }5043 }5044 },5045 "ImportFileRequest": {5046 "type": "object",5047 "properties": {5048 "customMetadata": {5049 "description": "Custom metadata to be associated with the file.",5050 "items": {5051 "$ref": "CustomMetadata"5052 },5053 "type": "array"5054 },5055 "fileName": {5056 "description": "Required. The name of the `File` to import. Example: `files/abc-123`",5057 "type": "string"5058 },5059 "chunkingConfig": {5060 "$ref": "ChunkingConfig",5061 "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters."5062 }5063 },5064 "id": "ImportFileRequest",5065 "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`."5066 },5067 "DiffUploadRequest": {5068 "type": "object",5069 "id": "DiffUploadRequest",5070 "description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",5071 "properties": {5072 "objectInfo": {5073 "$ref": "CompositeMedia",5074 "description": "The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received."5075 },5076 "checksumsInfo": {5077 "description": "The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.",5078 "$ref": "CompositeMedia"5079 },5080 "objectVersion": {5081 "description": "The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.",5082 "type": "string"5083 }5084 }5085 },5086 "UploadToFileSearchStoreRequest": {5087 "properties": {5088 "chunkingConfig": {5089 "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters.",5090 "$ref": "ChunkingConfig"5091 },5092 "displayName": {5093 "type": "string",5094 "description": "Optional. Display name of the created document."5095 },5096 "mimeType": {5097 "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.",5098 "type": "string"5099 },5100 "customMetadata": {5101 "type": "array",5102 "description": "Custom metadata to be associated with the data.",5103 "items": {5104 "$ref": "CustomMetadata"5105 }5106 }5107 },5108 "type": "object",5109 "id": "UploadToFileSearchStoreRequest",5110 "description": "Request for `UploadToFileSearchStore`."5111 },5112 "Candidate": {5113 "id": "Candidate",5114 "description": "A response candidate generated from the model.",5115 "type": "object",5116 "properties": {5117 "safetyRatings": {5118 "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",5119 "type": "array",5120 "items": {5121 "$ref": "SafetyRating"5122 }5123 },5124 "groundingAttributions": {5125 "items": {5126 "$ref": "GroundingAttribution"5127 },5128 "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",5129 "readOnly": true,5130 "type": "array"5131 },5132 "index": {5133 "format": "int32",5134 "readOnly": true,5135 "description": "Output only. Index of the candidate in the list of response candidates.",5136 "type": "integer"5137 },5138 "groundingMetadata": {5139 "$ref": "GroundingMetadata",5140 "readOnly": true,5141 "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls."5142 },5143 "citationMetadata": {5144 "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data.",5145 "readOnly": true,5146 "$ref": "CitationMetadata"5147 },5148 "logprobsResult": {5149 "$ref": "LogprobsResult",5150 "readOnly": true,5151 "description": "Output only. Log-likelihood scores for the response tokens and top tokens"5152 },5153 "content": {5154 "$ref": "Content",5155 "description": "Output only. Generated content returned from the model.",5156 "readOnly": true5157 },5158 "urlContextMetadata": {5159 "$ref": "UrlContextMetadata",5160 "readOnly": true,5161 "description": "Output only. Metadata related to url context retrieval tool."5162 },5163 "finishReason": {5164 "type": "string",5165 "enum": [5166 "FINISH_REASON_UNSPECIFIED",5167 "STOP",5168 "MAX_TOKENS",5169 "SAFETY",5170 "RECITATION",5171 "LANGUAGE",5172 "OTHER",5173 "BLOCKLIST",5174 "PROHIBITED_CONTENT",5175 "SPII",5176 "MALFORMED_FUNCTION_CALL",5177 "IMAGE_SAFETY",5178 "IMAGE_PROHIBITED_CONTENT",5179 "IMAGE_OTHER",5180 "NO_IMAGE",5181 "IMAGE_RECITATION",5182 "UNEXPECTED_TOOL_CALL",5183 "TOO_MANY_TOOL_CALLS",5184 "MISSING_THOUGHT_SIGNATURE",5185 "MALFORMED_RESPONSE",5186 "ESCALATION",5187 "PUP_LIMITED_DISABLED"5188 ],5189 "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.",5190 "enumDescriptions": [5191 "Default value. This value is unused.",5192 "Natural stop point of the model or provided stop sequence.",5193 "The maximum number of tokens as specified in the request was reached.",5194 "The response candidate content was flagged for safety reasons.",5195 "The response candidate content was flagged for recitation reasons.",5196 "The response candidate content was flagged for using an unsupported language.",5197 "Unknown reason.",5198 "Token generation stopped because the content contains forbidden terms.",5199 "Token generation stopped for potentially containing prohibited content.",5200 "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).",5201 "The function call generated by the model is invalid.",5202 "Token generation stopped because generated images contain safety violations.",5203 "Image generation stopped because generated images has other prohibited content.",5204 "Image generation stopped because of other miscellaneous issue.",5205 "The model was expected to generate an image, but none was generated.",5206 "Image generation stopped due to recitation.",5207 "Model generated a tool call but no tools were enabled in the request.",5208 "Model called too many tools consecutively, thus the system exited execution.",5209 "Request has at least one thought signature missing.",5210 "Finished due to malformed response.",5211 "Request was filtered by an escalation rule.",5212 "Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations."5213 ],5214 "readOnly": true5215 },5216 "finishMessage": {5217 "readOnly": true,5218 "type": "string",5219 "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set."5220 },5221 "tokenCount": {5222 "readOnly": true,5223 "format": "int32",5224 "type": "integer",5225 "description": "Output only. Token count for this candidate."5226 },5227 "avgLogprobs": {5228 "type": "number",5229 "format": "double",5230 "description": "Output only. Average log probability score of the candidate.",5231 "readOnly": true5232 }5233 }5234 },5235 "CompositeMedia": {5236 "description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.",5237 "type": "object",5238 "properties": {5239 "objectId": {5240 "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF.",5241 "$ref": "ObjectId"5242 },5243 "blobRef": {5244 "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.",5245 "deprecated": true,5246 "type": "string",5247 "format": "byte"5248 },5249 "inline": {5250 "type": "string",5251 "description": "Media data, set if reference_type is INLINE",5252 "format": "byte"5253 },5254 "sha1Hash": {5255 "format": "byte",5256 "description": "SHA-1 hash for the payload.",5257 "type": "string"5258 },5259 "path": {5260 "type": "string",5261 "description": "Path to the data, set if reference_type is PATH"5262 },5263 "cosmoBinaryReference": {5264 "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.",5265 "format": "byte",5266 "type": "string"5267 },5268 "crc32cHash": {5269 "format": "uint32",5270 "description": "crc32.c hash for the payload.",5271 "type": "integer"5272 },5273 "length": {5274 "type": "string",5275 "description": "Size of the data, in bytes",5276 "format": "int64"5277 },5278 "blobstore2Info": {5279 "$ref": "Blobstore2Info",5280 "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob."5281 },5282 "referenceType": {5283 "description": "Describes what the field reference contains.",5284 "enumDescriptions": [5285 "Reference contains a GFS path or a local path.",5286 "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.",5287 "Data is included into this proto buffer",5288 "Reference points to a bigstore object",5289 "Indicates the data is stored in cosmo_binary_reference."5290 ],5291 "type": "string",5292 "enum": [5293 "PATH",5294 "BLOB_REF",5295 "INLINE",5296 "BIGSTORE_REF",5297 "COSMO_BINARY_REFERENCE"5298 ]5299 },5300 "md5Hash": {5301 "description": "MD5 hash for the payload.",5302 "type": "string",5303 "format": "byte"5304 }5305 },5306 "id": "CompositeMedia"5307 },5308 "LanguageHints": {5309 "properties": {5310 "languageCodes": {5311 "type": "array",5312 "deprecated": true,5313 "description": "Required. BCP-47 language codes.",5314 "items": {5315 "type": "string"5316 }5317 }5318 },5319 "deprecated": true,5320 "type": "object",5321 "description": "Provides hints to the model about possible languages present in the audio.",5322 "id": "LanguageHints"5323 },5324 "DiffChecksumsResponse": {5325 "properties": {5326 "objectVersion": {5327 "description": "The object version of the object the checksums are being returned for.",5328 "type": "string"5329 },5330 "objectSizeBytes": {5331 "type": "string",5332 "format": "int64",5333 "description": "The total size of the server object."5334 },5335 "chunkSizeBytes": {5336 "type": "string",5337 "description": "The chunk size of checksums. Must be a multiple of 256KB.",5338 "format": "int64"5339 },5340 "objectLocation": {5341 "description": "If set, calculate the checksums based on the contents and return them to the caller.",5342 "$ref": "CompositeMedia"5343 },5344 "checksumsLocation": {5345 "description": "Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.",5346 "$ref": "CompositeMedia"5347 }5348 },5349 "type": "object",5350 "description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",5351 "id": "DiffChecksumsResponse"5352 },5353 "InlinedEmbedContentResponse": {5354 "description": "The response to a single request in the batch.",5355 "id": "InlinedEmbedContentResponse",5356 "properties": {5357 "response": {5358 "$ref": "EmbedContentResponse",5359 "readOnly": true,5360 "description": "Output only. The response to the request."5361 },5362 "metadata": {5363 "description": "Output only. The metadata associated with the request.",5364 "readOnly": true,5365 "type": "object",5366 "additionalProperties": {5367 "type": "any",5368 "description": "Properties of the object."5369 }5370 },5371 "error": {5372 "readOnly": true,5373 "description": "Output only. The error encountered while processing the request.",5374 "$ref": "Status"5375 }5376 },5377 "type": "object"5378 },5379 "GenerateAnswerRequest": {5380 "description": "Request to generate a grounded answer from the `Model`.",5381 "properties": {5382 "safetySettings": {5383 "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateAnswerRequest.contents` and `GenerateAnswerResponse.candidate`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.",5384 "items": {5385 "$ref": "SafetySetting"5386 },5387 "type": "array"5388 },5389 "contents": {5390 "description": "Required. The content of the current conversation with the `Model`. For single-turn queries, this is a single question to answer. For multi-turn queries, this is a repeated field that contains conversation history and the last `Content` in the list containing the question. Note: `GenerateAnswer` only supports queries in English.",5391 "items": {5392 "$ref": "Content"5393 },5394 "type": "array"5395 },5396 "semanticRetriever": {5397 "description": "Content retrieved from resources created via the Semantic Retriever API.",5398 "$ref": "SemanticRetrieverConfig"5399 },5400 "answerStyle": {5401 "enum": [5402 "ANSWER_STYLE_UNSPECIFIED",5403 "ABSTRACTIVE",5404 "EXTRACTIVE",5405 "VERBOSE"5406 ],5407 "description": "Required. Style in which answers should be returned.",5408 "type": "string",5409 "enumDescriptions": [5410 "Unspecified answer style.",5411 "Succinct but abstract style.",5412 "Very brief and extractive style.",5413 "Verbose style including extra details. The response may be formatted as a sentence, paragraph, multiple paragraphs, or bullet points, etc."5414 ]5415 },5416 "inlinePassages": {5417 "$ref": "GroundingPassages",5418 "description": "Passages provided inline with the request."5419 },5420 "temperature": {5421 "format": "float",5422 "description": "Optional. Controls the randomness of the output. Values can range from [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model. A low temperature (~0.2) is usually recommended for Attributed-Question-Answering use cases.",5423 "type": "number"5424 }5425 },5426 "type": "object",5427 "id": "GenerateAnswerRequest"5428 },5429 "ContentEmbedding": {5430 "description": "A list of floats representing an embedding.",5431 "id": "ContentEmbedding",5432 "properties": {5433 "values": {5434 "items": {5435 "type": "number",5436 "format": "float"5437 },5438 "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls.",5439 "type": "array"5440 },5441 "shape": {5442 "items": {5443 "format": "int32",5444 "type": "integer"5445 },5446 "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).",5447 "type": "array"5448 }5449 },5450 "type": "object"5451 },5452 "StreamableHttpTransport": {5453 "description": "A transport that can stream HTTP requests and responses. Next ID: 6",5454 "id": "StreamableHttpTransport",5455 "type": "object",5456 "properties": {5457 "terminateOnClose": {5458 "description": "Whether to close the client session when the transport closes.",5459 "type": "boolean"5460 },5461 "sseReadTimeout": {5462 "type": "string",5463 "format": "google-duration",5464 "description": "Timeout for SSE read operations."5465 },5466 "headers": {5467 "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.",5468 "type": "object",5469 "additionalProperties": {5470 "type": "string"5471 }5472 },5473 "timeout": {5474 "description": "HTTP timeout for regular operations.",5475 "format": "google-duration",5476 "type": "string"5477 },5478 "url": {5479 "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"",5480 "type": "string"5481 }5482 }5483 },5484 "Source": {5485 "id": "Source",5486 "properties": {5487 "target": {5488 "description": "Where the source should appear in the environment.",5489 "type": "string"5490 },5491 "encoding": {5492 "type": "string",5493 "description": "Optional encoding for inline content (e.g. `base64`)."5494 },5495 "source": {5496 "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.",5497 "type": "string"5498 },5499 "content": {5500 "description": "The inline content if `type` is `INLINE`.",5501 "type": "string"5502 },5503 "type": {5504 "type": "string",5505 "enumDescriptions": [5506 "",5507 "A Cloud Storage bucket.",5508 "Inline content.",5509 "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)."5510 ],5511 "enum": [5512 "TYPE_UNSPECIFIED",5513 "GCS",5514 "INLINE",5515 "REPOSITORY"5516 ]5517 }5518 },5519 "type": "object",5520 "description": "A source to be mounted into the environment."5521 },5522 "GoogleAiGenerativelanguageV1betaGroundingSupport": {5523 "type": "object",5524 "id": "GoogleAiGenerativelanguageV1betaGroundingSupport",5525 "properties": {5526 "confidenceScores": {5527 "items": {5528 "type": "number",5529 "format": "float"5530 },5531 "type": "array",5532 "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices."5533 },5534 "renderedParts": {5535 "type": "array",5536 "readOnly": true,5537 "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.",5538 "items": {5539 "type": "integer",5540 "format": "int32"5541 }5542 },5543 "groundingChunkIndices": {5544 "items": {5545 "type": "integer",5546 "format": "int32"5547 },5548 "type": "array",5549 "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order)."5550 },5551 "segment": {5552 "description": "Segment of the content this support belongs to.",5553 "$ref": "GoogleAiGenerativelanguageV1betaSegment"5554 }5555 },5556 "description": "Grounding support."5557 },5558 "ImageConfig": {5559 "description": "Config for image generation features.",5560 "id": "ImageConfig",5561 "type": "object",5562 "properties": {5563 "aspectRatio": {5564 "type": "string",5565 "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided."5566 },5567 "imageSize": {5568 "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.",5569 "type": "string"5570 }5571 }5572 },5573 "CountTokensResponse": {5574 "properties": {5575 "promptTokensDetails": {5576 "items": {5577 "$ref": "ModalityTokenCount"5578 },5579 "type": "array",5580 "description": "Output only. List of modalities that were processed in the request input.",5581 "readOnly": true5582 },5583 "cacheTokensDetails": {5584 "items": {5585 "$ref": "ModalityTokenCount"5586 },5587 "type": "array",5588 "description": "Output only. List of modalities that were processed in the cached content.",5589 "readOnly": true5590 },5591 "totalTokens": {5592 "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.",5593 "type": "integer",5594 "format": "int32"5595 },5596 "cachedContentTokenCount": {5597 "description": "Number of tokens in the cached part of the prompt (the cached content).",5598 "type": "integer",5599 "format": "int32"5600 }5601 },5602 "id": "CountTokensResponse",5603 "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.",5604 "type": "object"5605 },5606 "FunctionCallingConfig": {5607 "description": "Configuration for specifying function calling behavior.",5608 "properties": {5609 "allowedFunctionNames": {5610 "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names.",5611 "type": "array",5612 "items": {5613 "type": "string"5614 }5615 },5616 "mode": {5617 "type": "string",5618 "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.",5619 "enum": [5620 "MODE_UNSPECIFIED",5621 "AUTO",5622 "ANY",5623 "NONE",5624 "VALIDATED"5625 ],5626 "enumDescriptions": [5627 "Unspecified function calling mode. This value should not be used.",5628 "Default model behavior, model decides to predict either a function call or a natural language response.",5629 "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".",5630 "Model will not predict any function call. Model behavior is same as when not passing any function declarations.",5631 "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"."5632 ]5633 }5634 },5635 "type": "object",5636 "id": "FunctionCallingConfig"5637 },5638 "CreateFileRequest": {5639 "properties": {5640 "file": {5641 "description": "Optional. Metadata for the file to create.",5642 "$ref": "File"5643 }5644 },5645 "type": "object",5646 "description": "Request for `CreateFile`.",5647 "id": "CreateFileRequest"5648 },5649 "GdataMedia": {5650 "properties": {5651 "contentType": {5652 "description": "MIME type of the data",5653 "type": "string"5654 },5655 "sha256Hash": {5656 "description": "Scotty-provided SHA256 hash for an upload.",5657 "format": "byte",5658 "type": "string"5659 },5660 "referenceType": {5661 "description": "Describes what the field reference contains.",5662 "type": "string",5663 "enumDescriptions": [5664 "Reference contains a GFS path or a local path.",5665 "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.",5666 "Data is included into this proto buffer",5667 "Data should be accessed from the current service using the operation GetMedia.",5668 "The content for this media object is stored across multiple partial media objects under the composite_media field.",5669 "Reference points to a bigstore object",5670 "Indicates the data is stored in diff_version_response.",5671 "Indicates the data is stored in diff_checksums_response.",5672 "Indicates the data is stored in diff_download_response.",5673 "Indicates the data is stored in diff_upload_request.",5674 "Indicates the data is stored in diff_upload_response.",5675 "Indicates the data is stored in cosmo_binary_reference.",5676 "Informs Scotty to generate a response payload with the size specified in the length field. The contents of the payload are generated by Scotty and are undefined. This is useful for testing download speeds between the user and Scotty without involving a real payload source. Note: range is not supported when using arbitrary_bytes."5677 ],5678 "enum": [5679 "PATH",5680 "BLOB_REF",5681 "INLINE",5682 "GET_MEDIA",5683 "COMPOSITE_MEDIA",5684 "BIGSTORE_REF",5685 "DIFF_VERSION_RESPONSE",5686 "DIFF_CHECKSUMS_RESPONSE",5687 "DIFF_DOWNLOAD_RESPONSE",5688 "DIFF_UPLOAD_REQUEST",5689 "DIFF_UPLOAD_RESPONSE",5690 "COSMO_BINARY_REFERENCE",5691 "ARBITRARY_BYTES"5692 ]5693 },5694 "hash": {5695 "type": "string",5696 "description": "Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media.",5697 "deprecated": true5698 },5699 "mediaId": {5700 "description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.",5701 "type": "string",5702 "format": "byte"5703 },5704 "downloadParameters": {5705 "description": "Parameters for a media download.",5706 "$ref": "DownloadParameters"5707 },5708 "blobstore2Info": {5709 "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.",5710 "$ref": "Blobstore2Info"5711 },5712 "diffUploadResponse": {5713 "$ref": "DiffUploadResponse",5714 "description": "Set if reference_type is DIFF_UPLOAD_RESPONSE."5715 },5716 "length": {5717 "description": "Size of the data, in bytes",5718 "format": "int64",5719 "type": "string"5720 },5721 "sha1Hash": {5722 "type": "string",5723 "format": "byte",5724 "description": "Scotty-provided SHA1 hash for an upload."5725 },5726 "isPotentialRetry": {5727 "type": "boolean",5728 "description": "|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence."5729 },5730 "inline": {5731 "type": "string",5732 "format": "byte",5733 "description": "Media data, set if reference_type is INLINE"5734 },5735 "objectId": {5736 "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF.",5737 "$ref": "ObjectId"5738 },5739 "token": {5740 "type": "string",5741 "description": "A unique fingerprint/version id for the media data"5742 },5743 "blobRef": {5744 "format": "byte",5745 "type": "string",5746 "deprecated": true,5747 "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef."5748 },5749 "path": {5750 "description": "Path to the data, set if reference_type is PATH",5751 "type": "string"5752 },5753 "diffChecksumsResponse": {5754 "description": "Set if reference_type is DIFF_CHECKSUMS_RESPONSE.",5755 "$ref": "DiffChecksumsResponse"5756 },5757 "filename": {5758 "description": "Original file name",5759 "type": "string"5760 },5761 "md5Hash": {5762 "description": "Scotty-provided MD5 hash for an upload.",5763 "format": "byte",5764 "type": "string"5765 },5766 "crc32cHash": {5767 "format": "uint32",5768 "description": "For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.",5769 "type": "integer"5770 },5771 "diffUploadRequest": {5772 "$ref": "DiffUploadRequest",5773 "description": "Set if reference_type is DIFF_UPLOAD_REQUEST."5774 },5775 "sha512Hash": {5776 "description": "Scotty-provided SHA512 hash for an upload.",5777 "format": "byte",5778 "type": "string"5779 },5780 "diffDownloadResponse": {5781 "description": "Set if reference_type is DIFF_DOWNLOAD_RESPONSE.",5782 "$ref": "DiffDownloadResponse"5783 },5784 "algorithm": {5785 "type": "string",5786 "description": "Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, \"MD5\" is the only possible value for this field. New values may be added at any time.",5787 "deprecated": true5788 },5789 "timestamp": {5790 "format": "uint64",5791 "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch",5792 "type": "string"5793 },5794 "contentTypeInfo": {5795 "description": "Extended content type information provided for Scotty uploads.",5796 "$ref": "ContentTypeInfo"5797 },5798 "hashVerified": {5799 "description": "For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.",5800 "type": "boolean"5801 },5802 "bigstoreObjectRef": {5803 "deprecated": true,5804 "format": "byte",5805 "description": "Use object_id instead.",5806 "type": "string"5807 },5808 "compositeMedia": {5809 "type": "array",5810 "items": {5811 "$ref": "CompositeMedia"5812 },5813 "description": "A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified."5814 },5815 "cosmoBinaryReference": {5816 "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.",5817 "format": "byte",5818 "type": "string"5819 },5820 "diffVersionResponse": {5821 "description": "Set if reference_type is DIFF_VERSION_RESPONSE.",5822 "$ref": "DiffVersionResponse"5823 }5824 },5825 "type": "object",5826 "id": "GdataMedia",5827 "description": "A reference to data stored on the filesystem, on GFS or in blobstore."5828 },5829 "FunctionCall": {5830 "properties": {5831 "args": {5832 "additionalProperties": {5833 "description": "Properties of the object.",5834 "type": "any"5835 },5836 "description": "Optional. The function parameters and values in JSON object format.",5837 "type": "object"5838 },5839 "name": {5840 "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.",5841 "type": "string"5842 },5843 "id": {5844 "type": "string",5845 "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`."5846 }5847 },5848 "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",5849 "id": "FunctionCall",5850 "type": "object"5851 },5852 "TransferOwnershipResponse": {5853 "description": "Response from `TransferOwnership`.",5854 "properties": {},5855 "id": "TransferOwnershipResponse",5856 "type": "object"5857 },5858 "VideoMetadata": {5859 "type": "object",5860 "id": "VideoMetadata",5861 "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.",5862 "properties": {5863 "endOffset": {5864 "format": "google-duration",5865 "description": "Optional. The end offset of the video.",5866 "type": "string"5867 },5868 "startOffset": {5869 "format": "google-duration",5870 "description": "Optional. The start offset of the video.",5871 "type": "string"5872 },5873 "fps": {5874 "type": "number",5875 "format": "double",5876 "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]."5877 }5878 },5879 "deprecated": true5880 },5881 "Web": {5882 "properties": {5883 "title": {5884 "description": "Output only. Title of the chunk.",5885 "readOnly": true,5886 "type": "string"5887 },5888 "uri": {5889 "description": "Output only. URI reference of the chunk.",5890 "readOnly": true,5891 "type": "string"5892 }5893 },5894 "description": "Chunk from the web.",5895 "type": "object",5896 "id": "Web"5897 },5898 "EmbedTextRequest": {5899 "description": "Request to get a text embedding from the model.",5900 "id": "EmbedTextRequest",5901 "properties": {5902 "model": {5903 "type": "string",5904 "description": "Required. The model name to use with the format model=models/{model}."5905 },5906 "text": {5907 "description": "Optional. The free-form input text that the model will turn into an embedding.",5908 "type": "string"5909 }5910 },5911 "type": "object"5912 },5913 "SlidingWindow": {5914 "type": "object",5915 "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.",5916 "id": "SlidingWindow",5917 "properties": {5918 "targetTokens": {5919 "format": "int64",5920 "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations.",5921 "type": "string"5922 }5923 }5924 },5925 "ToolCall": {5926 "type": "object",5927 "properties": {5928 "toolType": {5929 "type": "string",5930 "description": "Required. The type of tool that was called.",5931 "enumDescriptions": [5932 "Unspecified tool type.",5933 "Google search tool, maps to Tool.google_search.search_types.web_search.",5934 "Image search tool, maps to Tool.google_search.search_types.image_search.",5935 "URL context tool, maps to Tool.url_context.",5936 "Google maps tool, maps to Tool.google_maps.",5937 "File search tool, maps to Tool.file_search."5938 ],5939 "enum": [5940 "TOOL_TYPE_UNSPECIFIED",5941 "GOOGLE_SEARCH_WEB",5942 "GOOGLE_SEARCH_IMAGE",5943 "URL_CONTEXT",5944 "GOOGLE_MAPS",5945 "FILE_SEARCH"5946 ]5947 },5948 "args": {5949 "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}",5950 "additionalProperties": {5951 "description": "Properties of the object.",5952 "type": "any"5953 },5954 "type": "object"5955 },5956 "id": {5957 "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.",5958 "type": "string"5959 },5960 "toolName": {5961 "description": "Optional. The name of the tool that was called.",5962 "type": "string"5963 }5964 },5965 "id": "ToolCall",5966 "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`."5967 },5968 "DownloadFileResponse": {5969 "id": "DownloadFileResponse",5970 "properties": {},5971 "type": "object",5972 "description": "Response for `DownloadFile`."5973 },5974 "LatLng": {5975 "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.",5976 "type": "object",5977 "properties": {5978 "longitude": {5979 "type": "number",5980 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",5981 "format": "double"5982 },5983 "latitude": {5984 "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",5985 "format": "double",5986 "type": "number"5987 }5988 },5989 "id": "LatLng"5990 },5991 "CodeExecutionResult": {5992 "properties": {5993 "outcome": {5994 "description": "Required. Outcome of the code execution.",5995 "enum": [5996 "OUTCOME_UNSPECIFIED",5997 "OUTCOME_OK",5998 "OUTCOME_FAILED",5999 "OUTCOME_DEADLINE_EXCEEDED"6000 ],6001 "enumDescriptions": [6002 "Unspecified status. This value should not be used.",6003 "Code execution completed successfully. `output` contains the stdout, if any.",6004 "Code execution failed. `output` contains the stderr and stdout, if any.",6005 "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present."6006 ],6007 "type": "string"6008 },6009 "id": {6010 "type": "string",6011 "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id."6012 },6013 "output": {6014 "type": "string",6015 "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."6016 }6017 },6018 "type": "object",6019 "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",6020 "id": "CodeExecutionResult"6021 },6022 "DiffVersionResponse": {6023 "id": "DiffVersionResponse",6024 "description": "Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",6025 "properties": {6026 "objectSizeBytes": {6027 "description": "The total size of the server object.",6028 "format": "int64",6029 "type": "string"6030 },6031 "objectVersion": {6032 "type": "string",6033 "description": "The version of the object stored at the server."6034 }6035 },6036 "type": "object"6037 },6038 "GroundingChunk": {6039 "type": "object",6040 "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.",6041 "id": "GroundingChunk",6042 "properties": {6043 "image": {6044 "description": "Optional. Grounding chunk from image search.",6045 "$ref": "Image"6046 },6047 "retrievedContext": {6048 "description": "Optional. Grounding chunk from context retrieved by the file search tool.",6049 "$ref": "RetrievedContext"6050 },6051 "maps": {6052 "$ref": "Maps",6053 "description": "Optional. Grounding chunk from Google Maps."6054 },6055 "web": {6056 "$ref": "Web",6057 "description": "Grounding chunk from the web."6058 }6059 }6060 },6061 "SafetyFeedback": {6062 "type": "object",6063 "id": "SafetyFeedback",6064 "properties": {6065 "setting": {6066 "description": "Safety settings applied to the request.",6067 "$ref": "SafetySetting"6068 },6069 "rating": {6070 "$ref": "SafetyRating",6071 "description": "Safety rating evaluated from content."6072 }6073 },6074 "description": "Safety feedback for an entire request. This field is populated if content in the input and/or response is blocked due to safety settings. SafetyFeedback may not exist for every HarmCategory. Each SafetyFeedback will return the safety settings used by the request as well as the lowest HarmProbability that should be allowed in order to return a result."6075 },6076 "ImageSearch": {6077 "id": "ImageSearch",6078 "type": "object",6079 "description": "Image search for grounding and related configurations.",6080 "properties": {}6081 },6082 "UsageMetadata": {6083 "type": "object",6084 "id": "UsageMetadata",6085 "description": "Metadata on the generation request's token usage.",6086 "properties": {6087 "totalTokenCount": {6088 "format": "int32",6089 "description": "Total token count for the generation request (prompt + thoughts + response candidates).",6090 "type": "integer"6091 },6092 "candidatesTokensDetails": {6093 "items": {6094 "$ref": "ModalityTokenCount"6095 },6096 "readOnly": true,6097 "description": "Output only. List of modalities that were returned in the response.",6098 "type": "array"6099 },6100 "toolUsePromptTokensDetails": {6101 "items": {6102 "$ref": "ModalityTokenCount"6103 },6104 "description": "Output only. List of modalities that were processed for tool-use request inputs.",6105 "type": "array",6106 "readOnly": true6107 },6108 "cachedContentTokenCount": {6109 "type": "integer",6110 "description": "Number of tokens in the cached part of the prompt (the cached content)",6111 "format": "int32"6112 },6113 "cacheTokensDetails": {6114 "items": {6115 "$ref": "ModalityTokenCount"6116 },6117 "readOnly": true,6118 "type": "array",6119 "description": "Output only. List of modalities of the cached content in the request input."6120 },6121 "candidatesTokenCount": {6122 "format": "int32",6123 "description": "Total number of tokens across all the generated response candidates.",6124 "type": "integer"6125 },6126 "promptTokenCount": {6127 "format": "int32",6128 "type": "integer",6129 "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content."6130 },6131 "promptTokensDetails": {6132 "readOnly": true,6133 "type": "array",6134 "items": {6135 "$ref": "ModalityTokenCount"6136 },6137 "description": "Output only. List of modalities that were processed in the request input."6138 },6139 "serviceTier": {6140 "enum": [6141 "unspecified",6142 "standard",6143 "flex",6144 "priority"6145 ],6146 "type": "string",6147 "readOnly": true,6148 "enumDescriptions": [6149 "Default service tier, which is standard.",6150 "Standard service tier.",6151 "Flex service tier.",6152 "Priority service tier."6153 ],6154 "description": "Output only. Service tier of the request."6155 },6156 "thoughtsTokenCount": {6157 "description": "Output only. Number of tokens of thoughts for thinking models.",6158 "format": "int32",6159 "readOnly": true,6160 "type": "integer"6161 },6162 "toolUsePromptTokenCount": {6163 "type": "integer",6164 "description": "Output only. Number of tokens present in tool-use prompt(s).",6165 "format": "int32",6166 "readOnly": true6167 }6168 }6169 },6170 "ListCachedContentsResponse": {6171 "properties": {6172 "cachedContents": {6173 "description": "List of cached contents.",6174 "items": {6175 "$ref": "CachedContent"6176 },6177 "type": "array"6178 },6179 "nextPageToken": {6180 "type": "string",6181 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."6182 }6183 },6184 "type": "object",6185 "description": "Response with CachedContents list.",6186 "id": "ListCachedContentsResponse"6187 },6188 "TextResponseFormat": {6189 "properties": {6190 "mimeType": {6191 "type": "string",6192 "description": "Optional. The MIME type of the text output.",6193 "enumDescriptions": [6194 "Default value. This value is unused.",6195 "JSON output format.",6196 "Plain text output format."6197 ],6198 "enum": [6199 "MIME_TYPE_UNSPECIFIED",6200 "APPLICATION_JSON",6201 "TEXT_PLAIN"6202 ]6203 },6204 "schema": {6205 "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.",6206 "type": "any"6207 }6208 },6209 "description": "Configuration for text output format.",6210 "type": "object",6211 "id": "TextResponseFormat"6212 },6213 "SafetyRating": {6214 "properties": {6215 "probability": {6216 "enumDescriptions": [6217 "Probability is unspecified.",6218 "Content has a negligible chance of being unsafe.",6219 "Content has a low chance of being unsafe.",6220 "Content has a medium chance of being unsafe.",6221 "Content has a high chance of being unsafe."6222 ],6223 "description": "Required. The probability of harm for this content.",6224 "type": "string",6225 "enum": [6226 "HARM_PROBABILITY_UNSPECIFIED",6227 "NEGLIGIBLE",6228 "LOW",6229 "MEDIUM",6230 "HIGH"6231 ]6232 },6233 "blocked": {6234 "type": "boolean",6235 "description": "Was this content blocked because of this rating?"6236 },6237 "category": {6238 "type": "string",6239 "description": "Required. The category for this rating.",6240 "enumDescriptions": [6241 "Category is unspecified.",6242 "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.",6243 "**PaLM** - Content that is rude, disrespectful, or profane.",6244 "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",6245 "**PaLM** - Contains references to sexual acts or other lewd content.",6246 "**PaLM** - Promotes unchecked medical advice.",6247 "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.",6248 "**Gemini** - Harassment content.",6249 "**Gemini** - Hate speech and content.",6250 "**Gemini** - Sexually explicit content.",6251 "**Gemini** - Dangerous content.",6252 "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",6253 "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."6254 ],6255 "enumDeprecated": [6256 false,6257 false,6258 false,6259 false,6260 false,6261 false,6262 false,6263 false,6264 false,6265 false,6266 false,6267 true,6268 false6269 ],6270 "enum": [6271 "HARM_CATEGORY_UNSPECIFIED",6272 "HARM_CATEGORY_DEROGATORY",6273 "HARM_CATEGORY_TOXICITY",6274 "HARM_CATEGORY_VIOLENCE",6275 "HARM_CATEGORY_SEXUAL",6276 "HARM_CATEGORY_MEDICAL",6277 "HARM_CATEGORY_DANGEROUS",6278 "HARM_CATEGORY_HARASSMENT",6279 "HARM_CATEGORY_HATE_SPEECH",6280 "HARM_CATEGORY_SEXUALLY_EXPLICIT",6281 "HARM_CATEGORY_DANGEROUS_CONTENT",6282 "HARM_CATEGORY_CIVIC_INTEGRITY",6283 "HARM_CATEGORY_JAILBREAK"6284 ]6285 }6286 },6287 "id": "SafetyRating",6288 "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.",6289 "type": "object"6290 },6291 "GroundingPassages": {6292 "type": "object",6293 "properties": {6294 "passages": {6295 "type": "array",6296 "items": {6297 "$ref": "GroundingPassage"6298 },6299 "description": "List of passages."6300 }6301 },6302 "description": "A repeated list of passages.",6303 "id": "GroundingPassages"6304 },6305 "GenerationConfig": {6306 "type": "object",6307 "properties": {6308 "_responseJsonSchema": {6309 "description": "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. Deprecated. Use `response_format` instead.",6310 "deprecated": true,6311 "type": "any"6312 },6313 "speechConfig": {6314 "description": "Optional. The speech generation config.",6315 "$ref": "SpeechConfig"6316 },6317 "enableAffectiveDialog": {6318 "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.",6319 "type": "boolean"6320 },6321 "mediaResolution": {6322 "type": "string",6323 "description": "Optional. If specified, the media resolution specified will be used.",6324 "enumDescriptions": [6325 "Media resolution has not been set.",6326 "Media resolution set to low (64 tokens).",6327 "Media resolution set to medium (256 tokens).",6328 "Media resolution set to high (zoomed reframing with 256 tokens)."6329 ],6330 "enum": [6331 "MEDIA_RESOLUTION_UNSPECIFIED",6332 "MEDIA_RESOLUTION_LOW",6333 "MEDIA_RESOLUTION_MEDIUM",6334 "MEDIA_RESOLUTION_HIGH"6335 ]6336 },6337 "thinkingConfig": {6338 "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.",6339 "$ref": "ThinkingConfig"6340 },6341 "topP": {6342 "type": "number",6343 "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests.",6344 "format": "float"6345 },6346 "topK": {6347 "format": "int32",6348 "type": "integer",6349 "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests."6350 },6351 "responseFormat": {6352 "$ref": "ResponseFormatConfig",6353 "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure."6354 },6355 "imageConfig": {6356 "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options.",6357 "$ref": "ImageConfig"6358 },6359 "responseMimeType": {6360 "type": "string",6361 "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types."6362 },6363 "responseModalities": {6364 "items": {6365 "type": "string",6366 "enumDescriptions": [6367 "Default value.",6368 "Indicates the model should return text.",6369 "Indicates the model should return images.",6370 "Indicates the model should return audio."6371 ],6372 "enum": [6373 "MODALITY_UNSPECIFIED",6374 "TEXT",6375 "IMAGE",6376 "AUDIO"6377 ]6378 },6379 "type": "array",6380 "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text."6381 },6382 "stopSequences": {6383 "type": "array",6384 "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response.",6385 "items": {6386 "type": "string"6387 }6388 },6389 "responseSchema": {6390 "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details. Deprecated. Use `response_format` instead.",6391 "deprecated": true,6392 "$ref": "Schema"6393 },6394 "maxOutputTokens": {6395 "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function.",6396 "type": "integer",6397 "format": "int32"6398 },6399 "candidateCount": {6400 "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)",6401 "type": "integer",6402 "format": "int32"6403 },6404 "presencePenalty": {6405 "format": "float",6406 "type": "number",6407 "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary."6408 },6409 "frequencyPenalty": {6410 "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.",6411 "format": "float",6412 "type": "number"6413 },6414 "audioTranscriptionConfig": {6415 "$ref": "AudioTranscriptionConfig",6416 "description": "Optional. Config for audio transcription (speech recognition)."6417 },6418 "seed": {6419 "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.",6420 "format": "int32",6421 "type": "integer"6422 },6423 "translationConfig": {6424 "$ref": "TranslationConfig",6425 "description": "Optional. Config for translation."6426 },6427 "responseJsonSchema": {6428 "type": "any",6429 "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field."6430 },6431 "logprobs": {6432 "format": "int32",6433 "type": "integer",6434 "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]."6435 },6436 "responseLogprobs": {6437 "description": "Optional. If true, export the logprobs results in response.",6438 "type": "boolean"6439 },6440 "enableEnhancedCivicAnswers": {6441 "type": "boolean",6442 "description": "Optional. Enables enhanced civic answers. It may not be available for all models."6443 },6444 "temperature": {6445 "type": "number",6446 "format": "float",6447 "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]."6448 }6449 },6450 "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.",6451 "id": "GenerationConfig"6452 },6453 "UrlContext": {6454 "description": "Tool to support URL context retrieval.",6455 "id": "UrlContext",6456 "properties": {},6457 "type": "object"6458 },6459 "GroundingChunkStringList": {6460 "properties": {6461 "values": {6462 "description": "The string values of the list.",6463 "type": "array",6464 "items": {6465 "type": "string"6466 }6467 }6468 },6469 "type": "object",6470 "description": "A list of string values.",6471 "id": "GroundingChunkStringList"6472 },6473 "FunctionResponsePart": {6474 "type": "object",6475 "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",6476 "id": "FunctionResponsePart",6477 "properties": {6478 "inlineData": {6479 "description": "Inline media bytes.",6480 "$ref": "FunctionResponseBlob"6481 }6482 }6483 },6484 "PrebuiltVoiceConfig": {6485 "id": "PrebuiltVoiceConfig",6486 "type": "object",6487 "description": "The configuration for the prebuilt speaker to use.",6488 "properties": {6489 "voiceName": {6490 "description": "Optional. The name of the preset voice to use.",6491 "type": "string"6492 }6493 }6494 },6495 "SpeakerVoiceConfig": {6496 "properties": {6497 "speaker": {6498 "description": "Required. The name of the speaker to use. Should be the same as in the prompt.",6499 "type": "string"6500 },6501 "voiceConfig": {6502 "$ref": "VoiceConfig",6503 "description": "Required. The configuration for the voice to use."6504 }6505 },6506 "id": "SpeakerVoiceConfig",6507 "description": "The configuration for a single speaker in a multi speaker setup.",6508 "type": "object"6509 },6510 "UrlContextMetadata": {6511 "id": "UrlContextMetadata",6512 "description": "Metadata related to url context retrieval tool.",6513 "properties": {6514 "urlMetadata": {6515 "type": "array",6516 "items": {6517 "$ref": "UrlMetadata"6518 },6519 "description": "List of url context."6520 }6521 },6522 "type": "object"6523 },6524 "V1mainMediaResolution": {6525 "properties": {6526 "level": {6527 "enum": [6528 "MEDIA_RESOLUTION_UNSPECIFIED",6529 "MEDIA_RESOLUTION_LOW",6530 "MEDIA_RESOLUTION_MEDIUM",6531 "MEDIA_RESOLUTION_HIGH",6532 "MEDIA_RESOLUTION_ULTRA_HIGH"6533 ],6534 "description": "The tokenization quality used for given media. for Gemini API support .",6535 "type": "string",6536 "enumDescriptions": [6537 "Media resolution has not been set.",6538 "Media resolution set to low.",6539 "Media resolution set to medium.",6540 "Media resolution set to high.",6541 "Media resolution set to ultra high."6542 ]6543 }6544 },6545 "type": "object",6546 "id": "V1mainMediaResolution",6547 "description": "Media resolution for tokenization."6548 },6549 "GenerateContentBatch": {6550 "description": "A resource representing a batch of `GenerateContent` requests.",6551 "properties": {6552 "priority": {6553 "format": "int64",6554 "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.",6555 "type": "string"6556 },6557 "state": {6558 "enum": [6559 "BATCH_STATE_UNSPECIFIED",6560 "BATCH_STATE_PENDING",6561 "BATCH_STATE_RUNNING",6562 "BATCH_STATE_SUCCEEDED",6563 "BATCH_STATE_FAILED",6564 "BATCH_STATE_CANCELLED",6565 "BATCH_STATE_EXPIRED"6566 ],6567 "enumDescriptions": [6568 "The batch state is unspecified.",6569 "The service is preparing to run the batch.",6570 "The batch is in progress.",6571 "The batch completed successfully.",6572 "The batch failed.",6573 "The batch has been cancelled.",6574 "The batch has expired."6575 ],6576 "readOnly": true,6577 "type": "string",6578 "description": "Output only. The state of the batch."6579 },6580 "model": {6581 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",6582 "type": "string"6583 },6584 "displayName": {6585 "description": "Required. The user-defined name of this batch.",6586 "type": "string"6587 },6588 "inputConfig": {6589 "$ref": "InputConfig",6590 "description": "Required. Input configuration of the instances on which batch processing are performed."6591 },6592 "name": {6593 "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",6594 "type": "string",6595 "readOnly": true6596 },6597 "createTime": {6598 "type": "string",6599 "format": "google-datetime",6600 "readOnly": true,6601 "description": "Output only. The time at which the batch was created."6602 },6603 "updateTime": {6604 "type": "string",6605 "format": "google-datetime",6606 "description": "Output only. The time at which the batch was last updated.",6607 "readOnly": true6608 },6609 "output": {6610 "$ref": "GenerateContentBatchOutput",6611 "description": "Output only. The output of the batch request.",6612 "readOnly": true6613 },6614 "endTime": {6615 "type": "string",6616 "format": "google-datetime",6617 "readOnly": true,6618 "description": "Output only. The time at which the batch processing completed."6619 },6620 "batchStats": {6621 "$ref": "BatchStats",6622 "description": "Output only. Stats about the batch.",6623 "readOnly": true6624 }6625 },6626 "type": "object",6627 "id": "GenerateContentBatch"6628 },6629 "EmbedContentConfig": {6630 "properties": {6631 "audioTrackExtraction": {6632 "type": "boolean",6633 "description": "Optional. Whether to extract audio from video content."6634 },6635 "documentOcr": {6636 "description": "Optional. Whether to enable OCR for document content.",6637 "type": "boolean"6638 },6639 "outputDimensionality": {6640 "format": "int32",6641 "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.",6642 "type": "integer"6643 },6644 "taskType": {6645 "enum": [6646 "TASK_TYPE_UNSPECIFIED",6647 "RETRIEVAL_QUERY",6648 "RETRIEVAL_DOCUMENT",6649 "SEMANTIC_SIMILARITY",6650 "CLASSIFICATION",6651 "CLUSTERING",6652 "QUESTION_ANSWERING",6653 "FACT_VERIFICATION",6654 "CODE_RETRIEVAL_QUERY"6655 ],6656 "description": "Optional. The task type of the embedding.",6657 "type": "string",6658 "enumDescriptions": [6659 "Unset value, which will default to one of the other enum values.",6660 "Specifies the given text is a query in a search/retrieval setting.",6661 "Specifies the given text is a document from the corpus being searched.",6662 "Specifies the given text will be used for STS.",6663 "Specifies that the given text will be classified.",6664 "Specifies that the embeddings will be used for clustering.",6665 "Specifies that the given text will be used for question answering.",6666 "Specifies that the given text will be used for fact verification.",6667 "Specifies that the given text will be used for code retrieval."6668 ]6669 },6670 "title": {6671 "type": "string",6672 "description": "Optional. The title for the text."6673 },6674 "autoTruncate": {6675 "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.",6676 "type": "boolean"6677 }6678 },6679 "description": "Configurations for the EmbedContent request.",6680 "id": "EmbedContentConfig",6681 "type": "object"6682 },6683 "CitationSource": {6684 "properties": {6685 "uri": {6686 "description": "Optional. URI that is attributed as a source for a portion of the text.",6687 "type": "string"6688 },6689 "endIndex": {6690 "type": "integer",6691 "description": "Optional. End of the attributed segment, exclusive.",6692 "format": "int32"6693 },6694 "startIndex": {6695 "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",6696 "type": "integer",6697 "format": "int32"6698 },6699 "license": {6700 "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.",6701 "type": "string"6702 }6703 },6704 "type": "object",6705 "description": "A citation to a source for a portion of a specific response.",6706 "id": "CitationSource"6707 },6708 "CountMessageTokensResponse": {6709 "id": "CountMessageTokensResponse",6710 "type": "object",6711 "properties": {6712 "tokenCount": {6713 "type": "integer",6714 "format": "int32",6715 "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative."6716 }6717 },6718 "description": "A response from `CountMessageTokens`. It returns the model's `token_count` for the `prompt`."6719 },6720 "TextPrompt": {6721 "type": "object",6722 "properties": {6723 "text": {6724 "description": "Required. The prompt text.",6725 "type": "string"6726 }6727 },6728 "description": "Text given to the model as a prompt. The Model will use this TextPrompt to Generate a text completion.",6729 "id": "TextPrompt"6730 },6731 "ReviewSnippet": {6732 "id": "ReviewSnippet",6733 "properties": {6734 "title": {6735 "type": "string",6736 "description": "Title of the review."6737 },6738 "googleMapsUri": {6739 "type": "string",6740 "description": "A link that corresponds to the user review on Google Maps."6741 },6742 "reviewId": {6743 "description": "The ID of the review snippet.",6744 "type": "string"6745 }6746 },6747 "type": "object",6748 "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps."6749 },6750 "ListOperationsResponse": {6751 "type": "object",6752 "id": "ListOperationsResponse",6753 "properties": {6754 "unreachable": {6755 "items": {6756 "type": "string"6757 },6758 "type": "array",6759 "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations."6760 },6761 "nextPageToken": {6762 "type": "string",6763 "description": "The standard List next-page token."6764 },6765 "operations": {6766 "items": {6767 "$ref": "Operation"6768 },6769 "description": "A list of operations that matches the specified filter in the request.",6770 "type": "array"6771 }6772 },6773 "description": "The response message for Operations.ListOperations."6774 },6775 "GenerateAnswerResponse": {6776 "description": "Response from the model for a grounded answer.",6777 "id": "GenerateAnswerResponse",6778 "properties": {6779 "answer": {6780 "$ref": "Candidate",6781 "description": "Candidate answer from the model. Note: The model *always* attempts to provide a grounded answer, even when the answer is unlikely to be answerable from the given passages. In that case, a low-quality or ungrounded answer may be provided, along with a low `answerable_probability`."6782 },6783 "answerableProbability": {6784 "readOnly": true,6785 "format": "float",6786 "type": "number",6787 "description": "Output only. The model's estimate of the probability that its answer is correct and grounded in the input passages. A low `answerable_probability` indicates that the answer might not be grounded in the sources. When `answerable_probability` is low, you may want to: * Display a message to the effect of \"We couldn’t answer that question\" to the user. * Fall back to a general-purpose LLM that answers the question from world knowledge. The threshold and nature of such fallbacks will depend on individual use cases. `0.5` is a good starting threshold."6788 },6789 "inputFeedback": {6790 "description": "Output only. Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question. The input data can be one or more of the following: - Question specified by the last entry in `GenerateAnswerRequest.content` - Conversation history specified by the other entries in `GenerateAnswerRequest.content` - Grounding sources (`GenerateAnswerRequest.semantic_retriever` or `GenerateAnswerRequest.inline_passages`)",6791 "readOnly": true,6792 "$ref": "InputFeedback"6793 }6794 },6795 "type": "object"6796 },6797 "AutomaticActivityDetection": {6798 "type": "object",6799 "description": "Configures automatic detection of activity.",6800 "properties": {6801 "prefixPaddingMs": {6802 "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives.",6803 "type": "integer",6804 "format": "int32"6805 },6806 "disabled": {6807 "type": "boolean",6808 "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals."6809 },6810 "silenceDurationMs": {6811 "type": "integer",6812 "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.",6813 "format": "int32"6814 },6815 "startOfSpeechSensitivity": {6816 "enum": [6817 "START_SENSITIVITY_UNSPECIFIED",6818 "START_SENSITIVITY_HIGH",6819 "START_SENSITIVITY_LOW"6820 ],6821 "description": "Optional. Determines how likely speech is to be detected.",6822 "enumDescriptions": [6823 "The default is START_SENSITIVITY_HIGH.",6824 "Automatic detection will detect the start of speech more often.",6825 "Automatic detection will detect the start of speech less often."6826 ],6827 "type": "string"6828 },6829 "endOfSpeechSensitivity": {6830 "description": "Optional. Determines how likely detected speech is ended.",6831 "enum": [6832 "END_SENSITIVITY_UNSPECIFIED",6833 "END_SENSITIVITY_HIGH",6834 "END_SENSITIVITY_LOW"6835 ],6836 "enumDescriptions": [6837 "The default is END_SENSITIVITY_HIGH.",6838 "Automatic detection ends speech more often.",6839 "Automatic detection ends speech less often."6840 ],6841 "type": "string"6842 }6843 },6844 "id": "AutomaticActivityDetection"6845 },6846 "GenerateTextRequest": {6847 "type": "object",6848 "properties": {6849 "candidateCount": {6850 "format": "int32",6851 "description": "Optional. Number of generated responses to return. This value must be between [1, 8], inclusive. If unset, this will default to 1.",6852 "type": "integer"6853 },6854 "prompt": {6855 "description": "Required. The free-form input text given to the model as a prompt. Given a prompt, the model will generate a TextCompletion response it predicts as the completion of the input text.",6856 "$ref": "TextPrompt"6857 },6858 "stopSequences": {6859 "items": {6860 "type": "string"6861 },6862 "type": "array",6863 "description": "The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a stop sequence. The stop sequence will not be included as part of the response."6864 },6865 "temperature": {6866 "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned the `getModel` function. Values can range from [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model.",6867 "format": "float",6868 "type": "number"6869 },6870 "topP": {6871 "type": "number",6872 "format": "float",6873 "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits number of tokens based on the cumulative probability. Note: The default value varies by model, see the `Model.top_p` attribute of the `Model` returned the `getModel` function."6874 },6875 "topK": {6876 "type": "integer",6877 "format": "int32",6878 "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Defaults to 40. Note: The default value varies by model, see the `Model.top_k` attribute of the `Model` returned the `getModel` function."6879 },6880 "safetySettings": {6881 "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. that will be enforced on the `GenerateTextRequest.prompt` and `GenerateTextResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any prompts and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_DEROGATORY, HARM_CATEGORY_TOXICITY, HARM_CATEGORY_VIOLENCE, HARM_CATEGORY_SEXUAL, HARM_CATEGORY_MEDICAL, HARM_CATEGORY_DANGEROUS are supported in text service.",6882 "items": {6883 "$ref": "SafetySetting"6884 },6885 "type": "array"6886 },6887 "maxOutputTokens": {6888 "format": "int32",6889 "type": "integer",6890 "description": "Optional. The maximum number of tokens to include in a candidate. If unset, this will default to output_token_limit specified in the `Model` specification."6891 }6892 },6893 "description": "Request to generate a text completion response from the model.",6894 "id": "GenerateTextRequest"6895 },6896 "PredictResponse": {6897 "id": "PredictResponse",6898 "properties": {6899 "predictions": {6900 "description": "The outputs of the prediction call.",6901 "items": {6902 "type": "any"6903 },6904 "type": "array"6905 }6906 },6907 "type": "object",6908 "description": "Response message for [PredictionService.Predict]."6909 },6910 "CachedContentUsageMetadata": {6911 "description": "Metadata on the usage of the cached content.",6912 "properties": {6913 "totalTokenCount": {6914 "description": "Total number of tokens that the cached content consumes.",6915 "format": "int32",6916 "type": "integer"6917 }6918 },6919 "id": "CachedContentUsageMetadata",6920 "type": "object"6921 },6922 "MessagePrompt": {6923 "id": "MessagePrompt",6924 "type": "object",6925 "description": "All of the structured input text passed to the model as a prompt. A `MessagePrompt` contains a structured set of fields that provide context for the conversation, examples of user input/model output message pairs that prime the model to respond in different ways, and the conversation history or list of messages representing the alternating turns of the conversation between the user and the model.",6926 "properties": {6927 "context": {6928 "type": "string",6929 "description": "Optional. Text that should be provided to the model first to ground the response. If not empty, this `context` will be given to the model first before the `examples` and `messages`. When using a `context` be sure to provide it with every request to maintain continuity. This field can be a description of your prompt to the model to help provide context and guide the responses. Examples: \"Translate the phrase from English to French.\" or \"Given a statement, classify the sentiment as happy, sad or neutral.\" Anything included in this field will take precedence over message history if the total input size exceeds the model's `input_token_limit` and the input request is truncated."6930 },6931 "examples": {6932 "items": {6933 "$ref": "Example"6934 },6935 "type": "array",6936 "description": "Optional. Examples of what the model should generate. This includes both user input and the response that the model should emulate. These `examples` are treated identically to conversation messages except that they take precedence over the history in `messages`: If the total input size exceeds the model's `input_token_limit` the input will be truncated. Items will be dropped from `messages` before `examples`."6937 },6938 "messages": {6939 "description": "Required. A snapshot of the recent conversation history sorted chronologically. Turns alternate between two authors. If the total input size exceeds the model's `input_token_limit` the input will be truncated: The oldest items will be dropped from `messages`.",6940 "type": "array",6941 "items": {6942 "$ref": "Message"6943 }6944 }6945 }6946 },6947 "RegisterFilesResponse": {6948 "description": "Response for `RegisterFiles`.",6949 "properties": {6950 "files": {6951 "type": "array",6952 "items": {6953 "$ref": "File"6954 },6955 "description": "The registered files to be used when calling GenerateContent."6956 }6957 },6958 "id": "RegisterFilesResponse",6959 "type": "object"6960 },6961 "BatchGenerateContentRequest": {6962 "description": "Request for a `BatchGenerateContent` operation.",6963 "properties": {6964 "batch": {6965 "$ref": "GenerateContentBatch",6966 "description": "Required. The batch to create."6967 }6968 },6969 "id": "BatchGenerateContentRequest",6970 "type": "object"6971 },6972 "ListGeneratedFilesResponse": {6973 "properties": {6974 "nextPageToken": {6975 "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call.",6976 "type": "string"6977 },6978 "generatedFiles": {6979 "items": {6980 "$ref": "GeneratedFile"6981 },6982 "description": "The list of `GeneratedFile`s.",6983 "type": "array"6984 }6985 },6986 "type": "object",6987 "description": "Response for `ListGeneratedFiles`.",6988 "id": "ListGeneratedFilesResponse"6989 },6990 "UploadEnvironmentFileRequest": {6991 "properties": {6992 "overwrite": {6993 "type": "boolean",6994 "description": "Optional. Whether to overwrite the destination file if it already exists."6995 },6996 "extract": {6997 "type": "boolean",6998 "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`."6999 }7000 },7001 "description": "Request for `UploadEnvironmentFile`.",7002 "id": "UploadEnvironmentFileRequest",7003 "type": "object"7004 },7005 "Dataset": {7006 "type": "object",7007 "id": "Dataset",7008 "properties": {7009 "examples": {7010 "$ref": "TuningExamples",7011 "description": "Optional. Inline examples with simple input/output text."7012 }7013 },7014 "description": "Dataset for training or validation."7015 },7016 "GoogleSearch": {7017 "type": "object",7018 "id": "GoogleSearch",7019 "properties": {7020 "timeRangeFilter": {7021 "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).",7022 "$ref": "Interval"7023 },7024 "searchTypes": {7025 "$ref": "SearchTypes",7026 "description": "Optional. The set of search types to enable. If not set, web search is enabled by default."7027 }7028 },7029 "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."7030 },7031 "AttributionSourceId": {7032 "type": "object",7033 "id": "AttributionSourceId",7034 "description": "Identifier for the source contributing to this attribution.",7035 "properties": {7036 "groundingPassage": {7037 "$ref": "GroundingPassageId",7038 "description": "Identifier for an inline passage."7039 },7040 "semanticRetrieverChunk": {7041 "description": "Identifier for a `Chunk` fetched via Semantic Retriever.",7042 "$ref": "SemanticRetrieverChunk"7043 }7044 }7045 },7046 "InlinedEmbedContentRequests": {7047 "description": "The requests to be processed in the batch if provided as part of the batch creation request.",7048 "id": "InlinedEmbedContentRequests",7049 "type": "object",7050 "properties": {7051 "requests": {7052 "description": "Required. The requests to be processed in the batch.",7053 "items": {7054 "$ref": "InlinedEmbedContentRequest"7055 },7056 "type": "array"7057 }7058 }7059 },7060 "EmbedContentRequest": {7061 "properties": {7062 "outputDimensionality": {7063 "deprecated": true,7064 "format": "int32",7065 "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).",7066 "type": "integer"7067 },7068 "content": {7069 "$ref": "Content",7070 "description": "Required. The content to embed. Only the `parts.text` fields will be counted."7071 },7072 "title": {7073 "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.",7074 "deprecated": true,7075 "type": "string"7076 },7077 "model": {7078 "type": "string",7079 "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`"7080 },7081 "embedContentConfig": {7082 "$ref": "EmbedContentConfig",7083 "description": "Optional. Configuration for the EmbedContent request."7084 },7085 "taskType": {7086 "deprecated": true,7087 "enumDescriptions": [7088 "Unset value, which will default to one of the other enum values.",7089 "Specifies the given text is a query in a search/retrieval setting.",7090 "Specifies the given text is a document from the corpus being searched.",7091 "Specifies the given text will be used for STS.",7092 "Specifies that the given text will be classified.",7093 "Specifies that the embeddings will be used for clustering.",7094 "Specifies that the given text will be used for question answering.",7095 "Specifies that the given text will be used for fact verification.",7096 "Specifies that the given text will be used for code retrieval."7097 ],7098 "type": "string",7099 "enum": [7100 "TASK_TYPE_UNSPECIFIED",7101 "RETRIEVAL_QUERY",7102 "RETRIEVAL_DOCUMENT",7103 "SEMANTIC_SIMILARITY",7104 "CLASSIFICATION",7105 "CLUSTERING",7106 "QUESTION_ANSWERING",7107 "FACT_VERIFICATION",7108 "CODE_RETRIEVAL_QUERY"7109 ],7110 "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`)."7111 }7112 },7113 "description": "Request containing the `Content` for the model to embed.",7114 "id": "EmbedContentRequest",7115 "type": "object"7116 },7117 "InlinedResponses": {7118 "type": "object",7119 "id": "InlinedResponses",7120 "description": "The responses to the requests in the batch.",7121 "properties": {7122 "inlinedResponses": {7123 "readOnly": true,7124 "type": "array",7125 "description": "Output only. The responses to the requests in the batch.",7126 "items": {7127 "$ref": "InlinedResponse"7128 }7129 }7130 }7131 },7132 "Maps": {7133 "id": "Maps",7134 "properties": {7135 "placeId": {7136 "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.",7137 "type": "string"7138 },7139 "title": {7140 "type": "string",7141 "description": "Title of the place."7142 },7143 "uri": {7144 "type": "string",7145 "description": "URI reference of the place."7146 },7147 "placeAnswerSources": {7148 "description": "Sources that provide answers about the features of a given place in Google Maps.",7149 "$ref": "PlaceAnswerSources"7150 },7151 "text": {7152 "type": "string",7153 "description": "Text description of the place answer."7154 }7155 },7156 "type": "object",7157 "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place."7158 },7159 "CachedContent": {7160 "properties": {7161 "contents": {7162 "description": "Optional. Input only. Immutable. The content to cache.",7163 "items": {7164 "$ref": "Content"7165 },7166 "type": "array"7167 },7168 "usageMetadata": {7169 "description": "Output only. Metadata on the usage of the cached content.",7170 "$ref": "CachedContentUsageMetadata",7171 "readOnly": true7172 },7173 "ttl": {7174 "description": "Input only. New TTL for this resource, input only.",7175 "type": "string",7176 "format": "google-duration"7177 },7178 "expireTime": {7179 "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.",7180 "type": "string",7181 "format": "google-datetime"7182 },7183 "model": {7184 "type": "string",7185 "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`"7186 },7187 "tools": {7188 "type": "array",7189 "items": {7190 "$ref": "Tool"7191 },7192 "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response"7193 },7194 "displayName": {7195 "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.",7196 "type": "string"7197 },7198 "toolConfig": {7199 "$ref": "ToolConfig",7200 "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools."7201 },7202 "systemInstruction": {7203 "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.",7204 "$ref": "Content"7205 },7206 "updateTime": {7207 "format": "google-datetime",7208 "type": "string",7209 "description": "Output only. When the cache entry was last updated in UTC time.",7210 "readOnly": true7211 },7212 "name": {7213 "readOnly": true,7214 "type": "string",7215 "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`"7216 },7217 "createTime": {7218 "type": "string",7219 "readOnly": true,7220 "format": "google-datetime",7221 "description": "Output only. Creation time of the cache entry."7222 }7223 },7224 "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for.",7225 "type": "object",7226 "id": "CachedContent"7227 },7228 "ResponseFormatConfig": {7229 "id": "ResponseFormatConfig",7230 "properties": {7231 "audio": {7232 "description": "Optional. Audio output format configuration.",7233 "$ref": "AudioResponseFormat"7234 },7235 "image": {7236 "description": "Optional. Image output format configuration.",7237 "$ref": "ImageResponseFormat"7238 },7239 "text": {7240 "$ref": "TextResponseFormat",7241 "description": "Optional. Text output format configuration."7242 }7243 },7244 "type": "object",7245 "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality."7246 },7247 "AudioResponseFormat": {7248 "description": "Configuration for audio output format.",7249 "properties": {7250 "sampleRate": {7251 "type": "integer",7252 "description": "Optional. Sample rate in Hz.",7253 "format": "int32"7254 },7255 "delivery": {7256 "type": "string",7257 "enumDescriptions": [7258 "Default value. This value is unused.",7259 "Audio data is returned inline in the response.",7260 "Audio data is returned as a URI."7261 ],7262 "description": "Optional. The delivery mode for the audio output.",7263 "enum": [7264 "DELIVERY_UNSPECIFIED",7265 "INLINE",7266 "URI"7267 ]7268 },7269 "bitRate": {7270 "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).",7271 "type": "integer",7272 "format": "int32"7273 },7274 "mimeType": {7275 "enum": [7276 "MIME_TYPE_UNSPECIFIED",7277 "AUDIO_MP3",7278 "AUDIO_OGG_OPUS",7279 "AUDIO_L16",7280 "AUDIO_WAV",7281 "AUDIO_ALAW",7282 "AUDIO_MULAW"7283 ],7284 "type": "string",7285 "description": "Optional. The MIME type of the audio output.",7286 "enumDescriptions": [7287 "Default value. This value is unused.",7288 "MP3 audio format.",7289 "OGG Opus audio format.",7290 "Raw PCM (L16) audio format.",7291 "WAV audio format.",7292 "A-law audio format.",7293 "Mu-law audio format."7294 ]7295 }7296 },7297 "type": "object",7298 "id": "AudioResponseFormat"7299 },7300 "PlaceAnswerSources": {7301 "properties": {7302 "reviewSnippets": {7303 "type": "array",7304 "items": {7305 "$ref": "ReviewSnippet"7306 },7307 "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps."7308 }7309 },7310 "type": "object",7311 "id": "PlaceAnswerSources",7312 "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources."7313 },7314 "CountTextTokensRequest": {7315 "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",7316 "properties": {7317 "prompt": {7318 "description": "Required. The free-form input text given to the model as a prompt.",7319 "$ref": "TextPrompt"7320 }7321 },7322 "type": "object",7323 "id": "CountTextTokensRequest"7324 },7325 "TranslationConfig": {7326 "id": "TranslationConfig",7327 "description": "Config for translation features.",7328 "type": "object",7329 "properties": {7330 "targetLanguageCode": {7331 "type": "string",7332 "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."7333 },7334 "echoTargetLanguage": {7335 "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language.",7336 "type": "boolean"7337 }7338 }7339 },7340 "AudioTranscriptionConfig": {7341 "properties": {7342 "languageHints": {7343 "description": "Optional. Specifies one or more languages in the audio.",7344 "deprecated": true,7345 "$ref": "LanguageHints"7346 },7347 "languageCodes": {7348 "items": {7349 "type": "string"7350 },7351 "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.",7352 "type": "array"7353 },7354 "languageAuto": {7355 "$ref": "LanguageAuto",7356 "deprecated": true,7357 "description": "Optional. The model will detect the language automatically."7358 },7359 "wordTimestamp": {7360 "type": "boolean",7361 "description": "Optional. Configures word-level timestamp generation."7362 },7363 "diarization": {7364 "type": "boolean",7365 "description": "Optional. Configures speaker diarization."7366 },7367 "adaptationPhrases": {7368 "items": {7369 "type": "string"7370 },7371 "type": "array",7372 "deprecated": true,7373 "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms."7374 },7375 "mode": {7376 "type": "string",7377 "enumDescriptions": [7378 "Unspecified transcription mode.",7379 "Verbatim transcription mode.",7380 "Smart transcription mode."7381 ],7382 "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",7383 "enum": [7384 "MODE_UNSPECIFIED",7385 "VERBATIM",7386 "SMART"7387 ]7388 },7389 "customVocabulary": {7390 "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).",7391 "type": "array",7392 "items": {7393 "type": "string"7394 }7395 }7396 },7397 "type": "object",7398 "description": "The audio transcription configuration.",7399 "id": "AudioTranscriptionConfig"7400 },7401 "ChunkingConfig": {7402 "properties": {7403 "whiteSpaceConfig": {7404 "description": "White space chunking configuration.",7405 "$ref": "WhiteSpaceConfig"7406 }7407 },7408 "id": "ChunkingConfig",7409 "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto",7410 "type": "object"7411 },7412 "GenerateMessageRequest": {7413 "description": "Request to generate a message response from the model.",7414 "id": "GenerateMessageRequest",7415 "type": "object",7416 "properties": {7417 "topP": {7418 "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`.",7419 "type": "number",7420 "format": "float"7421 },7422 "topK": {7423 "type": "integer",7424 "format": "int32",7425 "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens."7426 },7427 "prompt": {7428 "description": "Required. The structured textual input given to the model as a prompt. Given a prompt, the model will return what it predicts is the next message in the discussion.",7429 "$ref": "MessagePrompt"7430 },7431 "candidateCount": {7432 "format": "int32",7433 "description": "Optional. The number of generated response messages to return. This value must be between `[1, 8]`, inclusive. If unset, this will default to `1`.",7434 "type": "integer"7435 },7436 "temperature": {7437 "format": "float",7438 "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model.",7439 "type": "number"7440 }7441 }7442 },7443 "ListEnvironmentsResponse": {7444 "id": "ListEnvironmentsResponse",7445 "description": "Response for `ListEnvironments`.",7446 "type": "object",7447 "properties": {7448 "environments": {7449 "items": {7450 "$ref": "Environment"7451 },7452 "description": "Environments belonging to the provided project.",7453 "type": "array"7454 },7455 "nextPageToken": {7456 "description": "Pagination token.",7457 "type": "string"7458 }7459 }7460 },7461 "SemanticRetrieverConfig": {7462 "description": "Configuration for retrieving grounding content from a `Corpus` or `Document` created using the Semantic Retriever API.",7463 "id": "SemanticRetrieverConfig",7464 "properties": {7465 "maxChunksCount": {7466 "type": "integer",7467 "format": "int32",7468 "description": "Optional. Maximum number of relevant `Chunk`s to retrieve."7469 },7470 "source": {7471 "description": "Required. Name of the resource for retrieval. Example: `corpora/123` or `corpora/123/documents/abc`.",7472 "type": "string"7473 },7474 "minimumRelevanceScore": {7475 "format": "float",7476 "type": "number",7477 "description": "Optional. Minimum relevance score for retrieved relevant `Chunk`s."7478 },7479 "metadataFilters": {7480 "type": "array",7481 "items": {7482 "$ref": "MetadataFilter"7483 },7484 "description": "Optional. Filters for selecting `Document`s and/or `Chunk`s from the resource."7485 },7486 "query": {7487 "description": "Required. Query to use for matching `Chunk`s in the given resource by similarity.",7488 "$ref": "Content"7489 }7490 },7491 "type": "object"7492 },7493 "GroundingMetadata": {7494 "description": "Metadata returned to client when grounding is enabled.",7495 "id": "GroundingMetadata",7496 "properties": {7497 "googleMapsWidgetContextToken": {7498 "type": "string",7499 "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled."7500 },7501 "retrievalMetadata": {7502 "description": "Metadata related to retrieval in the grounding flow.",7503 "$ref": "RetrievalMetadata"7504 },7505 "imageSearchQueries": {7506 "type": "array",7507 "description": "Image search queries used for grounding.",7508 "items": {7509 "type": "string"7510 }7511 },7512 "webSearchQueries": {7513 "description": "Web search queries for the following-up web search.",7514 "type": "array",7515 "items": {7516 "type": "string"7517 }7518 },7519 "groundingChunks": {7520 "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.",7521 "type": "array",7522 "items": {7523 "$ref": "GroundingChunk"7524 }7525 },7526 "groundingSupports": {7527 "type": "array",7528 "items": {7529 "$ref": "GoogleAiGenerativelanguageV1betaGroundingSupport"7530 },7531 "description": "List of grounding support."7532 },7533 "searchEntryPoint": {7534 "description": "Optional. Google search entry for the following-up web searches.",7535 "$ref": "SearchEntryPoint"7536 }7537 },7538 "type": "object"7539 },7540 "DiffUploadResponse": {7541 "type": "object",7542 "id": "DiffUploadResponse",7543 "description": "Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",7544 "properties": {7545 "objectVersion": {7546 "type": "string",7547 "description": "The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload."7548 },7549 "originalObject": {7550 "$ref": "CompositeMedia",7551 "description": "The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification."7552 }7553 }7554 },7555 "GoogleSearchRetrieval": {7556 "properties": {7557 "dynamicRetrievalConfig": {7558 "description": "Specifies the dynamic retrieval configuration for the given source.",7559 "$ref": "DynamicRetrievalConfig"7560 }7561 },7562 "id": "GoogleSearchRetrieval",7563 "type": "object",7564 "description": "Tool to retrieve public web data for grounding, powered by Google."7565 },7566 "BatchStats": {7567 "id": "BatchStats",7568 "description": "Stats about the batch.",7569 "type": "object",7570 "properties": {7571 "pendingRequestCount": {7572 "description": "Output only. The number of requests that are still pending processing.",7573 "readOnly": true,7574 "format": "int64",7575 "type": "string"7576 },7577 "successfulRequestCount": {7578 "format": "int64",7579 "type": "string",7580 "description": "Output only. The number of requests that were successfully processed.",7581 "readOnly": true7582 },7583 "requestCount": {7584 "readOnly": true,7585 "description": "Output only. The number of requests in the batch.",7586 "type": "string",7587 "format": "int64"7588 },7589 "failedRequestCount": {7590 "format": "int64",7591 "description": "Output only. The number of requests that failed to be processed.",7592 "readOnly": true,7593 "type": "string"7594 }7595 }7596 },7597 "FileData": {7598 "type": "object",7599 "description": "URI based data.",7600 "id": "FileData",7601 "properties": {7602 "fileUri": {7603 "description": "Required. URI.",7604 "type": "string"7605 },7606 "mimeType": {7607 "type": "string",7608 "description": "Optional. The IANA standard MIME type of the source data."7609 },7610 "displayName": {7611 "type": "string",7612 "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`."7613 }7614 }7615 },7616 "Embedding": {7617 "id": "Embedding",7618 "description": "A list of floats representing the embedding.",7619 "properties": {7620 "value": {7621 "type": "array",7622 "items": {7623 "format": "float",7624 "type": "number"7625 },7626 "description": "The embedding values."7627 }7628 },7629 "type": "object"7630 },7631 "InputEmbedContentConfig": {7632 "id": "InputEmbedContentConfig",7633 "description": "Configures the input to the batch request.",7634 "type": "object",7635 "properties": {7636 "fileName": {7637 "type": "string",7638 "description": "The name of the `File` containing the input requests."7639 },7640 "requests": {7641 "$ref": "InlinedEmbedContentRequests",7642 "description": "The requests to be processed in the batch."7643 }7644 }7645 },7646 "WebSearch": {7647 "id": "WebSearch",7648 "type": "object",7649 "properties": {},7650 "description": "Standard web search for grounding and related configurations."7651 },7652 "BatchEmbedTextResponse": {7653 "description": "The response to a EmbedTextRequest.",7654 "type": "object",7655 "properties": {7656 "embeddings": {7657 "type": "array",7658 "readOnly": true,7659 "description": "Output only. The embeddings generated from the input text.",7660 "items": {7661 "$ref": "Embedding"7662 }7663 }7664 },7665 "id": "BatchEmbedTextResponse"7666 },7667 "AsyncBatchEmbedContentRequest": {7668 "description": "Request for an `AsyncBatchEmbedContent` operation.",7669 "type": "object",7670 "properties": {7671 "batch": {7672 "$ref": "EmbedContentBatch",7673 "description": "Required. The batch to create."7674 }7675 },7676 "id": "AsyncBatchEmbedContentRequest"7677 },7678 "Schema": {7679 "type": "object",7680 "id": "Schema",7681 "properties": {7682 "propertyOrdering": {7683 "items": {7684 "type": "string"7685 },7686 "type": "array",7687 "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response."7688 },7689 "default": {7690 "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors.",7691 "type": "any"7692 },7693 "maxProperties": {7694 "description": "Optional. Maximum number of the properties for Type.OBJECT.",7695 "type": "string",7696 "format": "int64"7697 },7698 "maxItems": {7699 "description": "Optional. Maximum number of the elements for Type.ARRAY.",7700 "format": "int64",7701 "type": "string"7702 },7703 "title": {7704 "description": "Optional. The title of the schema.",7705 "type": "string"7706 },7707 "properties": {7708 "description": "Optional. Properties of Type.OBJECT.",7709 "additionalProperties": {7710 "$ref": "Schema"7711 },7712 "type": "object"7713 },7714 "minimum": {7715 "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER",7716 "format": "double",7717 "type": "number"7718 },7719 "minProperties": {7720 "description": "Optional. Minimum number of the properties for Type.OBJECT.",7721 "format": "int64",7722 "type": "string"7723 },7724 "example": {7725 "type": "any",7726 "description": "Optional. Example of the object. Will only populated when the object is the root."7727 },7728 "maxLength": {7729 "format": "int64",7730 "description": "Optional. Maximum length of the Type.STRING",7731 "type": "string"7732 },7733 "enum": {7734 "type": "array",7735 "items": {7736 "type": "string"7737 },7738 "description": "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:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}"7739 },7740 "anyOf": {7741 "items": {7742 "$ref": "Schema"7743 },7744 "type": "array",7745 "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list."7746 },7747 "maximum": {7748 "type": "number",7749 "format": "double",7750 "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER"7751 },7752 "pattern": {7753 "type": "string",7754 "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression."7755 },7756 "items": {7757 "description": "Optional. Schema of the elements of Type.ARRAY.",7758 "$ref": "Schema"7759 },7760 "minItems": {7761 "description": "Optional. Minimum number of the elements for Type.ARRAY.",7762 "type": "string",7763 "format": "int64"7764 },7765 "nullable": {7766 "type": "boolean",7767 "description": "Optional. Indicates if the value may be null."7768 },7769 "description": {7770 "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.",7771 "type": "string"7772 },7773 "format": {7774 "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.",7775 "type": "string"7776 },7777 "minLength": {7778 "type": "string",7779 "format": "int64",7780 "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING"7781 },7782 "type": {7783 "type": "string",7784 "description": "Required. Data type.",7785 "enumDescriptions": [7786 "Not specified, should not be used.",7787 "String type.",7788 "Number type.",7789 "Integer type.",7790 "Boolean type.",7791 "Array type.",7792 "Object type.",7793 "Null type."7794 ],7795 "enum": [7796 "TYPE_UNSPECIFIED",7797 "STRING",7798 "NUMBER",7799 "INTEGER",7800 "BOOLEAN",7801 "ARRAY",7802 "OBJECT",7803 "NULL"7804 ]7805 },7806 "required": {7807 "type": "array",7808 "description": "Optional. Required properties of Type.OBJECT.",7809 "items": {7810 "type": "string"7811 }7812 }7813 },7814 "description": "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)."7815 },7816 "SearchEntryPoint": {7817 "properties": {7818 "renderedContent": {7819 "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.",7820 "type": "string"7821 },7822 "sdkBlob": {7823 "type": "string",7824 "description": "Optional. Base64 encoded JSON representing array of tuple.",7825 "format": "byte"7826 }7827 },7828 "id": "SearchEntryPoint",7829 "type": "object",7830 "description": "Google search entry point."7831 },7832 "TunedModelSource": {7833 "description": "Tuned model as a source for training a new model.",7834 "type": "object",7835 "properties": {7836 "tunedModel": {7837 "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`",7838 "type": "string"7839 },7840 "baseModel": {7841 "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`",7842 "readOnly": true,7843 "type": "string"7844 }7845 },7846 "id": "TunedModelSource"7847 },7848 "TuningTask": {7849 "properties": {7850 "trainingData": {7851 "description": "Required. Input only. Immutable. The model training data.",7852 "$ref": "Dataset"7853 },7854 "snapshots": {7855 "items": {7856 "$ref": "TuningSnapshot"7857 },7858 "readOnly": true,7859 "description": "Output only. Metrics collected during tuning.",7860 "type": "array"7861 },7862 "completeTime": {7863 "readOnly": true,7864 "description": "Output only. The timestamp when tuning this model completed.",7865 "type": "string",7866 "format": "google-datetime"7867 },7868 "hyperparameters": {7869 "$ref": "Hyperparameters",7870 "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used."7871 },7872 "startTime": {7873 "format": "google-datetime",7874 "readOnly": true,7875 "description": "Output only. The timestamp when tuning this model started.",7876 "type": "string"7877 }7878 },7879 "id": "TuningTask",7880 "type": "object",7881 "description": "Tuning tasks that create tuned models."7882 },7883 "SpeechConfig": {7884 "description": "Config for speech generation and transcription.",7885 "properties": {7886 "multiSpeakerVoiceConfig": {7887 "$ref": "MultiSpeakerVoiceConfig",7888 "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field."7889 },7890 "voiceConfig": {7891 "$ref": "VoiceConfig",7892 "description": "The configuration in case of single-voice output."7893 },7894 "languageCode": {7895 "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`.",7896 "type": "string"7897 }7898 },7899 "id": "SpeechConfig",7900 "type": "object"7901 },7902 "ListFileSearchStoresResponse": {7903 "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.",7904 "type": "object",7905 "id": "ListFileSearchStoresResponse",7906 "properties": {7907 "fileSearchStores": {7908 "description": "The returned rag_stores.",7909 "type": "array",7910 "items": {7911 "$ref": "FileSearchStore"7912 }7913 },7914 "nextPageToken": {7915 "type": "string",7916 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."7917 }7918 }7919 },7920 "GroundingPassageId": {7921 "properties": {7922 "passageId": {7923 "type": "string",7924 "readOnly": true,7925 "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`."7926 },7927 "partIndex": {7928 "readOnly": true,7929 "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",7930 "format": "int32",7931 "type": "integer"7932 }7933 },7934 "type": "object",7935 "id": "GroundingPassageId",7936 "description": "Identifier for a part within a `GroundingPassage`."7937 },7938 "GroundingAttribution": {7939 "id": "GroundingAttribution",7940 "properties": {7941 "content": {7942 "$ref": "Content",7943 "description": "Grounding source content that makes up this attribution."7944 },7945 "sourceId": {7946 "$ref": "AttributionSourceId",7947 "readOnly": true,7948 "description": "Output only. Identifier for the source contributing to this attribution."7949 }7950 },7951 "type": "object",7952 "description": "Attribution for a source that contributed to an answer."7953 },7954 "GenerateContentRequest": {7955 "properties": {7956 "contents": {7957 "items": {7958 "$ref": "Content"7959 },7960 "type": "array",7961 "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request."7962 },7963 "labels": {7964 "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)",7965 "additionalProperties": {7966 "type": "string"7967 },7968 "type": "object"7969 },7970 "model": {7971 "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",7972 "type": "string"7973 },7974 "tools": {7975 "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.",7976 "type": "array",7977 "items": {7978 "$ref": "Tool"7979 }7980 },7981 "serviceTier": {7982 "enum": [7983 "unspecified",7984 "standard",7985 "flex",7986 "priority"7987 ],7988 "enumDescriptions": [7989 "Default service tier, which is standard.",7990 "Standard service tier.",7991 "Flex service tier.",7992 "Priority service tier."7993 ],7994 "description": "Optional. The service tier of the request.",7995 "type": "string"7996 },7997 "toolConfig": {7998 "$ref": "ToolConfig",7999 "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example."8000 },8001 "store": {8002 "type": "boolean",8003 "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config."8004 },8005 "cachedContent": {8006 "type": "string",8007 "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`"8008 },8009 "systemInstruction": {8010 "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only.",8011 "$ref": "Content"8012 },8013 "generationConfig": {8014 "description": "Optional. Configuration options for model generation and outputs.",8015 "$ref": "GenerationConfig"8016 },8017 "safetySettings": {8018 "type": "array",8019 "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.",8020 "items": {8021 "$ref": "SafetySetting"8022 }8023 }8024 },8025 "type": "object",8026 "id": "GenerateContentRequest",8027 "description": "Request to generate a completion from the model."8028 },8029 "EnvironmentFile": {8030 "id": "EnvironmentFile",8031 "description": "Metadata for a file or directory within an environment.",8032 "type": "object",8033 "properties": {8034 "mime_type": {8035 "type": "string",8036 "readOnly": true,8037 "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT"8038 },8039 "name": {8040 "readOnly": true,8041 "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").",8042 "type": "string"8043 },8044 "path": {8045 "readOnly": true,8046 "type": "string",8047 "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\")."8048 },8049 "modified": {8050 "type": "string",8051 "format": "google-datetime",8052 "readOnly": true,8053 "description": "Output only. The modification time of the file/directory."8054 },8055 "size_bytes": {8056 "type": "string",8057 "description": "Output only. The size of the file/directory in bytes. NOLINT",8058 "format": "int64",8059 "readOnly": true8060 },8061 "created": {8062 "readOnly": true,8063 "type": "string",8064 "description": "Output only. The creation time of the file/directory.",8065 "format": "google-datetime"8066 },8067 "type": {8068 "enum": [8069 "TYPE_UNSPECIFIED",8070 "FILE",8071 "DIRECTORY"8072 ],8073 "type": "string",8074 "readOnly": true,8075 "description": "Output only. The type of the entry.",8076 "enumDescriptions": [8077 "Unspecified type.",8078 "A regular file.",8079 "A directory."8080 ]8081 }8082 }8083 },8084 "PredictLongRunningRequest": {8085 "type": "object",8086 "id": "PredictLongRunningRequest",8087 "description": "Request message for [PredictionService.PredictLongRunning].",8088 "properties": {8089 "labels": {8090 "type": "object",8091 "additionalProperties": {8092 "type": "string"8093 },8094 "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)"8095 },8096 "instances": {8097 "items": {8098 "type": "any"8099 },8100 "description": "Required. The instances that are the input to the prediction call.",8101 "type": "array"8102 },8103 "parameters": {8104 "description": "Optional. The parameters that govern the prediction call.",8105 "type": "any"8106 }8107 }8108 },8109 "Model": {8110 "type": "object",8111 "description": "Information about a Generative Language Model.",8112 "id": "Model",8113 "properties": {8114 "name": {8115 "type": "string",8116 "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`"8117 },8118 "topP": {8119 "format": "float",8120 "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.",8121 "type": "number"8122 },8123 "topK": {8124 "type": "integer",8125 "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter.",8126 "format": "int32"8127 },8128 "description": {8129 "type": "string",8130 "description": "A short description of the model."8131 },8132 "thinking": {8133 "type": "boolean",8134 "description": "Whether the model supports thinking."8135 },8136 "temperature": {8137 "format": "float",8138 "type": "number",8139 "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model."8140 },8141 "displayName": {8142 "type": "string",8143 "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters."8144 },8145 "supportedGenerationMethods": {8146 "items": {8147 "type": "string"8148 },8149 "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.",8150 "type": "array"8151 },8152 "baseModelId": {8153 "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`",8154 "type": "string"8155 },8156 "maxTemperature": {8157 "type": "number",8158 "format": "float",8159 "description": "The maximum temperature this model can use."8160 },8161 "version": {8162 "type": "string",8163 "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)"8164 },8165 "inputTokenLimit": {8166 "type": "integer",8167 "format": "int32",8168 "description": "Maximum number of input tokens allowed for this model."8169 },8170 "outputTokenLimit": {8171 "description": "Maximum number of output tokens available for this model.",8172 "format": "int32",8173 "type": "integer"8174 }8175 }8176 },8177 "Document": {8178 "properties": {8179 "sizeBytes": {8180 "type": "string",8181 "format": "int64",8182 "description": "Output only. The size of raw bytes ingested into the Document.",8183 "readOnly": true8184 },8185 "displayName": {8186 "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"",8187 "type": "string"8188 },8189 "createTime": {8190 "readOnly": true,8191 "type": "string",8192 "description": "Output only. The Timestamp of when the `Document` was created.",8193 "format": "google-datetime"8194 },8195 "customMetadata": {8196 "type": "array",8197 "items": {8198 "$ref": "CustomMetadata"8199 },8200 "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`."8201 },8202 "state": {8203 "description": "Output only. Current state of the `Document`.",8204 "enumDescriptions": [8205 "The default value. This value is used if the state is omitted.",8206 "Some `Chunks` of the `Document` are being processed (embedding and vector storage).",8207 "All `Chunks` of the `Document` is processed and available for querying.",8208 "Some `Chunks` of the `Document` failed processing."8209 ],8210 "enum": [8211 "STATE_UNSPECIFIED",8212 "STATE_PENDING",8213 "STATE_ACTIVE",8214 "STATE_FAILED"8215 ],8216 "readOnly": true,8217 "type": "string"8218 },8219 "updateTime": {8220 "format": "google-datetime",8221 "readOnly": true,8222 "type": "string",8223 "description": "Output only. The Timestamp of when the `Document` was last updated."8224 },8225 "name": {8226 "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`",8227 "type": "string"8228 },8229 "mimeType": {8230 "description": "Output only. The mime type of the Document.",8231 "type": "string",8232 "readOnly": true8233 }8234 },8235 "id": "Document",8236 "type": "object",8237 "description": "A `Document` is a collection of `Chunk`s."8238 },8239 "ThinkingConfig": {8240 "type": "object",8241 "properties": {8242 "thinkingLevel": {8243 "enumDescriptions": [8244 "Default value.",8245 "Little to no thinking.",8246 "Low thinking level.",8247 "Medium thinking level.",8248 "High thinking level."8249 ],8250 "type": "string",8251 "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.",8252 "enum": [8253 "THINKING_LEVEL_UNSPECIFIED",8254 "MINIMAL",8255 "LOW",8256 "MEDIUM",8257 "HIGH"8258 ]8259 },8260 "thinkingBudget": {8261 "description": "The number of thoughts tokens that the model should generate.",8262 "type": "integer",8263 "format": "int32"8264 },8265 "includeThoughts": {8266 "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.",8267 "type": "boolean"8268 }8269 },8270 "id": "ThinkingConfig",8271 "description": "Config for thinking features."8272 },8273 "TuningSnapshot": {8274 "id": "TuningSnapshot",8275 "description": "Record for a single tuning step.",8276 "properties": {8277 "step": {8278 "type": "integer",8279 "readOnly": true,8280 "description": "Output only. The tuning step.",8281 "format": "int32"8282 },8283 "epoch": {8284 "description": "Output only. The epoch this step was part of.",8285 "format": "int32",8286 "type": "integer",8287 "readOnly": true8288 },8289 "computeTime": {8290 "readOnly": true,8291 "format": "google-datetime",8292 "description": "Output only. The timestamp when this metric was computed.",8293 "type": "string"8294 },8295 "meanLoss": {8296 "format": "float",8297 "readOnly": true,8298 "description": "Output only. The mean loss of the training examples for this step.",8299 "type": "number"8300 }8301 },8302 "type": "object"8303 },8304 "UrlMetadata": {8305 "id": "UrlMetadata",8306 "description": "Context of the a single url retrieval.",8307 "properties": {8308 "retrievedUrl": {8309 "description": "Retrieved url by the tool.",8310 "type": "string"8311 },8312 "urlRetrievalStatus": {8313 "description": "Status of the url retrieval.",8314 "enum": [8315 "URL_RETRIEVAL_STATUS_UNSPECIFIED",8316 "URL_RETRIEVAL_STATUS_SUCCESS",8317 "URL_RETRIEVAL_STATUS_ERROR",8318 "URL_RETRIEVAL_STATUS_PAYWALL",8319 "URL_RETRIEVAL_STATUS_UNSAFE"8320 ],8321 "type": "string",8322 "enumDescriptions": [8323 "Default value. This value is unused.",8324 "Url retrieval is successful.",8325 "Url retrieval is failed due to error.",8326 "Url retrieval is failed because the content is behind paywall.",8327 "Url retrieval is failed because the content is unsafe."8328 ]8329 }8330 },8331 "type": "object"8332 },8333 "HistoryConfig": {8334 "properties": {8335 "initialHistoryInClientContent": {8336 "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.",8337 "type": "boolean"8338 }8339 },8340 "id": "HistoryConfig",8341 "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.",8342 "type": "object"8343 },8344 "V1mainTuningSnapshot": {8345 "id": "V1mainTuningSnapshot",8346 "properties": {8347 "meanLoss": {8348 "format": "float",8349 "description": "Output only. The mean loss of the training examples for this step.",8350 "type": "number",8351 "readOnly": true8352 },8353 "epoch": {8354 "type": "integer",8355 "readOnly": true,8356 "description": "Output only. The epoch this step was part of.",8357 "format": "int32"8358 },8359 "step": {8360 "readOnly": true,8361 "description": "Output only. The tuning step.",8362 "format": "int32",8363 "type": "integer"8364 },8365 "computeTime": {8366 "format": "google-datetime",8367 "description": "Output only. The timestamp when this metric was computed.",8368 "readOnly": true,8369 "type": "string"8370 }8371 },8372 "type": "object",8373 "description": "Record for a single tuning step."8374 },8375 "RealtimeInputConfig": {8376 "description": "Configures the realtime input behavior in `BidiGenerateContent`.",8377 "type": "object",8378 "properties": {8379 "automaticActivityDetection": {8380 "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.",8381 "$ref": "AutomaticActivityDetection"8382 },8383 "activityHandling": {8384 "description": "Optional. Defines what effect activity has.",8385 "enum": [8386 "ACTIVITY_HANDLING_UNSPECIFIED",8387 "START_OF_ACTIVITY_INTERRUPTS",8388 "NO_INTERRUPTION"8389 ],8390 "enumDescriptions": [8391 "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.",8392 "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.",8393 "The model's response will not be interrupted."8394 ],8395 "type": "string"8396 },8397 "turnCoverage": {8398 "type": "string",8399 "enumDescriptions": [8400 "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.",8401 "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).",8402 "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).",8403 "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence."8404 ],8405 "enum": [8406 "TURN_COVERAGE_UNSPECIFIED",8407 "TURN_INCLUDES_ONLY_ACTIVITY",8408 "TURN_INCLUDES_ALL_INPUT",8409 "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"8410 ],8411 "description": "Optional. Defines which input is included in the user's turn."8412 }8413 },8414 "id": "RealtimeInputConfig"8415 },8416 "EmbedContentBatchStats": {8417 "properties": {8418 "successfulRequestCount": {8419 "type": "string",8420 "format": "int64",8421 "readOnly": true,8422 "description": "Output only. The number of requests that were successfully processed."8423 },8424 "pendingRequestCount": {8425 "description": "Output only. The number of requests that are still pending processing.",8426 "type": "string",8427 "format": "int64",8428 "readOnly": true8429 },8430 "requestCount": {8431 "description": "Output only. The number of requests in the batch.",8432 "type": "string",8433 "readOnly": true,8434 "format": "int64"8435 },8436 "failedRequestCount": {8437 "type": "string",8438 "format": "int64",8439 "readOnly": true,8440 "description": "Output only. The number of requests that failed to be processed."8441 }8442 },8443 "description": "Stats about the batch.",8444 "id": "EmbedContentBatchStats",8445 "type": "object"8446 },8447 "TextCompletion": {8448 "description": "Output text returned from a model.",8449 "id": "TextCompletion",8450 "properties": {8451 "citationMetadata": {8452 "description": "Output only. Citation information for model-generated `output` in this `TextCompletion`. This field may be populated with attribution information for any text included in the `output`.",8453 "$ref": "CitationMetadata",8454 "readOnly": true8455 },8456 "output": {8457 "type": "string",8458 "description": "Output only. The generated text returned from the model.",8459 "readOnly": true8460 },8461 "safetyRatings": {8462 "items": {8463 "$ref": "SafetyRating"8464 },8465 "description": "Ratings for the safety of a response. There is at most one rating per category.",8466 "type": "array"8467 }8468 },8469 "type": "object"8470 },8471 "GenerateContentBatchOutput": {8472 "type": "object",8473 "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.",8474 "properties": {8475 "responsesFile": {8476 "readOnly": true,8477 "type": "string",8478 "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests."8479 },8480 "inlinedResponses": {8481 "$ref": "InlinedResponses",8482 "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.",8483 "readOnly": true8484 }8485 },8486 "id": "GenerateContentBatchOutput"8487 },8488 "Blobstore2Info": {8489 "properties": {8490 "blobGeneration": {8491 "format": "int64",8492 "type": "string",8493 "description": "The blob generation id."8494 },8495 "downloadExternalReadToken": {8496 "description": "A serialized External Read Token passed from Bigstore -\u003e Scotty for a GCS download. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.",8497 "format": "byte",8498 "type": "string"8499 },8500 "uploadFragmentListCreationInfo": {8501 "type": "string",8502 "format": "byte",8503 "description": "A serialized Object Fragment List Creation Info passed from Bigstore -\u003e Scotty for a GCS upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads."8504 },8505 "blobId": {8506 "description": "The blob id, e.g., /blobstore/prod/playground/scotty",8507 "type": "string"8508 },8509 "readToken": {8510 "description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.",8511 "type": "string"8512 },8513 "downloadReadHandle": {8514 "format": "byte",8515 "description": "Read handle passed from Bigstore -\u003e Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.",8516 "type": "string"8517 },8518 "uploadMetadataContainer": {8519 "description": "Metadata passed from Blobstore -\u003e Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.",8520 "format": "byte",8521 "type": "string"8522 }8523 },8524 "id": "Blobstore2Info",8525 "description": "Information to read/write to blobstore2.",8526 "type": "object"8527 },8528 "SearchTypes": {8529 "type": "object",8530 "id": "SearchTypes",8531 "properties": {8532 "webSearch": {8533 "description": "Optional. Enables web search. Only text results are returned.",8534 "$ref": "WebSearch"8535 },8536 "imageSearch": {8537 "description": "Optional. Enables image search. Image bytes are returned.",8538 "$ref": "ImageSearch"8539 }8540 },8541 "description": "Different types of search that can be enabled on the GoogleSearch tool."8542 },8543 "VideoFileMetadata": {8544 "properties": {8545 "videoDuration": {8546 "format": "google-duration",8547 "description": "Duration of the video.",8548 "type": "string"8549 }8550 },8551 "type": "object",8552 "id": "VideoFileMetadata",8553 "description": "Metadata for a video `File`."8554 },8555 "ToolResponse": {8556 "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`.",8557 "properties": {8558 "toolType": {8559 "type": "string",8560 "enumDescriptions": [8561 "Unspecified tool type.",8562 "Google search tool, maps to Tool.google_search.search_types.web_search.",8563 "Image search tool, maps to Tool.google_search.search_types.image_search.",8564 "URL context tool, maps to Tool.url_context.",8565 "Google maps tool, maps to Tool.google_maps.",8566 "File search tool, maps to Tool.file_search."8567 ],8568 "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",8569 "enum": [8570 "TOOL_TYPE_UNSPECIFIED",8571 "GOOGLE_SEARCH_WEB",8572 "GOOGLE_SEARCH_IMAGE",8573 "URL_CONTEXT",8574 "GOOGLE_MAPS",8575 "FILE_SEARCH"8576 ]8577 },8578 "response": {8579 "type": "object",8580 "description": "Optional. The tool response.",8581 "additionalProperties": {8582 "type": "any",8583 "description": "Properties of the object."8584 }8585 },8586 "id": {8587 "description": "Optional. The identifier of the tool call this response is for.",8588 "type": "string"8589 }8590 },8591 "type": "object",8592 "id": "ToolResponse"8593 },8594 "ModalityTokenCount": {8595 "type": "object",8596 "properties": {8597 "tokenCount": {8598 "type": "integer",8599 "description": "Number of tokens.",8600 "format": "int32"8601 },8602 "modality": {8603 "enum": [8604 "MODALITY_UNSPECIFIED",8605 "TEXT",8606 "IMAGE",8607 "VIDEO",8608 "AUDIO",8609 "DOCUMENT"8610 ],8611 "description": "The modality associated with this token count.",8612 "type": "string",8613 "enumDescriptions": [8614 "Unspecified modality.",8615 "Plain text.",8616 "Image.",8617 "Video.",8618 "Audio.",8619 "Document, e.g. PDF."8620 ]8621 }8622 },8623 "id": "ModalityTokenCount",8624 "description": "Represents token counting info for a single modality."8625 },8626 "AuthToken": {8627 "id": "AuthToken",8628 "description": "A request to create an ephemeral authentication token.",8629 "properties": {8630 "newSessionExpireTime": {8631 "format": "google-datetime",8632 "type": "string",8633 "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future."8634 },8635 "expireTime": {8636 "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.",8637 "format": "google-datetime",8638 "type": "string"8639 },8640 "name": {8641 "type": "string",8642 "description": "Output only. Identifier. The token itself.",8643 "readOnly": true8644 },8645 "bidiGenerateContentSetup": {8646 "$ref": "BidiGenerateContentSetup",8647 "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`."8648 },8649 "fieldMask": {8650 "format": "google-fieldmask",8651 "type": "string",8652 "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection."8653 },8654 "uses": {8655 "format": "int32",8656 "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.",8657 "type": "integer"8658 }8659 },8660 "type": "object"8661 },8662 "EmbedContentResponse": {8663 "type": "object",8664 "description": "The response to an `EmbedContentRequest`.",8665 "id": "EmbedContentResponse",8666 "properties": {8667 "usageMetadata": {8668 "description": "Output only. The usage metadata for the request.",8669 "$ref": "EmbeddingUsageMetadata",8670 "readOnly": true8671 },8672 "embedding": {8673 "$ref": "ContentEmbedding",8674 "description": "Output only. The embedding generated from the input content.",8675 "readOnly": true8676 }8677 }8678 },8679 "CustomMetadata": {8680 "type": "object",8681 "id": "CustomMetadata",8682 "description": "User provided metadata stored as key-value pairs.",8683 "properties": {8684 "stringListValue": {8685 "description": "The StringList value of the metadata to store.",8686 "$ref": "StringList"8687 },8688 "numericValue": {8689 "type": "number",8690 "format": "float",8691 "description": "The numeric value of the metadata to store."8692 },8693 "stringValue": {8694 "type": "string",8695 "description": "The string value of the metadata to store."8696 },8697 "key": {8698 "description": "Required. The key of the metadata to store.",8699 "type": "string"8700 }8701 }8702 },8703 "ContentFilter": {8704 "id": "ContentFilter",8705 "type": "object",8706 "properties": {8707 "reason": {8708 "enum": [8709 "BLOCKED_REASON_UNSPECIFIED",8710 "SAFETY",8711 "OTHER"8712 ],8713 "description": "The reason content was blocked during request processing.",8714 "type": "string",8715 "enumDescriptions": [8716 "A blocked reason was not specified.",8717 "Content was blocked by safety settings.",8718 "Content was blocked, but the reason is uncategorized."8719 ]8720 },8721 "message": {8722 "type": "string",8723 "description": "A string that describes the filtering behavior in more detail."8724 }8725 },8726 "description": "Content filtering metadata associated with processing a single request. ContentFilter contains a reason and an optional supporting string. The reason may be unspecified."8727 },8728 "RetrievalConfig": {8729 "description": "Retrieval config.",8730 "type": "object",8731 "properties": {8732 "languageCode": {8733 "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).",8734 "type": "string"8735 },8736 "latLng": {8737 "description": "Optional. The location of the user.",8738 "$ref": "LatLng"8739 }8740 },8741 "id": "RetrievalConfig"8742 },8743 "ComputerUse": {8744 "type": "object",8745 "description": "Computer Use tool type.",8746 "properties": {8747 "enablePromptInjectionDetection": {8748 "type": "boolean",8749 "description": "Optional. Whether enable the prompt injection detection check on computer-use request."8750 },8751 "environment": {8752 "description": "Required. The environment being operated.",8753 "type": "string",8754 "enumDescriptions": [8755 "Defaults to browser.",8756 "Operates in a web browser.",8757 "Operates in a mobile environment.",8758 "Operates in a desktop environment."8759 ],8760 "enum": [8761 "ENVIRONMENT_UNSPECIFIED",8762 "ENVIRONMENT_BROWSER",8763 "ENVIRONMENT_MOBILE",8764 "ENVIRONMENT_DESKTOP"8765 ]8766 },8767 "disabledSafetyPolicies": {8768 "items": {8769 "enumDescriptions": [8770 "Unspecified safety policy.",8771 "Safety policy for financial transactions.",8772 "Safety policy for sensitive data modification.",8773 "Safety policy for communication tools (e.g. Gmail, Chat, Meet).",8774 "Safety policy for account creation.",8775 "Safety policy for data modification.",8776 "Safety policy for user consent management.",8777 "Safety policy for legal terms and agreements."8778 ],8779 "type": "string",8780 "enum": [8781 "SAFETY_POLICY_UNSPECIFIED",8782 "FINANCIAL_TRANSACTIONS",8783 "SENSITIVE_DATA_MODIFICATION",8784 "COMMUNICATION_TOOL",8785 "ACCOUNT_CREATION",8786 "DATA_MODIFICATION",8787 "USER_CONSENT_MANAGEMENT",8788 "LEGAL_TERMS_AND_AGREEMENTS"8789 ]8790 },8791 "type": "array",8792 "description": "Optional. Disabled safety policies for computer use."8793 },8794 "excludedPredefinedFunctions": {8795 "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.",8796 "items": {8797 "type": "string"8798 },8799 "type": "array"8800 }8801 },8802 "id": "ComputerUse"8803 }8804 },8805 "fullyEncodeReservedExpansion": true,8806 "canonicalName": "Generative Language",8807 "parameters": {8808 "fields": {8809 "description": "Selector specifying which fields to include in a partial response.",8810 "location": "query",8811 "type": "string"8812 },8813 "quotaUser": {8814 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",8815 "location": "query",8816 "type": "string"8817 },8818 "prettyPrint": {8819 "default": "true",8820 "description": "Returns response with indentations and line breaks.",8821 "location": "query",8822 "type": "boolean"8823 },8824 "callback": {8825 "location": "query",8826 "description": "JSONP",8827 "type": "string"8828 },8829 "key": {8830 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",8831 "location": "query",8832 "type": "string"8833 },8834 "upload_protocol": {8835 "location": "query",8836 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",8837 "type": "string"8838 },8839 "$.xgafv": {8840 "location": "query",8841 "description": "V1 error format.",8842 "enumDescriptions": [8843 "v1 error format",8844 "v2 error format"8845 ],8846 "type": "string",8847 "enum": [8848 "1",8849 "2"8850 ]8851 },8852 "oauth_token": {8853 "description": "OAuth 2.0 token for the current user.",8854 "type": "string",8855 "location": "query"8856 },8857 "alt": {8858 "type": "string",8859 "location": "query",8860 "enum": [8861 "json",8862 "media",8863 "proto"8864 ],8865 "description": "Data format for response.",8866 "default": "json",8867 "enumDescriptions": [8868 "Responses with Content-Type of application/json",8869 "Media download with context-dependent Content-Type",8870 "Responses with Content-Type of application/x-protobuf"8871 ]8872 },8873 "uploadType": {8874 "location": "query",8875 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",8876 "type": "string"8877 },8878 "access_token": {8879 "type": "string",8880 "location": "query",8881 "description": "OAuth access token."8882 }8883 },8884 "revision": "20260918",8885 "discoveryVersion": "v1",8886 "kind": "discovery#restDescription",8887 "basePath": "",8888 "version": "v1beta",8889 "protocol": "rest",8890 "icons": {8891 "x16": "http://www.google.com/images/icons/product/search-16.gif",8892 "x32": "http://www.google.com/images/icons/product/search-32.gif"8893 },8894 "ownerName": "Google",8895 "name": "generativelanguage",8896 "batchPath": "batch",8897 "servicePath": "",8898 "description": "The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.",8899 "id": "generativelanguage:v1beta"8900}8901