{
  "openapi": "3.1.0",
  "info": {
    "title": "Gemini 4 Argon API",
    "version": "2026-10-14"
  },
  "servers": [
    {
      "url": "https://api.seedrouter.ai"
    }
  ],
  "paths": {
    "/v1beta/models/gemini-4-argon:generateContent": {
      "post": {
        "operationId": "argon_generateContent",
        "summary": "Gemini 4 Argon generateContent",
        "description": "Native Gemini contract. Individual channel capabilities are pending verification. Unknown and officially unsupported fields are discarded.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateContentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Native response; streaming emits GenerateContentResponse objects as SSE data events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateContentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "Authentication required."
          }
        },
        "parameters": [
          {
            "name": "X-SeedRouter-Group",
            "in": "header",
            "required": false,
            "description": "Optional LLM group. Sign in to https://seedrouter.ai/models/gemini-4-argon#playground to check the groups available to your account; Playground uses your login session and requires no API key. Send the exact group name, keeping your existing model ID and API key. Omit this header or use auto to keep the key's default behavior. Restricted keys may have fewer options; use GET /api/seedrouter/llm/groups?model=MODEL_ID to check a particular key. The selected group's pricing applies; requests do not switch to another group. HTTP/SSE only, not WebSocket, image or video calls.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "default": "auto"
            }
          }
        ]
      }
    },
    "/v1beta/models/gemini-4-argon:streamGenerateContent": {
      "post": {
        "operationId": "argon_streamGenerateContent",
        "summary": "Gemini 4 Argon streamGenerateContent",
        "description": "Native Gemini contract. Individual channel capabilities are pending verification. Unknown and officially unsupported fields are discarded.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "alt",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sse"
              ]
            }
          },
          {
            "name": "X-SeedRouter-Group",
            "in": "header",
            "required": false,
            "description": "Optional LLM group. Sign in to https://seedrouter.ai/models/gemini-4-argon#playground to check the groups available to your account; Playground uses your login session and requires no API key. Send the exact group name, keeping your existing model ID and API key. Omit this header or use auto to keep the key's default behavior. Restricted keys may have fewer options; use GET /api/seedrouter/llm/groups?model=MODEL_ID to check a particular key. The selected group's pricing applies; requests do not switch to another group. HTTP/SSE only, not WebSocket, image or video calls.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "default": "auto"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateContentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Native response; streaming emits GenerateContentResponse objects as SSE data events.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "Authentication required."
          }
        }
      }
    },
    "/api/seedrouter/llm/groups": {
      "get": {
        "summary": "List available LLM groups",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Read-only. Returns groups allowed by this API key and account with an enabled channel for the requested model. Availability is checked again at generation time. No model generation is performed.",
        "parameters": [
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Available groups; auto preserves the API key default.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "model",
                    "data"
                  ],
                  "properties": {
                    "model": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "ratio"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Exact value for X-SeedRouter-Group."
                          },
                          "ratio": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "Account-specific group price multiplier. For auto, a current default estimate; null if unavailable."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid LLM model."
          },
          "401": {
            "description": "Invalid API key."
          },
          "403": {
            "description": "API key or account permissions do not allow this request."
          },
          "503": {
            "description": "Group discovery is temporarily unavailable."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "AttributionSourceId": {
        "description": "Identifier for the source contributing to this attribution.",
        "properties": {
          "groundingPassage": {
            "description": "Identifier for an inline passage.",
            "$ref": "#/components/schemas/GroundingPassageId"
          },
          "semanticRetrieverChunk": {
            "$ref": "#/components/schemas/SemanticRetrieverChunk",
            "description": "Identifier for a `Chunk` fetched via Semantic Retriever."
          }
        },
        "type": "object"
      },
      "AudioTranscription": {
        "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.",
        "type": "object",
        "properties": {
          "speakerLabel": {
            "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.",
            "type": "string"
          },
          "text": {
            "description": "Required. The transcription text of this audio segment.",
            "type": "string"
          },
          "words": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WordInfo"
            },
            "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set."
          }
        },
        "required": [
          "text"
        ]
      },
      "AudioTranscriptionConfig": {
        "description": "The audio transcription configuration.",
        "properties": {
          "languageAuto": {
            "description": "Optional. The model will detect the language automatically.",
            "deprecated": true,
            "$ref": "#/components/schemas/LanguageAuto"
          },
          "languageHints": {
            "deprecated": true,
            "description": "Optional. Specifies one or more languages in the audio.",
            "$ref": "#/components/schemas/LanguageHints"
          },
          "diarization": {
            "description": "Optional. Configures speaker diarization.",
            "type": "boolean"
          },
          "adaptationPhrases": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "deprecated": true,
            "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms."
          },
          "languageCodes": {
            "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "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`.",
            "type": "string",
            "enum": [
              "MODE_UNSPECIFIED",
              "VERBATIM",
              "SMART"
            ]
          },
          "customVocabulary": {
            "items": {
              "type": "string"
            },
            "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).",
            "type": "array"
          },
          "wordTimestamp": {
            "type": "boolean",
            "description": "Optional. Configures word-level timestamp generation."
          }
        },
        "type": "object"
      },
      "Blob": {
        "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
        "properties": {
          "displayName": {
            "type": "string",
            "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`."
          },
          "mimeType": {
            "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). //",
            "type": "string"
          },
          "data": {
            "format": "byte",
            "description": "Raw bytes for media formats.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Candidate": {
        "type": "object",
        "description": "A response candidate generated from the model.",
        "properties": {
          "logprobsResult": {
            "description": "Output only. Log-likelihood scores for the response tokens and top tokens",
            "$ref": "#/components/schemas/LogprobsResult",
            "readOnly": true
          },
          "avgLogprobs": {
            "description": "Output only. Average log probability score of the candidate.",
            "readOnly": true,
            "type": "number",
            "format": "double"
          },
          "groundingMetadata": {
            "$ref": "#/components/schemas/GroundingMetadata",
            "readOnly": true,
            "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls."
          },
          "finishMessage": {
            "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.",
            "readOnly": true,
            "type": "string"
          },
          "citationMetadata": {
            "readOnly": true,
            "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.",
            "$ref": "#/components/schemas/CitationMetadata"
          },
          "tokenCount": {
            "type": "integer",
            "readOnly": true,
            "description": "Output only. Token count for this candidate.",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "content": {
            "$ref": "#/components/schemas/Content",
            "description": "Output only. Generated content returned from the model.",
            "readOnly": true
          },
          "groundingAttributions": {
            "type": "array",
            "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/GroundingAttribution"
            }
          },
          "urlContextMetadata": {
            "readOnly": true,
            "$ref": "#/components/schemas/UrlContextMetadata",
            "description": "Output only. Metadata related to url context retrieval tool."
          },
          "safetyRatings": {
            "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SafetyRating"
            }
          },
          "index": {
            "type": "integer",
            "description": "Output only. Index of the candidate in the list of response candidates.",
            "format": "int32",
            "readOnly": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "finishReason": {
            "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.",
            "readOnly": true,
            "enum": [
              "FINISH_REASON_UNSPECIFIED",
              "STOP",
              "MAX_TOKENS",
              "SAFETY",
              "RECITATION",
              "LANGUAGE",
              "OTHER",
              "BLOCKLIST",
              "PROHIBITED_CONTENT",
              "SPII",
              "MALFORMED_FUNCTION_CALL",
              "IMAGE_SAFETY",
              "IMAGE_PROHIBITED_CONTENT",
              "IMAGE_OTHER",
              "NO_IMAGE",
              "IMAGE_RECITATION",
              "UNEXPECTED_TOOL_CALL",
              "TOO_MANY_TOOL_CALLS",
              "MISSING_THOUGHT_SIGNATURE",
              "MALFORMED_RESPONSE",
              "ESCALATION",
              "PUP_LIMITED_DISABLED",
              "CONTINUATION"
            ],
            "type": "string"
          },
          "continuationToken": {
            "type": "string",
            "format": "byte",
            "description": "An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation."
          }
        }
      },
      "CitationMetadata": {
        "type": "object",
        "properties": {
          "citationSources": {
            "items": {
              "$ref": "#/components/schemas/CitationSource"
            },
            "type": "array",
            "description": "Citations to sources for a specific response."
          }
        },
        "description": "A collection of source attributions for a piece of content."
      },
      "CitationSource": {
        "description": "A citation to a source for a portion of a specific response.",
        "properties": {
          "license": {
            "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.",
            "type": "string"
          },
          "startIndex": {
            "format": "int32",
            "type": "integer",
            "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "uri": {
            "type": "string",
            "description": "Optional. URI that is attributed as a source for a portion of the text."
          },
          "endIndex": {
            "description": "Optional. End of the attributed segment, exclusive.",
            "type": "integer",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        },
        "type": "object"
      },
      "CodeExecution": {
        "type": "object",
        "properties": {},
        "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."
      },
      "CodeExecutionResult": {
        "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
        "type": "object",
        "properties": {
          "output": {
            "type": "string",
            "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."
          },
          "outcome": {
            "type": "string",
            "description": "Required. Outcome of the code execution.",
            "enum": [
              "OUTCOME_UNSPECIFIED",
              "OUTCOME_OK",
              "OUTCOME_FAILED",
              "OUTCOME_DEADLINE_EXCEEDED"
            ]
          }
        },
        "required": [
          "outcome"
        ]
      },
      "ComputerUse": {
        "type": "object",
        "properties": {
          "excludedPredefinedFunctions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "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."
          },
          "disabledSafetyPolicies": {
            "type": "array",
            "items": {
              "enum": [
                "SAFETY_POLICY_UNSPECIFIED",
                "FINANCIAL_TRANSACTIONS",
                "SENSITIVE_DATA_MODIFICATION",
                "COMMUNICATION_TOOL",
                "ACCOUNT_CREATION",
                "DATA_MODIFICATION",
                "USER_CONSENT_MANAGEMENT",
                "LEGAL_TERMS_AND_AGREEMENTS"
              ],
              "type": "string"
            },
            "description": "Optional. Disabled safety policies for computer use."
          },
          "environment": {
            "type": "string",
            "description": "Required. The environment being operated.",
            "enum": [
              "ENVIRONMENT_UNSPECIFIED",
              "ENVIRONMENT_BROWSER",
              "ENVIRONMENT_MOBILE",
              "ENVIRONMENT_DESKTOP"
            ]
          },
          "enablePromptInjectionDetection": {
            "description": "Optional. Whether enable the prompt injection detection check on computer-use request.",
            "type": "boolean"
          }
        },
        "description": "Computer Use tool type.",
        "required": [
          "environment"
        ]
      },
      "Content": {
        "properties": {
          "role": {
            "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.",
            "type": "string"
          },
          "parts": {
            "type": "array",
            "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",
            "items": {
              "$ref": "#/components/schemas/Part"
            },
            "minItems": 1
          }
        },
        "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.",
        "type": "object",
        "required": [
          "parts"
        ]
      },
      "DynamicRetrievalConfig": {
        "description": "Describes the options to customize dynamic retrieval.",
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "description": "The mode of the predictor to be used in dynamic retrieval.",
            "enum": [
              "MODE_UNSPECIFIED",
              "MODE_DYNAMIC"
            ]
          },
          "dynamicThreshold": {
            "type": "number",
            "format": "float",
            "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used."
          }
        }
      },
      "ExecutableCode": {
        "type": "object",
        "properties": {
          "language": {
            "description": "Required. Programming language of the `code`.",
            "type": "string",
            "enum": [
              "LANGUAGE_UNSPECIFIED",
              "PYTHON"
            ]
          },
          "code": {
            "type": "string",
            "description": "Required. The code to be executed."
          }
        },
        "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.",
        "required": [
          "language",
          "code"
        ]
      },
      "FileData": {
        "description": "URI based data.",
        "type": "object",
        "properties": {
          "fileUri": {
            "description": "Required. URI.",
            "type": "string"
          },
          "mimeType": {
            "description": "Optional. The IANA standard MIME type of the source data.",
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "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`."
          }
        },
        "required": [
          "fileUri"
        ]
      },
      "FileSearch": {
        "properties": {
          "fileSearchStoreNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`"
          },
          "metadataFilter": {
            "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
            "type": "string"
          },
          "topK": {
            "format": "int32",
            "description": "Optional. The number of semantic retrieval chunks to retrieve.",
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        },
        "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
        "type": "object",
        "required": [
          "fileSearchStoreNames"
        ]
      },
      "FunctionCall": {
        "type": "object",
        "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
        "properties": {
          "args": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object."
            },
            "description": "Optional. The function parameters and values in JSON object format."
          },
          "name": {
            "type": "string",
            "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."
          }
        },
        "required": [
          "name"
        ]
      },
      "FunctionCallingConfig": {
        "properties": {
          "mode": {
            "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.",
            "type": "string",
            "enum": [
              "MODE_UNSPECIFIED",
              "AUTO",
              "ANY",
              "NONE",
              "VALIDATED"
            ]
          },
          "allowedFunctionNames": {
            "items": {
              "type": "string"
            },
            "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.",
            "type": "array"
          }
        },
        "type": "object",
        "description": "Configuration for specifying function calling behavior."
      },
      "FunctionDeclaration": {
        "properties": {
          "parametersJsonSchema": {
            "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`."
          },
          "name": {
            "type": "string",
            "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.",
            "maxLength": 128,
            "pattern": "^[a-zA-Z0-9_:.-]+$"
          },
          "parameters": {
            "$ref": "#/components/schemas/Schema",
            "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."
          },
          "description": {
            "description": "Required. A brief description of the function.",
            "type": "string"
          },
          "responseJsonSchema": {
            "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`."
          },
          "response": {
            "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.",
            "$ref": "#/components/schemas/Schema"
          }
        },
        "type": "object",
        "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.",
        "required": [
          "name"
        ]
      },
      "FunctionResponse": {
        "properties": {
          "willContinue": {
            "type": "boolean",
            "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`."
          },
          "name": {
            "type": "string",
            "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."
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FunctionResponsePart"
            },
            "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types."
          },
          "scheduling": {
            "enum": [
              "SCHEDULING_UNSPECIFIED",
              "SILENT",
              "WHEN_IDLE",
              "INTERRUPT"
            ],
            "type": "string",
            "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."
          },
          "response": {
            "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.",
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object."
            }
          }
        },
        "type": "object",
        "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.",
        "required": [
          "name",
          "response"
        ]
      },
      "FunctionResponseBlob": {
        "properties": {
          "mimeType": {
            "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).",
            "type": "string"
          },
          "data": {
            "format": "byte",
            "description": "Raw bytes for media formats.",
            "type": "string"
          }
        },
        "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
        "type": "object"
      },
      "FunctionResponsePart": {
        "type": "object",
        "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.",
        "properties": {
          "inlineData": {
            "description": "Inline media bytes.",
            "$ref": "#/components/schemas/FunctionResponseBlob"
          }
        }
      },
      "GenerateContentRequest": {
        "description": "Request to generate a completion from the model.",
        "type": "object",
        "properties": {
          "generationConfig": {
            "description": "Optional. Configuration options for model generation and outputs.",
            "$ref": "#/components/schemas/GenerationConfig"
          },
          "labels": {
            "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\"}`)",
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "contents": {
            "type": "array",
            "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.",
            "items": {
              "$ref": "#/components/schemas/Content"
            },
            "minItems": 1
          },
          "model": {
            "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
            "type": "string",
            "enum": [
              "models/gemini-4-argon",
              "gemini-4-argon"
            ]
          },
          "store": {
            "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.",
            "type": "boolean"
          },
          "systemInstruction": {
            "$ref": "#/components/schemas/Content",
            "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only."
          },
          "serviceTier": {
            "type": "string",
            "enum": [
              "unspecified",
              "standard",
              "flex",
              "priority"
            ],
            "description": "Optional. The service tier of the request."
          },
          "tools": {
            "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.",
            "items": {
              "$ref": "#/components/schemas/Tool"
            },
            "type": "array"
          },
          "toolConfig": {
            "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.",
            "$ref": "#/components/schemas/ToolConfig"
          },
          "safetySettings": {
            "items": {
              "$ref": "#/components/schemas/SafetySetting"
            },
            "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.",
            "type": "array"
          },
          "continuationToken": {
            "format": "byte",
            "type": "string",
            "description": "Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`."
          }
        },
        "required": [
          "contents"
        ]
      },
      "GenerateContentResponse": {
        "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`.",
        "properties": {
          "promptFeedback": {
            "$ref": "#/components/schemas/PromptFeedback",
            "description": "Returns the prompt's feedback related to the content filters."
          },
          "modelVersion": {
            "readOnly": true,
            "description": "Output only. The model version used to generate the response.",
            "type": "string"
          },
          "candidates": {
            "description": "Candidate responses from the model.",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            },
            "type": "array"
          },
          "modelStatus": {
            "description": "Output only. The current model status of this model.",
            "readOnly": true,
            "$ref": "#/components/schemas/ModelStatus"
          },
          "usageMetadata": {
            "description": "Output only. Metadata on the generation requests' token usage.",
            "readOnly": true,
            "$ref": "#/components/schemas/UsageMetadata"
          },
          "responseId": {
            "readOnly": true,
            "type": "string",
            "description": "Output only. response_id is used to identify each response."
          }
        },
        "type": "object"
      },
      "GenerationConfig": {
        "type": "object",
        "properties": {
          "frequencyPenalty": {
            "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.",
            "type": "number",
            "format": "float"
          },
          "enableEnhancedCivicAnswers": {
            "description": "Optional. Enables enhanced civic answers. It may not be available for all models.",
            "type": "boolean"
          },
          "seed": {
            "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.",
            "type": "integer",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "responseMimeType": {
            "type": "string",
            "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."
          },
          "enableAffectiveDialog": {
            "type": "boolean",
            "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly."
          },
          "mediaResolution": {
            "enum": [
              "MEDIA_RESOLUTION_UNSPECIFIED",
              "MEDIA_RESOLUTION_LOW",
              "MEDIA_RESOLUTION_MEDIUM",
              "MEDIA_RESOLUTION_HIGH"
            ],
            "type": "string",
            "description": "Optional. If specified, the media resolution specified will be used."
          },
          "thinkingConfig": {
            "$ref": "#/components/schemas/ThinkingConfig",
            "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking."
          },
          "responseLogprobs": {
            "type": "boolean",
            "description": "Optional. If true, export the logprobs results in response."
          },
          "logprobs": {
            "format": "int32",
            "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].",
            "type": "integer",
            "minimum": 0,
            "maximum": 20
          },
          "translationConfig": {
            "description": "Optional. Config for translation.",
            "$ref": "#/components/schemas/TranslationConfig"
          },
          "maxOutputTokens": {
            "type": "integer",
            "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.",
            "format": "int32",
            "minimum": 1,
            "maximum": 1048576
          },
          "presencePenalty": {
            "type": "number",
            "format": "float",
            "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."
          },
          "audioTranscriptionConfig": {
            "description": "Optional. Config for audio transcription (speech recognition).",
            "$ref": "#/components/schemas/AudioTranscriptionConfig"
          },
          "responseModalities": {
            "type": "array",
            "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.",
            "items": {
              "type": "string",
              "enum": [
                "TEXT"
              ]
            }
          },
          "responseSchema": {
            "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.",
            "deprecated": true,
            "$ref": "#/components/schemas/Schema"
          },
          "responseFormat": {
            "$ref": "#/components/schemas/ResponseFormatConfig",
            "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure."
          },
          "responseJsonSchema": {
            "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field."
          },
          "stopSequences": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "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.",
            "maxItems": 5
          }
        },
        "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model."
      },
      "GoogleAiGenerativelanguageV1betaGroundingSupport": {
        "description": "Grounding support.",
        "properties": {
          "segment": {
            "description": "Segment of the content this support belongs to.",
            "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment"
          },
          "confidenceScores": {
            "type": "array",
            "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.",
            "items": {
              "format": "float",
              "type": "number"
            }
          },
          "groundingChunkIndices": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32",
              "minimum": -2147483648,
              "maximum": 2147483647
            },
            "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)."
          },
          "renderedParts": {
            "type": "array",
            "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.",
            "items": {
              "format": "int32",
              "type": "integer",
              "minimum": -2147483648,
              "maximum": 2147483647
            },
            "readOnly": true
          }
        },
        "type": "object"
      },
      "GoogleAiGenerativelanguageV1betaSegment": {
        "description": "Segment of the content.",
        "properties": {
          "startIndex": {
            "type": "integer",
            "format": "int32",
            "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "text": {
            "description": "The text corresponding to the segment from the response.",
            "type": "string"
          },
          "endIndex": {
            "format": "int32",
            "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.",
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "partIndex": {
            "type": "integer",
            "description": "The index of a Part object within its parent Content object.",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        },
        "type": "object"
      },
      "GoogleMaps": {
        "type": "object",
        "properties": {
          "enableWidget": {
            "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.",
            "type": "boolean"
          }
        },
        "description": "The GoogleMaps Tool that provides geospatial context for the user's query."
      },
      "GoogleSearch": {
        "type": "object",
        "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
        "properties": {
          "timeRangeFilter": {
            "$ref": "#/components/schemas/Interval",
            "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)."
          },
          "searchTypes": {
            "$ref": "#/components/schemas/SearchTypes",
            "description": "Optional. The set of search types to enable. If not set, web search is enabled by default."
          }
        }
      },
      "GoogleSearchRetrieval": {
        "type": "object",
        "description": "Tool to retrieve public web data for grounding, powered by Google.",
        "properties": {
          "dynamicRetrievalConfig": {
            "description": "Specifies the dynamic retrieval configuration for the given source.",
            "$ref": "#/components/schemas/DynamicRetrievalConfig"
          }
        }
      },
      "GroundingAttribution": {
        "type": "object",
        "properties": {
          "sourceId": {
            "readOnly": true,
            "$ref": "#/components/schemas/AttributionSourceId",
            "description": "Output only. Identifier for the source contributing to this attribution."
          },
          "content": {
            "description": "Grounding source content that makes up this attribution.",
            "$ref": "#/components/schemas/Content"
          }
        },
        "description": "Attribution for a source that contributed to an answer."
      },
      "GroundingChunk": {
        "type": "object",
        "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.",
        "properties": {
          "web": {
            "$ref": "#/components/schemas/Web",
            "description": "Grounding chunk from the web."
          },
          "maps": {
            "description": "Optional. Grounding chunk from Google Maps.",
            "$ref": "#/components/schemas/Maps"
          },
          "image": {
            "$ref": "#/components/schemas/Image",
            "description": "Optional. Grounding chunk from image search."
          },
          "retrievedContext": {
            "description": "Optional. Grounding chunk from context retrieved by the file search tool.",
            "$ref": "#/components/schemas/RetrievedContext"
          }
        }
      },
      "GroundingChunkCustomMetadata": {
        "type": "object",
        "description": "User provided metadata about the GroundingFact.",
        "properties": {
          "stringValue": {
            "description": "Optional. The string value of the metadata.",
            "type": "string"
          },
          "numericValue": {
            "type": "number",
            "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.",
            "format": "float"
          },
          "stringListValue": {
            "description": "Optional. A list of string values for the metadata.",
            "$ref": "#/components/schemas/GroundingChunkStringList"
          },
          "key": {
            "description": "The key of the metadata.",
            "type": "string"
          }
        }
      },
      "GroundingChunkStringList": {
        "description": "A list of string values.",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The string values of the list."
          }
        },
        "type": "object"
      },
      "GroundingMetadata": {
        "type": "object",
        "description": "Metadata returned to client when grounding is enabled.",
        "properties": {
          "retrievalMetadata": {
            "description": "Metadata related to retrieval in the grounding flow.",
            "$ref": "#/components/schemas/RetrievalMetadata"
          },
          "groundingSupports": {
            "items": {
              "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport"
            },
            "description": "List of grounding support.",
            "type": "array"
          },
          "groundingChunks": {
            "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.",
            "items": {
              "$ref": "#/components/schemas/GroundingChunk"
            },
            "type": "array"
          },
          "googleMapsWidgetContextToken": {
            "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.",
            "type": "string"
          },
          "imageSearchQueries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Image search queries used for grounding."
          },
          "searchEntryPoint": {
            "description": "Optional. Google search entry for the following-up web searches.",
            "$ref": "#/components/schemas/SearchEntryPoint"
          },
          "webSearchQueries": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "Web search queries for the following-up web search."
          }
        }
      },
      "GroundingPassageId": {
        "properties": {
          "passageId": {
            "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.",
            "readOnly": true,
            "type": "string"
          },
          "partIndex": {
            "format": "int32",
            "type": "integer",
            "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",
            "readOnly": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        },
        "type": "object",
        "description": "Identifier for a part within a `GroundingPassage`."
      },
      "Image": {
        "type": "object",
        "properties": {
          "sourceUri": {
            "type": "string",
            "description": "The web page URI for attribution."
          },
          "imageUri": {
            "description": "The image asset URL.",
            "type": "string"
          },
          "domain": {
            "type": "string",
            "description": "The root domain of the web page that the image is from, e.g. \"example.com\"."
          },
          "title": {
            "type": "string",
            "description": "The title of the web page that the image is from."
          }
        },
        "description": "Chunk from image search."
      },
      "ImageSearch": {
        "description": "Image search for grounding and related configurations.",
        "properties": {},
        "type": "object"
      },
      "Interval": {
        "type": "object",
        "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.",
        "properties": {
          "startTime": {
            "format": "google-datetime",
            "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",
            "type": "string"
          },
          "endTime": {
            "format": "google-datetime",
            "type": "string",
            "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end."
          }
        }
      },
      "LanguageAuto": {
        "description": "Indicates the language of the audio should be automatically detected.",
        "properties": {},
        "type": "object",
        "deprecated": true
      },
      "LanguageHints": {
        "type": "object",
        "properties": {
          "languageCodes": {
            "items": {
              "type": "string"
            },
            "description": "Required. BCP-47 language codes.",
            "deprecated": true,
            "type": "array"
          }
        },
        "description": "Provides hints to the model about possible languages present in the audio.",
        "deprecated": true,
        "required": [
          "languageCodes"
        ]
      },
      "LatLng": {
        "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.",
        "properties": {
          "longitude": {
            "format": "double",
            "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
            "type": "number"
          },
          "latitude": {
            "format": "double",
            "type": "number",
            "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]."
          }
        },
        "type": "object"
      },
      "LogprobsResult": {
        "type": "object",
        "description": "Logprobs Result",
        "properties": {
          "topCandidates": {
            "description": "Length = total number of decoding steps.",
            "items": {
              "$ref": "#/components/schemas/TopCandidates"
            },
            "type": "array"
          },
          "chosenCandidates": {
            "items": {
              "$ref": "#/components/schemas/LogprobsResultCandidate"
            },
            "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.",
            "type": "array"
          },
          "logProbabilitySum": {
            "description": "Sum of log probabilities for all tokens.",
            "format": "float",
            "type": "number"
          }
        }
      },
      "LogprobsResultCandidate": {
        "type": "object",
        "properties": {
          "tokenId": {
            "description": "The candidate’s token id value.",
            "format": "int32",
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "token": {
            "type": "string",
            "description": "The candidate’s token string value."
          },
          "logProbability": {
            "type": "number",
            "description": "The candidate's log probability.",
            "format": "float"
          }
        },
        "description": "Candidate for the logprobs token and score."
      },
      "Maps": {
        "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.",
        "properties": {
          "title": {
            "description": "Title of the place.",
            "type": "string"
          },
          "placeId": {
            "type": "string",
            "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place."
          },
          "uri": {
            "type": "string",
            "description": "URI reference of the place."
          },
          "placeAnswerSources": {
            "$ref": "#/components/schemas/PlaceAnswerSources",
            "description": "Sources that provide answers about the features of a given place in Google Maps."
          },
          "text": {
            "type": "string",
            "description": "Text description of the place answer."
          }
        },
        "type": "object"
      },
      "McpServer": {
        "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",
        "properties": {
          "streamableHttpTransport": {
            "description": "A transport that can stream HTTP requests and responses.",
            "$ref": "#/components/schemas/StreamableHttpTransport"
          },
          "name": {
            "type": "string",
            "description": "The name of the MCPServer."
          }
        },
        "type": "object"
      },
      "ModalityTokenCount": {
        "properties": {
          "modality": {
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "VIDEO",
              "AUDIO",
              "DOCUMENT"
            ],
            "type": "string",
            "description": "The modality associated with this token count."
          },
          "tokenCount": {
            "description": "Number of tokens.",
            "type": "integer",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        },
        "description": "Represents token counting info for a single modality.",
        "type": "object"
      },
      "ModelStatus": {
        "properties": {
          "message": {
            "type": "string",
            "description": "A message explaining the model status."
          },
          "retirementTime": {
            "description": "The time at which the model will be retired.",
            "type": "string",
            "format": "google-datetime"
          },
          "modelStage": {
            "type": "string",
            "enum": [
              "MODEL_STAGE_UNSPECIFIED",
              "UNSTABLE_EXPERIMENTAL",
              "EXPERIMENTAL",
              "PREVIEW",
              "STABLE",
              "LEGACY",
              "DEPRECATED",
              "RETIRED"
            ],
            "description": "The stage of the underlying model."
          }
        },
        "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.",
        "type": "object"
      },
      "Part": {
        "properties": {
          "executableCode": {
            "description": "Code generated by the model that is meant to be executed.",
            "$ref": "#/components/schemas/ExecutableCode"
          },
          "toolResponse": {
            "$ref": "#/components/schemas/ToolResponse",
            "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`."
          },
          "functionResponse": {
            "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.",
            "$ref": "#/components/schemas/FunctionResponse"
          },
          "mediaProcessing": {
            "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.",
            "type": "string",
            "enum": [
              "MEDIA_PROCESSING_UNSPECIFIED",
              "STATIC",
              "AGENTIC"
            ]
          },
          "audioTranscription": {
            "$ref": "#/components/schemas/AudioTranscription",
            "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data."
          },
          "functionCall": {
            "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
            "$ref": "#/components/schemas/FunctionCall"
          },
          "inlineData": {
            "description": "Inline media bytes.",
            "$ref": "#/components/schemas/Blob"
          },
          "thoughtSignature": {
            "type": "string",
            "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
            "format": "byte"
          },
          "text": {
            "type": "string",
            "description": "Inline text."
          },
          "mediaResolution": {
            "$ref": "#/components/schemas/V1mainMediaResolution",
            "description": "Optional. Media resolution for the input media."
          },
          "codeExecutionResult": {
            "description": "Result of executing the `ExecutableCode`.",
            "$ref": "#/components/schemas/CodeExecutionResult"
          },
          "partMetadata": {
            "type": "object",
            "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.",
            "additionalProperties": {
              "description": "Properties of the object."
            }
          },
          "speechMetadata": {
            "description": "Optional. Metadata applied to text parts to customize how they should be spoken or synthesized, such as specifying speaker identity or speaking style.",
            "$ref": "#/components/schemas/SpeechMetadata"
          },
          "videoMetadata": {
            "$ref": "#/components/schemas/VideoMetadata",
            "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
          },
          "fileData": {
            "description": "URI based data.",
            "$ref": "#/components/schemas/FileData"
          },
          "thought": {
            "type": "boolean",
            "description": "Optional. Indicates if the part is thought from the model."
          },
          "toolCall": {
            "$ref": "#/components/schemas/ToolCall",
            "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."
          }
        },
        "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.",
        "type": "object"
      },
      "PlaceAnswerSources": {
        "properties": {
          "reviewSnippets": {
            "items": {
              "$ref": "#/components/schemas/ReviewSnippet"
            },
            "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.",
            "type": "array"
          }
        },
        "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.",
        "type": "object"
      },
      "PromptFeedback": {
        "properties": {
          "safetyRatings": {
            "description": "Ratings for safety of the prompt. There is at most one rating per category.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SafetyRating"
            }
          },
          "blockReason": {
            "type": "string",
            "enum": [
              "BLOCK_REASON_UNSPECIFIED",
              "SAFETY",
              "OTHER",
              "BLOCKLIST",
              "PROHIBITED_CONTENT",
              "IMAGE_SAFETY"
            ],
            "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt."
          }
        },
        "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.",
        "type": "object"
      },
      "ResponseFormatConfig": {
        "properties": {
          "text": {
            "$ref": "#/components/schemas/TextResponseFormat",
            "description": "Optional. Text output format configuration."
          }
        },
        "type": "object",
        "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality."
      },
      "RetrievalConfig": {
        "description": "Retrieval config.",
        "properties": {
          "languageCode": {
            "type": "string",
            "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)."
          },
          "latLng": {
            "description": "Optional. The location of the user.",
            "$ref": "#/components/schemas/LatLng"
          }
        },
        "type": "object"
      },
      "RetrievalMetadata": {
        "type": "object",
        "properties": {
          "googleSearchDynamicRetrievalScore": {
            "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.",
            "type": "number",
            "format": "float"
          }
        },
        "description": "Metadata related to retrieval in the grounding flow."
      },
      "RetrievedContext": {
        "type": "object",
        "properties": {
          "customMetadata": {
            "items": {
              "$ref": "#/components/schemas/GroundingChunkCustomMetadata"
            },
            "type": "array",
            "description": "Optional. User-provided metadata about the retrieved context."
          },
          "title": {
            "description": "Optional. Title of the document.",
            "type": "string"
          },
          "uri": {
            "type": "string",
            "description": "Optional. URI reference of the semantic retrieval document."
          },
          "text": {
            "description": "Optional. Text of the chunk.",
            "type": "string"
          },
          "pageNumber": {
            "format": "int32",
            "type": "integer",
            "description": "Optional. Page number of the retrieved context, if applicable.",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "fileSearchStore": {
            "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`",
            "type": "string"
          },
          "mediaId": {
            "type": "string",
            "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}"
          }
        },
        "description": "Chunk from context retrieved by the file search tool."
      },
      "ReviewSnippet": {
        "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.",
        "properties": {
          "title": {
            "description": "Title of the review.",
            "type": "string"
          },
          "reviewId": {
            "type": "string",
            "description": "The ID of the review snippet."
          },
          "googleMapsUri": {
            "description": "A link that corresponds to the user review on Google Maps.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SafetyRating": {
        "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.",
        "type": "object",
        "properties": {
          "blocked": {
            "type": "boolean",
            "description": "Was this content blocked because of this rating?"
          },
          "probability": {
            "description": "Required. The probability of harm for this content.",
            "enum": [
              "HARM_PROBABILITY_UNSPECIFIED",
              "NEGLIGIBLE",
              "LOW",
              "MEDIUM",
              "HIGH"
            ],
            "type": "string"
          },
          "category": {
            "type": "string",
            "description": "Required. The category for this rating.",
            "enum": [
              "HARM_CATEGORY_UNSPECIFIED",
              "HARM_CATEGORY_DEROGATORY",
              "HARM_CATEGORY_TOXICITY",
              "HARM_CATEGORY_VIOLENCE",
              "HARM_CATEGORY_SEXUAL",
              "HARM_CATEGORY_MEDICAL",
              "HARM_CATEGORY_DANGEROUS",
              "HARM_CATEGORY_HARASSMENT",
              "HARM_CATEGORY_HATE_SPEECH",
              "HARM_CATEGORY_SEXUALLY_EXPLICIT",
              "HARM_CATEGORY_DANGEROUS_CONTENT",
              "HARM_CATEGORY_CIVIC_INTEGRITY",
              "HARM_CATEGORY_JAILBREAK"
            ]
          }
        },
        "required": [
          "probability",
          "category"
        ]
      },
      "SafetySetting": {
        "type": "object",
        "properties": {
          "threshold": {
            "type": "string",
            "description": "Required. Controls the probability threshold at which harm is blocked.",
            "enum": [
              "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
              "BLOCK_LOW_AND_ABOVE",
              "BLOCK_MEDIUM_AND_ABOVE",
              "BLOCK_ONLY_HIGH",
              "BLOCK_NONE",
              "OFF"
            ]
          },
          "category": {
            "enum": [
              "HARM_CATEGORY_HARASSMENT",
              "HARM_CATEGORY_HATE_SPEECH",
              "HARM_CATEGORY_SEXUALLY_EXPLICIT",
              "HARM_CATEGORY_DANGEROUS_CONTENT",
              "HARM_CATEGORY_CIVIC_INTEGRITY",
              "HARM_CATEGORY_JAILBREAK"
            ],
            "description": "Required. The category for this setting.",
            "type": "string"
          }
        },
        "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.",
        "required": [
          "threshold",
          "category"
        ]
      },
      "Schema": {
        "type": "object",
        "properties": {
          "items": {
            "$ref": "#/components/schemas/Schema",
            "description": "Optional. Schema of the elements of Type.ARRAY."
          },
          "type": {
            "type": "string",
            "enum": [
              "TYPE_UNSPECIFIED",
              "STRING",
              "NUMBER",
              "INTEGER",
              "BOOLEAN",
              "ARRAY",
              "OBJECT",
              "NULL"
            ],
            "description": "Required. Data type."
          },
          "anyOf": {
            "items": {
              "$ref": "#/components/schemas/Schema"
            },
            "type": "array",
            "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list."
          },
          "example": {
            "description": "Optional. Example of the object. Will only populated when the object is the root."
          },
          "maxLength": {
            "format": "int64",
            "description": "Optional. Maximum length of the Type.STRING",
            "type": "string"
          },
          "maxProperties": {
            "description": "Optional. Maximum number of the properties for Type.OBJECT.",
            "format": "int64",
            "type": "string"
          },
          "enum": {
            "items": {
              "type": "string"
            },
            "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\"]}",
            "type": "array"
          },
          "maxItems": {
            "format": "int64",
            "description": "Optional. Maximum number of the elements for Type.ARRAY.",
            "type": "string"
          },
          "pattern": {
            "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.",
            "type": "string"
          },
          "nullable": {
            "description": "Optional. Indicates if the value may be null.",
            "type": "boolean"
          },
          "default": {
            "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."
          },
          "title": {
            "description": "Optional. The title of the schema.",
            "type": "string"
          },
          "required": {
            "description": "Optional. Required properties of Type.OBJECT.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.",
            "type": "string"
          },
          "minProperties": {
            "format": "int64",
            "type": "string",
            "description": "Optional. Minimum number of the properties for Type.OBJECT."
          },
          "maximum": {
            "type": "number",
            "format": "double",
            "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER"
          },
          "description": {
            "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.",
            "type": "string"
          },
          "properties": {
            "type": "object",
            "description": "Optional. Properties of Type.OBJECT.",
            "additionalProperties": {
              "$ref": "#/components/schemas/Schema"
            }
          },
          "minimum": {
            "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER",
            "format": "double",
            "type": "number"
          },
          "minLength": {
            "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING",
            "format": "int64",
            "type": "string"
          },
          "propertyOrdering": {
            "items": {
              "type": "string"
            },
            "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.",
            "type": "array"
          },
          "minItems": {
            "description": "Optional. Minimum number of the elements for Type.ARRAY.",
            "format": "int64",
            "type": "string"
          }
        },
        "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).",
        "required": [
          "type"
        ]
      },
      "SearchEntryPoint": {
        "properties": {
          "sdkBlob": {
            "type": "string",
            "description": "Optional. Base64 encoded JSON representing array of tuple.",
            "format": "byte"
          },
          "renderedContent": {
            "type": "string",
            "description": "Optional. Web content snippet that can be embedded in a web page or an app webview."
          }
        },
        "description": "Google search entry point.",
        "type": "object"
      },
      "SearchTypes": {
        "properties": {
          "webSearch": {
            "description": "Optional. Enables web search. Only text results are returned.",
            "$ref": "#/components/schemas/WebSearch"
          },
          "imageSearch": {
            "$ref": "#/components/schemas/ImageSearch",
            "description": "Optional. Enables image search. Image bytes are returned."
          }
        },
        "description": "Different types of search that can be enabled on the GoogleSearch tool.",
        "type": "object"
      },
      "SemanticRetrieverChunk": {
        "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",
        "properties": {
          "source": {
            "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`",
            "type": "string",
            "readOnly": true
          },
          "chunk": {
            "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`",
            "type": "string",
            "readOnly": true
          }
        },
        "type": "object"
      },
      "SpeechMetadata": {
        "type": "object",
        "description": "Speech metadata for `text` parts.",
        "properties": {
          "style": {
            "type": "string",
            "description": "Optional. Optional style instruction for the speech synthesis."
          },
          "speaker": {
            "description": "Optional. Optional speaker name for multi-speaker synthesis.",
            "type": "string"
          }
        }
      },
      "StreamableHttpTransport": {
        "description": "A transport that can stream HTTP requests and responses. Next ID: 6",
        "type": "object",
        "properties": {
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.",
            "type": "object"
          },
          "url": {
            "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"",
            "type": "string"
          },
          "sseReadTimeout": {
            "description": "Timeout for SSE read operations.",
            "format": "google-duration",
            "type": "string"
          },
          "terminateOnClose": {
            "type": "boolean",
            "description": "Whether to close the client session when the transport closes."
          },
          "timeout": {
            "format": "google-duration",
            "type": "string",
            "description": "HTTP timeout for regular operations."
          }
        }
      },
      "TextResponseFormat": {
        "description": "Configuration for text output format.",
        "properties": {
          "mimeType": {
            "type": "string",
            "enum": [
              "MIME_TYPE_UNSPECIFIED",
              "APPLICATION_JSON",
              "TEXT_PLAIN",
              "application/json",
              "text/plain"
            ],
            "description": "Optional. The MIME type of the text output."
          },
          "schema": {
            "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON."
          }
        },
        "type": "object"
      },
      "ThinkingConfig": {
        "description": "Config for thinking features.",
        "type": "object",
        "properties": {
          "includeThoughts": {
            "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.",
            "type": "boolean"
          },
          "thinkingLevel": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "LOW",
              "MEDIUM",
              "HIGH"
            ],
            "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.",
            "default": "medium"
          },
          "thinkingBudget": {
            "type": "integer",
            "description": "The number of thoughts tokens that the model should generate.",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          }
        }
      },
      "Tool": {
        "type": "object",
        "properties": {
          "mcpServers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/McpServer"
            },
            "description": "Optional. MCP Servers to connect to."
          },
          "urlContext": {
            "$ref": "#/components/schemas/UrlContext",
            "description": "Optional. Tool to support URL context retrieval."
          },
          "functionDeclarations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FunctionDeclaration"
            },
            "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."
          },
          "computerUse": {
            "$ref": "#/components/schemas/ComputerUse",
            "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations."
          },
          "googleSearchRetrieval": {
            "$ref": "#/components/schemas/GoogleSearchRetrieval",
            "description": "Optional. Retrieval tool that is powered by Google search."
          },
          "codeExecution": {
            "description": "Optional. Enables the model to execute code as part of generation.",
            "$ref": "#/components/schemas/CodeExecution"
          },
          "googleSearch": {
            "$ref": "#/components/schemas/GoogleSearch",
            "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
          },
          "fileSearch": {
            "$ref": "#/components/schemas/FileSearch",
            "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora."
          },
          "googleMaps": {
            "$ref": "#/components/schemas/GoogleMaps",
            "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query."
          }
        },
        "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"
      },
      "ToolCall": {
        "type": "object",
        "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`.",
        "properties": {
          "toolType": {
            "type": "string",
            "description": "Required. The type of tool that was called."
          },
          "toolName": {
            "type": "string",
            "description": "Optional. The name of the tool that was called."
          },
          "args": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object."
            },
            "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}"
          }
        },
        "required": [
          "toolType"
        ]
      },
      "ToolConfig": {
        "properties": {
          "retrievalConfig": {
            "$ref": "#/components/schemas/RetrievalConfig",
            "description": "Optional. Retrieval config."
          },
          "functionCallingConfig": {
            "description": "Optional. Function calling config.",
            "$ref": "#/components/schemas/FunctionCallingConfig"
          },
          "includeServerSideToolInvocations": {
            "type": "boolean",
            "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."
          }
        },
        "type": "object",
        "description": "The Tool configuration containing parameters for specifying `Tool` use in the request."
      },
      "ToolResponse": {
        "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`.",
        "type": "object",
        "properties": {
          "toolType": {
            "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",
            "type": "string"
          },
          "response": {
            "type": "object",
            "description": "Optional. The tool response.",
            "additionalProperties": {
              "description": "Properties of the object."
            }
          }
        },
        "required": [
          "toolType"
        ]
      },
      "TopCandidates": {
        "properties": {
          "candidates": {
            "items": {
              "$ref": "#/components/schemas/LogprobsResultCandidate"
            },
            "description": "Sorted by log probability in descending order.",
            "type": "array"
          }
        },
        "type": "object",
        "description": "Candidates with top log probabilities at each decoding step."
      },
      "TranslationConfig": {
        "description": "Config for translation features.",
        "properties": {
          "echoTargetLanguage": {
            "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.",
            "type": "boolean"
          },
          "targetLanguageCode": {
            "type": "string",
            "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."
          }
        },
        "type": "object",
        "required": [
          "targetLanguageCode"
        ]
      },
      "UrlContext": {
        "type": "object",
        "description": "Tool to support URL context retrieval.",
        "properties": {}
      },
      "UrlContextMetadata": {
        "properties": {
          "urlMetadata": {
            "items": {
              "$ref": "#/components/schemas/UrlMetadata"
            },
            "type": "array",
            "description": "List of url context."
          }
        },
        "type": "object",
        "description": "Metadata related to url context retrieval tool."
      },
      "UrlMetadata": {
        "properties": {
          "retrievedUrl": {
            "type": "string",
            "description": "Retrieved url by the tool."
          },
          "urlRetrievalStatus": {
            "description": "Status of the url retrieval.",
            "enum": [
              "URL_RETRIEVAL_STATUS_UNSPECIFIED",
              "URL_RETRIEVAL_STATUS_SUCCESS",
              "URL_RETRIEVAL_STATUS_ERROR",
              "URL_RETRIEVAL_STATUS_PAYWALL",
              "URL_RETRIEVAL_STATUS_UNSAFE"
            ],
            "type": "string"
          }
        },
        "type": "object",
        "description": "Context of the a single url retrieval."
      },
      "UsageMetadata": {
        "type": "object",
        "properties": {
          "serviceTier": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "unspecified",
              "standard",
              "flex",
              "priority"
            ],
            "description": "Output only. Service tier of the request."
          },
          "promptTokensDetails": {
            "items": {
              "$ref": "#/components/schemas/ModalityTokenCount"
            },
            "type": "array",
            "description": "Output only. List of modalities that were processed in the request input.",
            "readOnly": true
          },
          "totalTokenCount": {
            "format": "int32",
            "type": "integer",
            "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "candidatesTokenCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of tokens across all the generated response candidates.",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "cachedContentTokenCount": {
            "format": "int32",
            "description": "Number of tokens in the cached part of the prompt (the cached content)",
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "cacheTokensDetails": {
            "items": {
              "$ref": "#/components/schemas/ModalityTokenCount"
            },
            "description": "Output only. List of modalities of the cached content in the request input.",
            "readOnly": true,
            "type": "array"
          },
          "promptTokenCount": {
            "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.",
            "type": "integer",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "toolUsePromptTokensDetails": {
            "items": {
              "$ref": "#/components/schemas/ModalityTokenCount"
            },
            "readOnly": true,
            "description": "Output only. List of modalities that were processed for tool-use request inputs.",
            "type": "array"
          },
          "toolUsePromptTokenCount": {
            "readOnly": true,
            "description": "Output only. Number of tokens present in tool-use prompt(s).",
            "type": "integer",
            "format": "int32",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "thoughtsTokenCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true,
            "description": "Output only. Number of tokens of thoughts for thinking models.",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "candidatesTokensDetails": {
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/ModalityTokenCount"
            },
            "description": "Output only. List of modalities that were returned in the response."
          }
        },
        "description": "Metadata on the generation request's token usage."
      },
      "V1mainMediaResolution": {
        "description": "Media resolution for tokenization.",
        "properties": {
          "level": {
            "description": "The tokenization quality used for given media. for Gemini API support .",
            "enum": [
              "MEDIA_RESOLUTION_UNSPECIFIED",
              "MEDIA_RESOLUTION_LOW",
              "MEDIA_RESOLUTION_MEDIUM",
              "MEDIA_RESOLUTION_HIGH",
              "MEDIA_RESOLUTION_ULTRA_HIGH"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "VideoMetadata": {
        "type": "object",
        "deprecated": true,
        "properties": {
          "startOffset": {
            "type": "string",
            "description": "Optional. The start offset of the video.",
            "format": "google-duration"
          },
          "endOffset": {
            "format": "google-duration",
            "type": "string",
            "description": "Optional. The end offset of the video."
          },
          "fps": {
            "format": "double",
            "type": "number",
            "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].",
            "exclusiveMinimum": 0,
            "maximum": 24
          }
        },
        "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content."
      },
      "Web": {
        "description": "Chunk from the web.",
        "properties": {
          "uri": {
            "type": "string",
            "readOnly": true,
            "description": "Output only. URI reference of the chunk."
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "Output only. Title of the chunk."
          }
        },
        "type": "object"
      },
      "WebSearch": {
        "description": "Standard web search for grounding and related configurations.",
        "properties": {},
        "type": "object"
      },
      "WordInfo": {
        "description": "Information about a single recognized word.",
        "properties": {
          "startOffset": {
            "format": "google-duration",
            "description": "Optional. Start offset in time of the word relative to the start of the audio.",
            "type": "string"
          },
          "endOffset": {
            "description": "Optional. End offset in time of the word relative to the start of the audio.",
            "type": "string",
            "format": "google-duration"
          },
          "word": {
            "description": "Required. Transcript of the word.",
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "word"
        ]
      }
    }
  }
}
