{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-auth-token-schema.json",
  "title": "AuthToken",
  "description": "A request to create an ephemeral authentication token.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-auth-tokens-api-openapi.yml#/components/schemas/AuthToken",
  "type": "object",
  "properties": {
    "bidiGenerateContentSetup": {
      "$ref": "#/$defs/BidiGenerateContentSetup",
      "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`."
    },
    "expireTime": {
      "format": "google-datetime",
      "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.",
      "type": "string"
    },
    "uses": {
      "type": "integer",
      "format": "int32",
      "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1."
    },
    "newSessionExpireTime": {
      "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.",
      "format": "google-datetime",
      "type": "string"
    },
    "name": {
      "description": "Output only. Identifier. The token itself.",
      "readOnly": true,
      "type": "string"
    },
    "fieldMask": {
      "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.",
      "format": "google-fieldmask",
      "type": "string"
    }
  },
  "$defs": {
    "AudioResponseFormat": {
      "properties": {
        "bitRate": {
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).",
          "type": "integer",
          "format": "int32"
        },
        "sampleRate": {
          "description": "Optional. Sample rate in Hz.",
          "type": "integer",
          "format": "int32"
        },
        "mimeType": {
          "description": "Optional. The MIME type of the audio output.",
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ]
        },
        "delivery": {
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "type": "string",
          "description": "Optional. The delivery mode for the audio output."
        }
      },
      "description": "Configuration for audio output format.",
      "type": "object"
    },
    "AudioTranscription": {
      "type": "object",
      "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.",
      "properties": {
        "words": {
          "items": {
            "$ref": "#/$defs/WordInfo"
          },
          "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.",
          "type": "array"
        },
        "text": {
          "description": "Required. The transcription text of this audio segment.",
          "type": "string"
        },
        "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"
        }
      }
    },
    "AudioTranscriptionConfig": {
      "description": "The audio transcription configuration.",
      "properties": {
        "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`.",
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ],
          "type": "string"
        },
        "customVocabulary": {
          "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",
          "items": {
            "type": "string"
          }
        },
        "wordTimestamp": {
          "type": "boolean",
          "description": "Optional. Configures word-level timestamp generation."
        },
        "adaptationPhrases": {
          "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.",
          "items": {
            "type": "string"
          },
          "type": "array",
          "deprecated": true
        },
        "sourceText": {
          "type": "string",
          "description": "Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."
        },
        "languageCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection."
        },
        "diarization": {
          "type": "boolean",
          "description": "Optional. Configures speaker diarization."
        },
        "languageHints": {
          "$ref": "#/$defs/LanguageHints",
          "description": "Optional. Specifies one or more languages in the audio."
        },
        "languageAuto": {
          "$ref": "#/$defs/LanguageAuto",
          "description": "Optional. The model will detect the language automatically."
        }
      },
      "type": "object"
    },
    "AutomaticActivityDetection": {
      "properties": {
        "disabled": {
          "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals.",
          "type": "boolean"
        },
        "startOfSpeechSensitivity": {
          "description": "Optional. Determines how likely speech is to be detected.",
          "type": "string",
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ]
        },
        "endOfSpeechSensitivity": {
          "description": "Optional. Determines how likely detected speech is ended.",
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "type": "string"
        },
        "silenceDurationMs": {
          "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.",
          "format": "int32",
          "type": "integer"
        },
        "prefixPaddingMs": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives."
        }
      },
      "type": "object",
      "description": "Configures automatic detection of activity."
    },
    "BidiGenerateContentSetup": {
      "properties": {
        "model": {
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`",
          "type": "string"
        },
        "systemInstruction": {
          "$ref": "#/$defs/Content",
          "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph."
        },
        "tools": {
          "type": "array",
          "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.",
          "items": {
            "$ref": "#/$defs/Tool"
          }
        },
        "inputAudioTranscription": {
          "$ref": "#/$defs/AudioTranscriptionConfig",
          "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured."
        },
        "proactivity": {
          "$ref": "#/$defs/ProactivityConfig",
          "description": "Optional. Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input."
        },
        "contextWindowCompression": {
          "$ref": "#/$defs/ContextWindowCompressionConfig",
          "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length."
        },
        "realtimeInputConfig": {
          "$ref": "#/$defs/RealtimeInputConfig",
          "description": "Optional. Configures the handling of realtime input."
        },
        "historyConfig": {
          "$ref": "#/$defs/HistoryConfig",
          "description": "Optional. Configures the exchange of history between the client and the server."
        },
        "outputAudioTranscription": {
          "$ref": "#/$defs/AudioTranscriptionConfig",
          "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured."
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "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\"}`)"
        },
        "sessionResumption": {
          "$ref": "#/$defs/SessionResumptionConfig",
          "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages."
        },
        "generationConfig": {
          "$ref": "#/$defs/GenerationConfig",
          "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`"
        }
      },
      "type": "object",
      "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages."
    },
    "Blob": {
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "properties": {
        "mimeType": {
          "type": "string",
          "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://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        },
        "data": {
          "format": "byte",
          "description": "Raw bytes for media formats.",
          "type": "string"
        },
        "displayName": {
          "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`.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CodeExecution": {
      "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.",
      "properties": {},
      "type": "object"
    },
    "CodeExecutionResult": {
      "type": "object",
      "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
      "properties": {
        "id": {
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.",
          "type": "string"
        },
        "output": {
          "type": "string",
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."
        },
        "outcome": {
          "type": "string",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ],
          "description": "Required. Outcome of the code execution."
        }
      }
    },
    "ComputerUse": {
      "properties": {
        "disabledSafetyPolicies": {
          "description": "Optional. Disabled safety policies for computer use.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SAFETY_POLICY_UNSPECIFIED",
              "FINANCIAL_TRANSACTIONS",
              "SENSITIVE_DATA_MODIFICATION",
              "COMMUNICATION_TOOL",
              "ACCOUNT_CREATION",
              "DATA_MODIFICATION",
              "USER_CONSENT_MANAGEMENT",
              "LEGAL_TERMS_AND_AGREEMENTS"
            ]
          }
        },
        "environment": {
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ],
          "type": "string",
          "description": "Required. The environment being operated."
        },
        "excludedPredefinedFunctions": {
          "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.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "enablePromptInjectionDetection": {
          "description": "Optional. Whether enable the prompt injection detection check on computer-use request.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "Computer Use tool type."
    },
    "Content": {
      "properties": {
        "parts": {
          "type": "array",
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",
          "items": {
            "$ref": "#/$defs/Part"
          }
        },
        "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"
        }
      },
      "type": "object",
      "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."
    },
    "ContextWindowCompressionConfig": {
      "description": "Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length.",
      "type": "object",
      "properties": {
        "slidingWindow": {
          "$ref": "#/$defs/SlidingWindow",
          "description": "A sliding-window mechanism."
        },
        "triggerTokens": {
          "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.",
          "type": "string",
          "format": "int64"
        }
      }
    },
    "DynamicRetrievalConfig": {
      "type": "object",
      "properties": {
        "mode": {
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ],
          "type": "string"
        },
        "dynamicThreshold": {
          "format": "float",
          "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.",
          "type": "number"
        }
      },
      "description": "Describes the options to customize dynamic retrieval."
    },
    "ExecutableCode": {
      "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.",
      "properties": {
        "language": {
          "type": "string",
          "description": "Required. Programming language of the `code`.",
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ]
        },
        "id": {
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",
          "type": "string"
        },
        "code": {
          "type": "string",
          "description": "Required. The code to be executed."
        }
      },
      "type": "object"
    },
    "FileData": {
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "displayName": {
          "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`.",
          "type": "string"
        },
        "mimeType": {
          "description": "Optional. The IANA standard MIME type of the source data.",
          "type": "string"
        }
      },
      "description": "URI based data.",
      "type": "object"
    },
    "FileSearch": {
      "type": "object",
      "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
      "properties": {
        "topK": {
          "type": "integer",
          "description": "Optional. The number of semantic retrieval chunks to retrieve.",
          "format": "int32"
        },
        "metadataFilter": {
          "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
          "type": "string"
        },
        "fileSearchStoreNames": {
          "items": {
            "type": "string"
          },
          "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",
          "type": "array"
        }
      }
    },
    "FunctionCall": {
      "properties": {
        "name": {
          "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.",
          "type": "string"
        },
        "args": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "Optional. The function parameters and values in JSON object format."
        },
        "id": {
          "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values."
    },
    "FunctionDeclaration": {
      "properties": {
        "behavior": {
          "type": "string",
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ],
          "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method."
        },
        "parameters": {
          "$ref": "#/$defs/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": {
          "type": "string",
          "description": "Required. A brief description of the function."
        },
        "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`."
        },
        "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": {
          "$ref": "#/$defs/Schema",
          "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."
        },
        "name": {
          "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.",
          "type": "string"
        }
      },
      "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."
    },
    "FunctionResponse": {
      "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.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`."
        },
        "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": {
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object",
          "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` or `file_data.display_name` of a `FunctionResponsePart` holding the multimedia. See [Multimodal function responses](https://aistudio.google.com/docs/function-calling#multimodal)."
        },
        "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."
        },
        "willContinue": {
          "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`.",
          "type": "boolean"
        },
        "parts": {
          "type": "array",
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.",
          "items": {
            "$ref": "#/$defs/FunctionResponsePart"
          }
        }
      },
      "type": "object"
    },
    "FunctionResponseBlob": {
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
      "properties": {
        "displayName": {
          "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{\"$ref\": \"DISPLAY_NAME\"}`).",
          "type": "string"
        },
        "data": {
          "type": "string",
          "description": "Raw bytes for media formats.",
          "format": "byte"
        },
        "mimeType": {
          "type": "string",
          "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://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        }
      },
      "type": "object"
    },
    "FunctionResponseFileData": {
      "description": "URI based data for function response.",
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "mimeType": {
          "description": "The IANA standard MIME type of the source data. If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Multimodal function responses](https://aistudio.google.com/docs/function-calling#multimodal) and [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{\"$ref\": \"DISPLAY_NAME\"}`)."
        }
      },
      "type": "object"
    },
    "FunctionResponsePart": {
      "properties": {
        "inlineData": {
          "$ref": "#/$defs/FunctionResponseBlob",
          "description": "Inline media bytes."
        },
        "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.",
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ],
          "type": "string"
        },
        "fileData": {
          "$ref": "#/$defs/FunctionResponseFileData",
          "description": "URI based data."
        }
      },
      "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`. Media can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with an IANA MIME type identifying the type and subtype of the media."
    },
    "GenerationConfig": {
      "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.",
      "type": "object",
      "properties": {
        "responseMimeType": {
          "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://aistudio.google.com/docs/file-input-methods#text-file-types) for a list of all supported text MIME types.",
          "type": "string"
        },
        "logprobs": {
          "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].",
          "format": "int32",
          "type": "integer"
        },
        "speechConfig": {
          "$ref": "#/$defs/SpeechConfig",
          "description": "Optional. The speech generation config."
        },
        "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"
        },
        "responseFormat": {
          "$ref": "#/$defs/ResponseFormatConfig",
          "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure."
        },
        "imageConfig": {
          "$ref": "#/$defs/ImageConfig",
          "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options."
        },
        "_responseJsonSchema": {
          "description": "Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set. Deprecated. Use `response_format` instead.",
          "deprecated": true
        },
        "enableAffectiveDialog": {
          "type": "boolean",
          "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly."
        },
        "mediaResolution": {
          "type": "string",
          "description": "Optional. If specified, the media resolution specified will be used.",
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH"
          ]
        },
        "presencePenalty": {
          "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.",
          "type": "number",
          "format": "float"
        },
        "seed": {
          "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.",
          "format": "int32",
          "type": "integer"
        },
        "responseSchema": {
          "$ref": "#/$defs/Schema",
          "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://aistudio.google.com/docs/structured-output) for more details. Deprecated. Use `response_format` instead."
        },
        "enableEnhancedCivicAnswers": {
          "description": "Optional. Enables enhanced civic answers. It may not be available for all models.",
          "type": "boolean"
        },
        "responseJsonSchema": {
          "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field."
        },
        "temperature": {
          "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.",
          "format": "float",
          "type": "number"
        },
        "thinkingConfig": {
          "$ref": "#/$defs/ThinkingConfig",
          "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking."
        },
        "candidateCount": {
          "type": "integer",
          "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)",
          "format": "int32"
        },
        "maxOutputTokens": {
          "type": "integer",
          "format": "int32",
          "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."
        },
        "topP": {
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.",
          "type": "number",
          "format": "float"
        },
        "audioTranscriptionConfig": {
          "$ref": "#/$defs/AudioTranscriptionConfig",
          "description": "Optional. Config for audio transcription (speech recognition)."
        },
        "topK": {
          "format": "int32",
          "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.",
          "type": "integer"
        },
        "translationConfig": {
          "$ref": "#/$defs/TranslationConfig",
          "description": "Optional. Config for translation."
        },
        "responseModalities": {
          "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.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "AUDIO"
            ]
          }
        },
        "responseLogprobs": {
          "type": "boolean",
          "description": "Optional. If true, export the logprobs results in response."
        },
        "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."
        }
      }
    },
    "GoogleMaps": {
      "properties": {
        "enableWidget": {
          "type": "boolean",
          "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."
        }
      },
      "description": "The GoogleMaps Tool that provides geospatial context for the user's query.",
      "type": "object"
    },
    "GoogleSearch": {
      "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
      "type": "object",
      "properties": {
        "searchTypes": {
          "$ref": "#/$defs/SearchTypes",
          "description": "Optional. The set of search types to enable. If not set, web search is enabled by default."
        },
        "timeRangeFilter": {
          "$ref": "#/$defs/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)."
        }
      }
    },
    "GoogleSearchRetrieval": {
      "description": "Tool to retrieve public web data for grounding, powered by Google.",
      "properties": {
        "dynamicRetrievalConfig": {
          "$ref": "#/$defs/DynamicRetrievalConfig",
          "description": "Specifies the dynamic retrieval configuration for the given source."
        }
      },
      "type": "object"
    },
    "HistoryConfig": {
      "type": "object",
      "properties": {
        "initialHistoryInClientContent": {
          "type": "boolean",
          "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`."
        }
      },
      "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages."
    },
    "ImageConfig": {
      "properties": {
        "imageSize": {
          "type": "string",
          "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`."
        },
        "aspectRatio": {
          "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided.",
          "type": "string"
        }
      },
      "description": "Config for image generation features.",
      "type": "object"
    },
    "ImageResponseFormat": {
      "description": "Configuration for image output format.",
      "properties": {
        "mimeType": {
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "IMAGE_JPEG"
          ],
          "description": "Optional. The MIME type of the image output."
        },
        "imageSize": {
          "type": "string",
          "description": "Optional. The size of the image output.",
          "enum": [
            "IMAGE_SIZE_UNSPECIFIED",
            "IMAGE_SIZE_FIVE_TWELVE",
            "IMAGE_SIZE_ONE_K",
            "IMAGE_SIZE_TWO_K",
            "IMAGE_SIZE_FOUR_K"
          ]
        },
        "aspectRatio": {
          "type": "string",
          "description": "Optional. The aspect ratio for the image output.",
          "enum": [
            "ASPECT_RATIO_UNSPECIFIED",
            "ASPECT_RATIO_ONE_BY_ONE",
            "ASPECT_RATIO_TWO_BY_THREE",
            "ASPECT_RATIO_THREE_BY_TWO",
            "ASPECT_RATIO_THREE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_THREE",
            "ASPECT_RATIO_FOUR_BY_FIVE",
            "ASPECT_RATIO_FIVE_BY_FOUR",
            "ASPECT_RATIO_NINE_BY_SIXTEEN",
            "ASPECT_RATIO_SIXTEEN_BY_NINE",
            "ASPECT_RATIO_TWENTY_ONE_BY_NINE",
            "ASPECT_RATIO_ONE_BY_EIGHT",
            "ASPECT_RATIO_EIGHT_BY_ONE",
            "ASPECT_RATIO_ONE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_ONE"
          ]
        },
        "delivery": {
          "description": "Optional. The delivery mode for the image output.",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "ImageSearch": {
      "properties": {},
      "description": "Image search for grounding and related configurations.",
      "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": {
          "type": "string",
          "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",
          "format": "google-datetime"
        },
        "endTime": {
          "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.",
          "type": "string",
          "format": "google-datetime"
        }
      }
    },
    "LanguageAuto": {
      "properties": {},
      "description": "Indicates the language of the audio should be automatically detected.",
      "type": "object",
      "deprecated": true
    },
    "LanguageHints": {
      "properties": {
        "languageCodes": {
          "description": "Required. BCP-47 language codes.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "deprecated": true
        }
      },
      "type": "object",
      "description": "Provides hints to the model about possible languages present in the audio.",
      "deprecated": true
    },
    "McpServer": {
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the MCPServer."
        },
        "streamableHttpTransport": {
          "$ref": "#/$defs/StreamableHttpTransport",
          "description": "A transport that can stream HTTP requests and responses."
        }
      },
      "type": "object",
      "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."
    },
    "MultiSpeakerVoiceConfig": {
      "type": "object",
      "description": "The configuration for the multi-speaker setup.",
      "properties": {
        "speakerVoiceConfigs": {
          "items": {
            "$ref": "#/$defs/SpeakerVoiceConfig"
          },
          "type": "array",
          "description": "Required. All the enabled speaker voices."
        }
      }
    },
    "Part": {
      "properties": {
        "executableCode": {
          "$ref": "#/$defs/ExecutableCode",
          "description": "Code generated by the model that is meant to be executed."
        },
        "codeExecutionResult": {
          "$ref": "#/$defs/CodeExecutionResult",
          "description": "Result of executing the `ExecutableCode`."
        },
        "functionResponse": {
          "$ref": "#/$defs/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."
        },
        "inlineData": {
          "$ref": "#/$defs/Blob",
          "description": "Inline media bytes."
        },
        "thought": {
          "description": "Optional. Indicates if the part is thought from the model.",
          "type": "boolean"
        },
        "toolResponse": {
          "$ref": "#/$defs/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`."
        },
        "toolCall": {
          "$ref": "#/$defs/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."
        },
        "videoMetadata": {
          "$ref": "#/$defs/VideoMetadata",
          "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
        },
        "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"
          ]
        },
        "functionCall": {
          "$ref": "#/$defs/FunctionCall",
          "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values."
        },
        "mediaResolution": {
          "$ref": "#/$defs/V1mainMediaResolution",
          "description": "Optional. Media resolution for the input media."
        },
        "partMetadata": {
          "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."
          },
          "type": "object"
        },
        "fileData": {
          "$ref": "#/$defs/FileData",
          "description": "URI based data."
        },
        "thoughtSignature": {
          "type": "string",
          "format": "byte",
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests."
        },
        "text": {
          "type": "string",
          "description": "Inline text."
        },
        "audioTranscription": {
          "$ref": "#/$defs/AudioTranscription",
          "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data."
        },
        "speechMetadata": {
          "$ref": "#/$defs/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."
        }
      },
      "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"
    },
    "PrebuiltVoiceConfig": {
      "properties": {
        "voiceName": {
          "type": "string",
          "description": "Optional. The name of the preset voice to use."
        }
      },
      "type": "object",
      "description": "The configuration for the prebuilt speaker to use."
    },
    "ProactivityConfig": {
      "properties": {
        "proactiveVideo": {
          "description": "Optional. If enabled, the system might trigger a generation on each received image. This requires that `proactive_audio` is enabled. The rate of generation depends on the rate of incoming images and can cause a significant increase in cost.",
          "type": "boolean"
        },
        "proactiveAudio": {
          "description": "Optional. If enabled, the model can reject responding to the last prompt. For example, this allows the model to ignore out of context speech or to stay silent if the user did not make a request, yet.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "Config for proactivity features."
    },
    "RealtimeInputConfig": {
      "properties": {
        "automaticActivityDetection": {
          "$ref": "#/$defs/AutomaticActivityDetection",
          "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals."
        },
        "activityHandling": {
          "enum": [
            "ACTIVITY_HANDLING_UNSPECIFIED",
            "START_OF_ACTIVITY_INTERRUPTS",
            "NO_INTERRUPTION"
          ],
          "type": "string",
          "description": "Optional. Defines what effect activity has."
        },
        "interimTranscriptTimestampEnabled": {
          "type": "boolean",
          "description": "Optional. Configures interim transcript timestamps."
        },
        "turnCoverage": {
          "description": "Optional. Defines which input is included in the user's turn.",
          "enum": [
            "TURN_COVERAGE_UNSPECIFIED",
            "TURN_INCLUDES_ONLY_ACTIVITY",
            "TURN_INCLUDES_ALL_INPUT",
            "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
          ],
          "type": "string"
        }
      },
      "type": "object",
      "description": "Configures the realtime input behavior in `BidiGenerateContent`."
    },
    "ResponseFormatConfig": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/$defs/TextResponseFormat",
          "description": "Optional. Text output format configuration."
        },
        "audio": {
          "$ref": "#/$defs/AudioResponseFormat",
          "description": "Optional. Audio output format configuration."
        },
        "image": {
          "$ref": "#/$defs/ImageResponseFormat",
          "description": "Optional. Image output format configuration."
        }
      },
      "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality."
    },
    "Schema": {
      "type": "object",
      "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).",
      "properties": {
        "enum": {
          "type": "array",
          "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\"]}"
        },
        "minItems": {
          "format": "int64",
          "description": "Optional. Minimum number of the elements for Type.ARRAY.",
          "type": "string"
        },
        "minLength": {
          "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING",
          "format": "int64",
          "type": "string"
        },
        "minProperties": {
          "description": "Optional. Minimum number of the properties for Type.OBJECT.",
          "format": "int64",
          "type": "string"
        },
        "maximum": {
          "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER",
          "type": "number",
          "format": "double"
        },
        "required": {
          "items": {
            "type": "string"
          },
          "description": "Optional. Required properties of Type.OBJECT.",
          "type": "array"
        },
        "items": {
          "$ref": "#/$defs/Schema",
          "description": "Optional. Schema of the elements of Type.ARRAY."
        },
        "nullable": {
          "description": "Optional. Indicates if the value may be null.",
          "type": "boolean"
        },
        "anyOf": {
          "type": "array",
          "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.",
          "items": {
            "$ref": "#/$defs/Schema"
          }
        },
        "maxLength": {
          "type": "string",
          "description": "Optional. Maximum length of the Type.STRING",
          "format": "int64"
        },
        "maxProperties": {
          "type": "string",
          "format": "int64",
          "description": "Optional. Maximum number of the properties for Type.OBJECT."
        },
        "pattern": {
          "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.",
          "type": "string"
        },
        "maxItems": {
          "description": "Optional. Maximum number of the elements for Type.ARRAY.",
          "type": "string",
          "format": "int64"
        },
        "minimum": {
          "format": "double",
          "type": "number",
          "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER"
        },
        "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"
        },
        "propertyOrdering": {
          "type": "array",
          "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.",
          "items": {
            "type": "string"
          }
        },
        "format": {
          "type": "string",
          "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality."
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Schema"
          },
          "type": "object",
          "description": "Optional. Properties of Type.OBJECT."
        },
        "type": {
          "type": "string",
          "description": "Required. Data type.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT",
            "NULL"
          ]
        },
        "description": {
          "type": "string",
          "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown."
        }
      }
    },
    "SearchTypes": {
      "description": "Different types of search that can be enabled on the GoogleSearch tool.",
      "type": "object",
      "properties": {
        "imageSearch": {
          "$ref": "#/$defs/ImageSearch",
          "description": "Optional. Enables image search. Image bytes are returned."
        },
        "webSearch": {
          "$ref": "#/$defs/WebSearch",
          "description": "Optional. Enables web search. Only text results are returned."
        }
      }
    },
    "SessionResumptionConfig": {
      "properties": {
        "handle": {
          "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages."
    },
    "SlidingWindow": {
      "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.",
      "properties": {
        "targetTokens": {
          "format": "int64",
          "type": "string",
          "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations."
        }
      },
      "type": "object"
    },
    "SpeakerVoiceConfig": {
      "description": "The configuration for a single speaker in a multi speaker setup.",
      "type": "object",
      "properties": {
        "voiceConfig": {
          "$ref": "#/$defs/VoiceConfig",
          "description": "Required. The configuration for the voice to use."
        },
        "speaker": {
          "description": "Required. The name of the speaker to use. Should be the same as in the prompt.",
          "type": "string"
        }
      }
    },
    "SpeechConfig": {
      "type": "object",
      "properties": {
        "multiSpeakerVoiceConfig": {
          "$ref": "#/$defs/MultiSpeakerVoiceConfig",
          "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field."
        },
        "voiceConfig": {
          "$ref": "#/$defs/VoiceConfig",
          "description": "The configuration in case of single-voice output."
        },
        "languageCode": {
          "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`.",
          "type": "string"
        }
      },
      "description": "Config for speech generation and transcription."
    },
    "SpeechMetadata": {
      "description": "Speech metadata for `text` parts.",
      "properties": {
        "speaker": {
          "description": "Optional. Optional speaker name for multi-speaker synthesis.",
          "type": "string"
        },
        "style": {
          "description": "Optional. Optional style instruction for the speech synthesis.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "StreamableHttpTransport": {
      "properties": {
        "url": {
          "type": "string",
          "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\""
        },
        "sseReadTimeout": {
          "description": "Timeout for SSE read operations.",
          "type": "string",
          "format": "google-duration"
        },
        "headers": {
          "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "timeout": {
          "format": "google-duration",
          "description": "HTTP timeout for regular operations.",
          "type": "string"
        },
        "terminateOnClose": {
          "type": "boolean",
          "description": "Whether to close the client session when the transport closes."
        }
      },
      "description": "A transport that can stream HTTP requests and responses.",
      "type": "object"
    },
    "TextResponseFormat": {
      "description": "Configuration for text output format.",
      "properties": {
        "schema": {
          "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON."
        },
        "mimeType": {
          "description": "Optional. The MIME type of the text output.",
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "APPLICATION_JSON",
            "TEXT_PLAIN"
          ]
        }
      },
      "type": "object"
    },
    "ThinkingConfig": {
      "description": "Config for thinking features.",
      "properties": {
        "includeThoughts": {
          "type": "boolean",
          "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available."
        },
        "thinkingBudget": {
          "format": "int32",
          "type": "integer",
          "description": "The number of thoughts tokens that the model should generate."
        },
        "thinkingLevel": {
          "enum": [
            "THINKING_LEVEL_UNSPECIFIED",
            "MINIMAL",
            "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://aistudio.google.com/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Tool": {
      "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.",
      "type": "object",
      "properties": {
        "urlContext": {
          "$ref": "#/$defs/UrlContext",
          "description": "Optional. Tool to support URL context retrieval."
        },
        "googleSearchRetrieval": {
          "$ref": "#/$defs/GoogleSearchRetrieval",
          "description": "Optional. Retrieval tool that is powered by Google search."
        },
        "fileSearch": {
          "$ref": "#/$defs/FileSearch",
          "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora."
        },
        "googleSearch": {
          "$ref": "#/$defs/GoogleSearch",
          "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
        },
        "codeExecution": {
          "$ref": "#/$defs/CodeExecution",
          "description": "Optional. Enables the model to execute code as part of generation."
        },
        "mcpServers": {
          "type": "array",
          "description": "Optional. MCP Servers to connect to.",
          "items": {
            "$ref": "#/$defs/McpServer"
          }
        },
        "computerUse": {
          "$ref": "#/$defs/ComputerUse",
          "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations."
        },
        "functionDeclarations": {
          "items": {
            "$ref": "#/$defs/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.",
          "type": "array"
        },
        "googleMaps": {
          "$ref": "#/$defs/GoogleMaps",
          "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query."
        }
      }
    },
    "ToolCall": {
      "type": "object",
      "properties": {
        "id": {
          "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.",
          "type": "string"
        },
        "toolName": {
          "type": "string",
          "description": "Optional. The name of the tool that was called."
        },
        "args": {
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}"
        },
        "toolType": {
          "type": "string",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH",
            "MEDIA_PROCESSING"
          ],
          "description": "Required. The type of tool that was called."
        }
      },
      "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`."
    },
    "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": {
        "id": {
          "description": "Optional. The identifier of the tool call this response is for.",
          "type": "string"
        },
        "toolType": {
          "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH",
            "MEDIA_PROCESSING"
          ],
          "type": "string"
        },
        "response": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "Optional. The tool response."
        }
      }
    },
    "TranslationConfig": {
      "description": "Config for translation features.",
      "properties": {
        "echoTargetLanguage": {
          "type": "boolean",
          "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."
        },
        "targetLanguageCode": {
          "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\").",
          "type": "string"
        }
      },
      "type": "object"
    },
    "UrlContext": {
      "description": "Tool to support URL context retrieval.",
      "properties": {},
      "type": "object"
    },
    "V1mainMediaResolution": {
      "properties": {
        "level": {
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH",
            "MEDIA_RESOLUTION_ULTRA_HIGH"
          ],
          "description": "The tokenization quality used for given media. for Gemini API support .",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Media resolution for tokenization."
    },
    "VideoMetadata": {
      "properties": {
        "endOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Optional. The end offset of the video."
        },
        "startOffset": {
          "type": "string",
          "description": "Optional. The start offset of the video.",
          "format": "google-duration"
        },
        "fps": {
          "format": "double",
          "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].",
          "type": "number"
        }
      },
      "description": "Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers).",
      "type": "object"
    },
    "VoiceConfig": {
      "properties": {
        "voice": {
          "type": "string",
          "description": "Optional. The speaker identifier for synthesis. Supported formats: * Speaker name for prebuilt voices (for example, `Orus` or `Kore`). * Voice ID for stored voices (for example, `voice_xxx`). * Voice replication key (for example, `voicekey_xxx`)."
        },
        "prebuiltVoiceConfig": {
          "$ref": "#/$defs/PrebuiltVoiceConfig",
          "description": "The configuration for the prebuilt voice to use."
        }
      },
      "description": "The configuration for the voice to use.",
      "type": "object"
    },
    "WebSearch": {
      "properties": {},
      "description": "Standard web search for grounding and related configurations.",
      "type": "object"
    },
    "WordInfo": {
      "description": "Information about a single recognized word.",
      "properties": {
        "word": {
          "type": "string",
          "description": "Required. Transcript of the word."
        },
        "startOffset": {
          "format": "google-duration",
          "description": "Optional. Start offset in time of the word relative to the start of the audio.",
          "type": "string"
        },
        "endOffset": {
          "format": "google-duration",
          "description": "Optional. End offset in time of the word relative to the start of the audio.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}