From c0a3b24da0e53230d1fbcea58f90c6c6e003cca5 Mon Sep 17 00:00:00 2001
From: Shahin Saadati The sub-agents of this agent. Validates that all sub-agents have unique names. value – The list of sub-agents to validate. The validated list of sub-agents. project – The project ID of the Memory Bank to use. location – The location of the Memory Bank to use. agent_engine_id – The ID of the agent engine to use for the Memory Bank.
+ agent_engine_id – The ID of the agent engine to use for the Memory Bank,
e.g. ‘456’ in
-‘projects/my-project/locations/us-central1/reasoningEngines/456’.A
A
+ A
A
C
C
G
G
H
@@ -1428,6 +1440,14 @@ I
I
@@ -2193,16 +2227,16 @@
+
+ L
M
M
M
M
P
R
S
S
S
S
S
T
-
- T
+
@@ -2267,10 +2307,10 @@ U
V
SubmodulesValidators:
validate_name » namevalidate_sub_agents_unique_names » sub_agentsSubmodules
field sub_agents: list[BaseAgent] [Optional]¶
+
+
+validate_sub_agents_unique_names
@@ -522,6 +530,23 @@
+Submodulesvalidator validate_name » name¶
+
+
+
+list[BaseAgent]
Submodules "additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -1222,13 +1248,12 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -1236,8 +1261,8 @@
Submodules }
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -1334,7 +1359,7 @@
Submodules },
"Citation": {
"additionalProperties": false,
- "description": "Source attributions for content.",
+ "description": "Source attributions for content.\n\nThis data type is not supported in Gemini API.",
"properties": {
"endIndex": {
"anyOf": [
@@ -1504,7 +1529,7 @@
Submodules }
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -2040,7 +2065,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -2136,8 +2161,37 @@
Submodules }
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
}
},
"title": "FunctionCall",
@@ -2262,6 +2316,19 @@
Submodules "default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -2296,6 +2363,19 @@
Submodules "default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -2346,7 +2426,7 @@
Submodules },
"GenerateContentResponseUsageMetadata": {
"additionalProperties": false,
- "description": "Usage metadata about response(s).",
+ "description": "Usage metadata about the content generation request and response.\n\nThis message provides a detailed breakdown of token usage and other relevant\nmetrics. This data type is not supported in Gemini API.",
"properties": {
"cacheTokensDetails": {
"anyOf": [
@@ -2361,7 +2441,7 @@
Submodules }
],
"default": null,
- "description": "Output only. List of modalities of the cached content in the request input.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the cached content.",
"title": "Cachetokensdetails"
},
"cachedContentTokenCount": {
@@ -2374,7 +2454,7 @@
Submodules }
],
"default": null,
- "description": "Output only. Number of tokens in the cached part in the input (the cached content).",
+ "description": "Output only. The number of tokens in the cached content that was used for this request.",
"title": "Cachedcontenttokencount"
},
"candidatesTokenCount": {
@@ -2387,7 +2467,7 @@
Submodules }
],
"default": null,
- "description": "Number of tokens in the response(s).",
+ "description": "The total number of tokens in the generated candidates.",
"title": "Candidatestokencount"
},
"candidatesTokensDetails": {
@@ -2403,7 +2483,7 @@
Submodules }
],
"default": null,
- "description": "Output only. List of modalities that were returned in the response.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates.",
"title": "Candidatestokensdetails"
},
"promptTokenCount": {
@@ -2416,7 +2496,7 @@
Submodules }
],
"default": null,
- "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.",
+ "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.",
"title": "Prompttokencount"
},
"promptTokensDetails": {
@@ -2432,7 +2512,7 @@
Submodules }
],
"default": null,
- "description": "Output only. List of modalities that were processed in the request input.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.",
"title": "Prompttokensdetails"
},
"thoughtsTokenCount": {
@@ -2445,7 +2525,7 @@
Submodules }
],
"default": null,
- "description": "Output only. Number of tokens present in thoughts output.",
+ "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.",
"title": "Thoughtstokencount"
},
"toolUsePromptTokenCount": {
@@ -2458,7 +2538,7 @@
Submodules }
],
"default": null,
- "description": "Output only. Number of tokens present in tool-use prompt(s).",
+ "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.",
"title": "Tooluseprompttokencount"
},
"toolUsePromptTokensDetails": {
@@ -2474,7 +2554,7 @@
Submodules }
],
"default": null,
- "description": "Output only. List of modalities that were processed for tool-use request inputs.",
+ "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.",
"title": "Tooluseprompttokensdetails"
},
"totalTokenCount": {
@@ -2487,7 +2567,7 @@
Submodules }
],
"default": null,
- "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).",
+ "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.",
"title": "Totaltokencount"
},
"trafficType": {
@@ -2500,7 +2580,7 @@
Submodules }
],
"default": null,
- "description": "Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota."
+ "description": "Output only. The traffic type for this request."
}
},
"title": "GenerateContentResponseUsageMetadata",
@@ -2508,7 +2588,7 @@
Submodules },
"GoogleTypeDate": {
"additionalProperties": false,
- "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
+ "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp. This\ndata type is not supported in Gemini API.",
"properties": {
"day": {
"anyOf": [
@@ -2567,7 +2647,7 @@
Submodules }
],
"default": null,
- "description": "Grounding chunk from Google Maps."
+ "description": "Grounding chunk from Google Maps. This field is not supported in Gemini API."
},
"retrievedContext": {
"anyOf": [
@@ -2579,7 +2659,7 @@
Submodules }
],
"default": null,
- "description": "Grounding chunk from context retrieved by the retrieval tools."
+ "description": "Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API."
},
"web": {
"anyOf": [
@@ -2599,7 +2679,7 @@
Submodules },
"GroundingChunkMaps": {
"additionalProperties": false,
- "description": "Chunk from Google Maps.",
+ "description": "Chunk from Google Maps. This data type is not supported in Gemini API.",
"properties": {
"placeAnswerSources": {
"anyOf": [
@@ -2636,7 +2716,7 @@
Submodules }
],
"default": null,
- "description": "Text of the chunk.",
+ "description": "Text of the place answer.",
"title": "Text"
},
"title": {
@@ -2649,7 +2729,7 @@
Submodules }
],
"default": null,
- "description": "Title of the chunk.",
+ "description": "Title of the place.",
"title": "Title"
},
"uri": {
@@ -2662,7 +2742,7 @@
Submodules }
],
"default": null,
- "description": "URI reference of the chunk.",
+ "description": "URI reference of the place.",
"title": "Uri"
}
},
@@ -2671,7 +2751,7 @@
Submodules },
"GroundingChunkMapsPlaceAnswerSources": {
"additionalProperties": false,
- "description": "Sources used to generate the place answer.",
+ "description": "Sources used to generate the place answer.\n\nThis data type is not supported in Gemini API.",
"properties": {
"flagContentUri": {
"anyOf": [
@@ -2708,7 +2788,7 @@
Submodules },
"GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution": {
"additionalProperties": false,
- "description": "Author attribution for a photo or review.",
+ "description": "Author attribution for a photo or review.\n\nThis data type is not supported in Gemini API.",
"properties": {
"displayName": {
"anyOf": [
@@ -2755,7 +2835,7 @@
Submodules },
"GroundingChunkMapsPlaceAnswerSourcesReviewSnippet": {
"additionalProperties": false,
- "description": "Encapsulates a review snippet.",
+ "description": "Encapsulates a review snippet.\n\nThis data type is not supported in Gemini API.",
"properties": {
"authorAttribution": {
"anyOf": [
@@ -2853,7 +2933,7 @@
Submodules },
"GroundingChunkRetrievedContext": {
"additionalProperties": false,
- "description": "Chunk from context retrieved by the retrieval tools.",
+ "description": "Chunk from context retrieved by the retrieval tools.\n\nThis data type is not supported in Gemini API.",
"properties": {
"documentName": {
"anyOf": [
@@ -2937,7 +3017,7 @@
Submodules }
],
"default": null,
- "description": "Domain of the (original) URI.",
+ "description": "Domain of the (original) URI. This field is not supported in Gemini API.",
"title": "Domain"
},
"title": {
@@ -2984,7 +3064,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.",
+ "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. This field is not supported in Gemini API.",
"title": "Googlemapswidgetcontexttoken"
},
"groundingChunks": {
@@ -3044,7 +3124,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Queries executed by the retrieval tools.",
+ "description": "Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API.",
"title": "Retrievalqueries"
},
"searchEntryPoint": {
@@ -3072,7 +3152,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding.",
+ "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API.",
"title": "Sourceflagginguris"
},
"webSearchQueries": {
@@ -3097,7 +3177,7 @@
Submodules },
"GroundingMetadataSourceFlaggingUri": {
"additionalProperties": false,
- "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding.",
+ "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding. This data type is\nnot supported in Gemini API.",
"properties": {
"flagContentUri": {
"anyOf": [
@@ -3316,7 +3396,7 @@
Submodules "type": "object"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -3530,7 +3610,7 @@
Submodules },
"MultiSpeakerVoiceConfig": {
"additionalProperties": false,
- "description": "The configuration for the multi-speaker setup.",
+ "description": "The configuration for the multi-speaker setup.\n\nThis data type is not supported in Vertex AI.",
"properties": {
"speakerVoiceConfigs": {
"anyOf": [
@@ -3545,7 +3625,7 @@
Submodules }
],
"default": null,
- "description": "The configuration for the speaker to use.",
+ "description": "Required. All the enabled speaker voices.",
"title": "Speakervoiceconfigs"
}
},
@@ -4060,7 +4140,7 @@
Submodules "type": "object"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -4074,42 +4154,41 @@
Submodules "additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -4123,6 +4202,68 @@
Submodules "default": null,
"description": "Optional. URI based data."
},
+ "functionCall": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionCall"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
+ },
+ "functionResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionResponse"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. 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 call. It is used as context to the model."
+ },
+ "inlineData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Blob"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Inlined bytes data."
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
+ },
+ "thought": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
+ },
"thoughtSignature": {
"anyOf": [
{
@@ -4134,58 +4275,127 @@
Submodules }
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
"title": "Thoughtsignature"
},
- "functionCall": {
+ "videoMetadata": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
+ }
+ },
+ "title": "Part",
+ "type": "object"
+ },
+ "PartMediaResolution": {
+ "additionalProperties": false,
+ "description": "Media resolution for the input media.",
+ "properties": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "The tokenization quality used for given media.\n "
},
- "codeExecutionResult": {
+ "numTokens": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "type": "integer"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
},
- "executableCode": {
+ "numberValue": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
},
- "functionResponse": {
+ "stringValue": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
},
- "text": {
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
"anyOf": [
{
"type": "string"
@@ -4195,11 +4405,24 @@
Submodules }
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
}
},
- "title": "Part",
+ "title": "PartialArg",
"type": "object"
},
"PrebuiltVoiceConfig": {
@@ -4216,7 +4439,7 @@
Submodules }
],
"default": null,
- "description": "The name of the prebuilt voice to use.",
+ "description": "The name of the preset voice to use.",
"title": "Voicename"
}
},
@@ -4246,7 +4469,7 @@
Submodules },
"RagChunk": {
"additionalProperties": false,
- "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.",
+ "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.\n\nThis data type is not supported in Gemini API.",
"properties": {
"pageSpan": {
"anyOf": [
@@ -4279,7 +4502,7 @@
Submodules },
"RagChunkPageSpan": {
"additionalProperties": false,
- "description": "Represents where the chunk starts and ends in the document.",
+ "description": "Represents where the chunk starts and ends in the document.\n\nThis data type is not supported in Gemini API.",
"properties": {
"firstPage": {
"anyOf": [
@@ -4878,7 +5101,7 @@
Submodules },
"SpeakerVoiceConfig": {
"additionalProperties": false,
- "description": "The configuration for the speaker to use.",
+ "description": "Configuration for a single speaker in a multi speaker setup.",
"properties": {
"speaker": {
"anyOf": [
@@ -4890,7 +5113,7 @@
Submodules }
],
"default": null,
- "description": "The name of the speaker to use. Should be the same as in the\n prompt.",
+ "description": "Required. The name of the speaker. This should be the same as the speaker name used in the prompt.",
"title": "Speaker"
},
"voiceConfig": {
@@ -4903,7 +5126,7 @@
Submodules }
],
"default": null,
- "description": "The configuration for the voice to use."
+ "description": "Required. The configuration for the voice of this speaker."
}
},
"title": "SpeakerVoiceConfig",
@@ -4911,44 +5134,44 @@
Submodules },
"SpeechConfig": {
"additionalProperties": false,
- "description": "The speech generation configuration.",
+ "description": "The speech generation config.",
"properties": {
- "voiceConfig": {
+ "languageCode": {
"anyOf": [
{
- "$ref": "#/$defs/VoiceConfig"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The configuration for the speaker to use.\n "
+ "description": "Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.",
+ "title": "Languagecode"
},
- "multiSpeakerVoiceConfig": {
+ "voiceConfig": {
"anyOf": [
{
- "$ref": "#/$defs/MultiSpeakerVoiceConfig"
+ "$ref": "#/$defs/VoiceConfig"
},
{
"type": "null"
}
],
"default": null,
- "description": "The configuration for the multi-speaker setup.\n It is mutually exclusive with the voice_config field.\n "
+ "description": "The configuration for the speaker to use."
},
- "languageCode": {
+ "multiSpeakerVoiceConfig": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/MultiSpeakerVoiceConfig"
},
{
"type": "null"
}
],
"default": null,
- "description": "Language code (ISO 639. e.g. en-US) for the speech synthesization.\n Only available for Live API.\n ",
- "title": "Languagecode"
+ "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field. This field is not supported in Vertex AI."
}
},
"title": "SpeechConfig",
@@ -5001,7 +5224,7 @@
Submodules "type": "object"
},
"TrafficType": {
- "description": "Output only.\n\nTraffic type. This shows whether a request consumes Pay-As-You-Go or\nProvisioned Throughput quota.",
+ "description": "Output only.\n\nThe traffic type for this request. This enum is not supported in Gemini API.",
"enum": [
"TRAFFIC_TYPE_UNSPECIFIED",
"ON_DEMAND",
@@ -5090,33 +5313,33 @@
Submodules },
"VideoMetadata": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Metadata describes the input video content.",
"properties": {
- "fps": {
+ "endOffset": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. The end offset of the video.",
+ "title": "Endoffset"
},
- "endOffset": {
+ "fps": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. The end offset of the video.",
- "title": "Endoffset"
+ "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].",
+ "title": "Fps"
},
"startOffset": {
"anyOf": [
@@ -5149,7 +5372,7 @@
Submodules }
],
"default": null,
- "description": "The configuration for the speaker to use.\n "
+ "description": "The configuration for the prebuilt voice to use."
}
},
"title": "VoiceConfig",
@@ -5550,9 +5773,10 @@
Submodules "additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -5560,13 +5784,12 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -5574,8 +5797,8 @@
Submodules }
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -5657,7 +5880,7 @@
Submodules }
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -5711,7 +5934,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -5785,8 +6008,37 @@
Submodules }
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
}
},
"title": "FunctionCall",
@@ -5911,6 +6163,19 @@
Submodules "default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -5945,6 +6210,19 @@
Submodules "default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -5994,7 +6272,7 @@
Submodules "type": "string"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -6003,7 +6281,7 @@
Submodules "type": "string"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -6017,42 +6295,41 @@
Submodules "additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -6066,71 +6343,72 @@
Submodules "default": null,
"description": "Optional. URI based data."
},
- "thoughtSignature": {
+ "functionCall": {
"anyOf": [
{
- "format": "base64url",
- "type": "string"
+ "$ref": "#/$defs/FunctionCall"
},
{
"type": "null"
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
- "title": "Thoughtsignature"
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
},
- "functionCall": {
+ "functionResponse": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/FunctionResponse"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "Optional. 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 call. It is used as context to the model."
},
- "codeExecutionResult": {
+ "inlineData": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "$ref": "#/$defs/Blob"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Optional. Inlined bytes data."
},
- "executableCode": {
+ "text": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
},
- "functionResponse": {
+ "thought": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "boolean"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
},
- "text": {
+ "thoughtSignature": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -6138,18 +6416,88 @@
Submodules }
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
+ "title": "Thoughtsignature"
+ },
+ "videoMetadata": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
}
},
"title": "Part",
"type": "object"
},
- "VideoMetadata": {
+ "PartMediaResolution": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Media resolution for the input media.",
"properties": {
- "fps": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The tokenization quality used for given media.\n "
+ },
+ "numTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
+ },
+ "numberValue": {
"anyOf": [
{
"type": "number"
@@ -6159,9 +6507,69 @@
Submodules }
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
+ },
+ "stringValue": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
+ },
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
},
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
+ }
+ },
+ "title": "PartialArg",
+ "type": "object"
+ },
+ "VideoMetadata": {
+ "additionalProperties": false,
+ "description": "Metadata describes the input video content.",
+ "properties": {
"endOffset": {
"anyOf": [
{
@@ -6175,6 +6583,19 @@
Submodules "description": "Optional. The end offset of the video.",
"title": "Endoffset"
},
+ "fps": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "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].",
+ "title": "Fps"
+ },
"startOffset": {
"anyOf": [
{
@@ -6636,9 +7057,10 @@
Submodules "additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -6646,13 +7068,12 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -6660,8 +7081,8 @@
Submodules }
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -6743,7 +7164,7 @@
Submodules }
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -6988,7 +7409,7 @@
Submodules }
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -7134,34 +7555,63 @@
Submodules }
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
- }
- },
- "title": "FunctionCall",
- "type": "object"
- },
- "FunctionResponse": {
- "additionalProperties": false,
- "description": "A function response.",
- "properties": {
- "willContinue": {
+ },
+ "partialArgs": {
"anyOf": [
{
- "type": "boolean"
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
},
{
"type": "null"
}
],
"default": null,
- "description": "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 (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. 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.",
- "title": "Willcontinue"
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
},
- "scheduling": {
+ "willContinue": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponseScheduling"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
+ }
+ },
+ "title": "FunctionCall",
+ "type": "object"
+ },
+ "FunctionResponse": {
+ "additionalProperties": false,
+ "description": "A function response.",
+ "properties": {
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "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 (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. 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.",
+ "title": "Willcontinue"
+ },
+ "scheduling": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionResponseScheduling"
},
{
"type": "null"
@@ -7260,6 +7710,19 @@
Submodules "default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -7294,6 +7757,19 @@
Submodules "default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -7343,7 +7819,7 @@
Submodules "type": "string"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -7352,7 +7828,7 @@
Submodules "type": "string"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -7366,42 +7842,41 @@
Submodules "additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -7415,71 +7890,72 @@
Submodules "default": null,
"description": "Optional. URI based data."
},
- "thoughtSignature": {
+ "functionCall": {
"anyOf": [
{
- "format": "base64url",
- "type": "string"
+ "$ref": "#/$defs/FunctionCall"
},
{
"type": "null"
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
- "title": "Thoughtsignature"
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
},
- "functionCall": {
+ "functionResponse": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/FunctionResponse"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "Optional. 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 call. It is used as context to the model."
},
- "codeExecutionResult": {
+ "inlineData": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "$ref": "#/$defs/Blob"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Optional. Inlined bytes data."
},
- "executableCode": {
+ "text": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
},
- "functionResponse": {
+ "thought": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "boolean"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
},
- "text": {
+ "thoughtSignature": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -7487,18 +7963,88 @@
Submodules }
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
+ "title": "Thoughtsignature"
+ },
+ "videoMetadata": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
}
},
"title": "Part",
"type": "object"
},
- "VideoMetadata": {
+ "PartMediaResolution": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Media resolution for the input media.",
"properties": {
- "fps": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The tokenization quality used for given media.\n "
+ },
+ "numTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
+ },
+ "numberValue": {
"anyOf": [
{
"type": "number"
@@ -7508,9 +8054,69 @@
Submodules }
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
+ },
+ "stringValue": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
+ },
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
},
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
+ }
+ },
+ "title": "PartialArg",
+ "type": "object"
+ },
+ "VideoMetadata": {
+ "additionalProperties": false,
+ "description": "Metadata describes the input video content.",
+ "properties": {
"endOffset": {
"anyOf": [
{
@@ -7524,6 +8130,19 @@
Submodules "description": "Optional. The end offset of the video.",
"title": "Endoffset"
},
+ "fps": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "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].",
+ "title": "Fps"
+ },
"startOffset": {
"anyOf": [
{
@@ -8713,7 +9332,7 @@
)¶
},
"MultiSpeakerVoiceConfig": {
"additionalProperties": false,
- "description": "The configuration for the multi-speaker setup.",
+ "description": "The configuration for the multi-speaker setup.\n\nThis data type is not supported in Vertex AI.",
"properties": {
"speakerVoiceConfigs": {
"anyOf": [
@@ -8728,7 +9347,7 @@ )¶
}
],
"default": null,
- "description": "The configuration for the speaker to use.",
+ "description": "Required. All the enabled speaker voices.",
"title": "Speakervoiceconfigs"
}
},
@@ -8749,7 +9368,7 @@ )¶
}
],
"default": null,
- "description": "The name of the prebuilt voice to use.",
+ "description": "The name of the preset voice to use.",
"title": "Voicename"
}
},
@@ -8878,7 +9497,7 @@ )¶
},
"SpeakerVoiceConfig": {
"additionalProperties": false,
- "description": "The configuration for the speaker to use.",
+ "description": "Configuration for a single speaker in a multi speaker setup.",
"properties": {
"speaker": {
"anyOf": [
@@ -8890,7 +9509,7 @@ )¶
}
],
"default": null,
- "description": "The name of the speaker to use. Should be the same as in the\n prompt.",
+ "description": "Required. The name of the speaker. This should be the same as the speaker name used in the prompt.",
"title": "Speaker"
},
"voiceConfig": {
@@ -8903,7 +9522,7 @@ )¶
}
],
"default": null,
- "description": "The configuration for the voice to use."
+ "description": "Required. The configuration for the voice of this speaker."
}
},
"title": "SpeakerVoiceConfig",
@@ -8911,44 +9530,44 @@ )¶
},
"SpeechConfig": {
"additionalProperties": false,
- "description": "The speech generation configuration.",
+ "description": "The speech generation config.",
"properties": {
- "voiceConfig": {
+ "languageCode": {
"anyOf": [
{
- "$ref": "#/$defs/VoiceConfig"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The configuration for the speaker to use.\n "
+ "description": "Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.",
+ "title": "Languagecode"
},
- "multiSpeakerVoiceConfig": {
+ "voiceConfig": {
"anyOf": [
{
- "$ref": "#/$defs/MultiSpeakerVoiceConfig"
+ "$ref": "#/$defs/VoiceConfig"
},
{
"type": "null"
}
],
"default": null,
- "description": "The configuration for the multi-speaker setup.\n It is mutually exclusive with the voice_config field.\n "
+ "description": "The configuration for the speaker to use."
},
- "languageCode": {
+ "multiSpeakerVoiceConfig": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/MultiSpeakerVoiceConfig"
},
{
"type": "null"
}
],
"default": null,
- "description": "Language code (ISO 639. e.g. en-US) for the speech synthesization.\n Only available for Live API.\n ",
- "title": "Languagecode"
+ "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field. This field is not supported in Vertex AI."
}
},
"title": "SpeechConfig",
@@ -8996,7 +9615,7 @@ )¶
}
],
"default": null,
- "description": "The configuration for the speaker to use.\n "
+ "description": "The configuration for the prebuilt voice to use."
}
},
"title": "VoiceConfig",
@@ -10008,9 +10627,10 @@ )¶
"additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -10018,13 +10638,12 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -10032,8 +10651,8 @@ )¶
}
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -10132,7 +10751,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -10206,18 +10825,47 @@ )¶
}
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
- }
- },
- "title": "FunctionCall",
- "type": "object"
- },
- "FunctionResponse": {
- "additionalProperties": false,
- "description": "A function response.",
- "properties": {
- "willContinue": {
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
+ }
+ },
+ "title": "FunctionCall",
+ "type": "object"
+ },
+ "FunctionResponse": {
+ "additionalProperties": false,
+ "description": "A function response.",
+ "properties": {
+ "willContinue": {
"anyOf": [
{
"type": "boolean"
@@ -10332,6 +10980,19 @@ )¶
"default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -10366,6 +11027,19 @@ )¶
"default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -10415,7 +11089,7 @@ )¶
"type": "string"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -10424,7 +11098,7 @@ )¶
"type": "string"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -10438,42 +11112,41 @@ )¶
"additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -10487,71 +11160,72 @@ )¶
"default": null,
"description": "Optional. URI based data."
},
- "thoughtSignature": {
+ "functionCall": {
"anyOf": [
{
- "format": "base64url",
- "type": "string"
+ "$ref": "#/$defs/FunctionCall"
},
{
"type": "null"
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
- "title": "Thoughtsignature"
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
},
- "functionCall": {
+ "functionResponse": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/FunctionResponse"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "Optional. 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 call. It is used as context to the model."
},
- "codeExecutionResult": {
+ "inlineData": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "$ref": "#/$defs/Blob"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Optional. Inlined bytes data."
},
- "executableCode": {
+ "text": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
},
- "functionResponse": {
+ "thought": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "boolean"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
},
- "text": {
+ "thoughtSignature": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -10559,18 +11233,88 @@ )¶
}
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
+ "title": "Thoughtsignature"
+ },
+ "videoMetadata": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
}
},
"title": "Part",
"type": "object"
},
- "VideoMetadata": {
+ "PartMediaResolution": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Media resolution for the input media.",
"properties": {
- "fps": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The tokenization quality used for given media.\n "
+ },
+ "numTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
+ },
+ "numberValue": {
"anyOf": [
{
"type": "number"
@@ -10580,9 +11324,69 @@ )¶
}
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
+ },
+ "stringValue": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
+ },
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
},
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
+ }
+ },
+ "title": "PartialArg",
+ "type": "object"
+ },
+ "VideoMetadata": {
+ "additionalProperties": false,
+ "description": "Metadata describes the input video content.",
+ "properties": {
"endOffset": {
"anyOf": [
{
@@ -10596,6 +11400,19 @@ )¶
"description": "Optional. The end offset of the video.",
"title": "Endoffset"
},
+ "fps": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "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].",
+ "title": "Fps"
+ },
"startOffset": {
"anyOf": [
{
@@ -12267,9 +13084,10 @@ )¶
"additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -12277,13 +13095,12 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -12291,8 +13108,8 @@ )¶
}
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -12389,7 +13206,7 @@ )¶
},
"Citation": {
"additionalProperties": false,
- "description": "Source attributions for content.",
+ "description": "Source attributions for content.\n\nThis data type is not supported in Gemini API.",
"properties": {
"endIndex": {
"anyOf": [
@@ -12559,7 +13376,7 @@ )¶
}
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -12755,7 +13572,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -12851,8 +13668,37 @@ )¶
}
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
}
},
"title": "FunctionCall",
@@ -12977,7 +13823,20 @@ )¶
"default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
- }
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
+ }
},
"title": "FunctionResponseBlob",
"type": "object"
@@ -13011,6 +13870,19 @@ )¶
"default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -13061,7 +13933,7 @@ )¶
},
"GenerateContentResponseUsageMetadata": {
"additionalProperties": false,
- "description": "Usage metadata about response(s).",
+ "description": "Usage metadata about the content generation request and response.\n\nThis message provides a detailed breakdown of token usage and other relevant\nmetrics. This data type is not supported in Gemini API.",
"properties": {
"cacheTokensDetails": {
"anyOf": [
@@ -13076,7 +13948,7 @@ )¶
}
],
"default": null,
- "description": "Output only. List of modalities of the cached content in the request input.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the cached content.",
"title": "Cachetokensdetails"
},
"cachedContentTokenCount": {
@@ -13089,7 +13961,7 @@ )¶
}
],
"default": null,
- "description": "Output only. Number of tokens in the cached part in the input (the cached content).",
+ "description": "Output only. The number of tokens in the cached content that was used for this request.",
"title": "Cachedcontenttokencount"
},
"candidatesTokenCount": {
@@ -13102,7 +13974,7 @@ )¶
}
],
"default": null,
- "description": "Number of tokens in the response(s).",
+ "description": "The total number of tokens in the generated candidates.",
"title": "Candidatestokencount"
},
"candidatesTokensDetails": {
@@ -13118,7 +13990,7 @@ )¶
}
],
"default": null,
- "description": "Output only. List of modalities that were returned in the response.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates.",
"title": "Candidatestokensdetails"
},
"promptTokenCount": {
@@ -13131,7 +14003,7 @@ )¶
}
],
"default": null,
- "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.",
+ "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.",
"title": "Prompttokencount"
},
"promptTokensDetails": {
@@ -13147,7 +14019,7 @@ )¶
}
],
"default": null,
- "description": "Output only. List of modalities that were processed in the request input.",
+ "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.",
"title": "Prompttokensdetails"
},
"thoughtsTokenCount": {
@@ -13160,7 +14032,7 @@ )¶
}
],
"default": null,
- "description": "Output only. Number of tokens present in thoughts output.",
+ "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.",
"title": "Thoughtstokencount"
},
"toolUsePromptTokenCount": {
@@ -13173,7 +14045,7 @@ )¶
}
],
"default": null,
- "description": "Output only. Number of tokens present in tool-use prompt(s).",
+ "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.",
"title": "Tooluseprompttokencount"
},
"toolUsePromptTokensDetails": {
@@ -13189,7 +14061,7 @@ )¶
}
],
"default": null,
- "description": "Output only. List of modalities that were processed for tool-use request inputs.",
+ "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.",
"title": "Tooluseprompttokensdetails"
},
"totalTokenCount": {
@@ -13202,7 +14074,7 @@ )¶
}
],
"default": null,
- "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).",
+ "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.",
"title": "Totaltokencount"
},
"trafficType": {
@@ -13215,7 +14087,7 @@ )¶
}
],
"default": null,
- "description": "Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota."
+ "description": "Output only. The traffic type for this request."
}
},
"title": "GenerateContentResponseUsageMetadata",
@@ -13223,7 +14095,7 @@ )¶
},
"GoogleTypeDate": {
"additionalProperties": false,
- "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
+ "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp. This\ndata type is not supported in Gemini API.",
"properties": {
"day": {
"anyOf": [
@@ -13282,7 +14154,7 @@ )¶
}
],
"default": null,
- "description": "Grounding chunk from Google Maps."
+ "description": "Grounding chunk from Google Maps. This field is not supported in Gemini API."
},
"retrievedContext": {
"anyOf": [
@@ -13294,7 +14166,7 @@ )¶
}
],
"default": null,
- "description": "Grounding chunk from context retrieved by the retrieval tools."
+ "description": "Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API."
},
"web": {
"anyOf": [
@@ -13314,7 +14186,7 @@ )¶
},
"GroundingChunkMaps": {
"additionalProperties": false,
- "description": "Chunk from Google Maps.",
+ "description": "Chunk from Google Maps. This data type is not supported in Gemini API.",
"properties": {
"placeAnswerSources": {
"anyOf": [
@@ -13351,7 +14223,7 @@ )¶
}
],
"default": null,
- "description": "Text of the chunk.",
+ "description": "Text of the place answer.",
"title": "Text"
},
"title": {
@@ -13364,7 +14236,7 @@ )¶
}
],
"default": null,
- "description": "Title of the chunk.",
+ "description": "Title of the place.",
"title": "Title"
},
"uri": {
@@ -13377,7 +14249,7 @@ )¶
}
],
"default": null,
- "description": "URI reference of the chunk.",
+ "description": "URI reference of the place.",
"title": "Uri"
}
},
@@ -13386,7 +14258,7 @@ )¶
},
"GroundingChunkMapsPlaceAnswerSources": {
"additionalProperties": false,
- "description": "Sources used to generate the place answer.",
+ "description": "Sources used to generate the place answer.\n\nThis data type is not supported in Gemini API.",
"properties": {
"flagContentUri": {
"anyOf": [
@@ -13423,7 +14295,7 @@ )¶
},
"GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution": {
"additionalProperties": false,
- "description": "Author attribution for a photo or review.",
+ "description": "Author attribution for a photo or review.\n\nThis data type is not supported in Gemini API.",
"properties": {
"displayName": {
"anyOf": [
@@ -13470,7 +14342,7 @@ )¶
},
"GroundingChunkMapsPlaceAnswerSourcesReviewSnippet": {
"additionalProperties": false,
- "description": "Encapsulates a review snippet.",
+ "description": "Encapsulates a review snippet.\n\nThis data type is not supported in Gemini API.",
"properties": {
"authorAttribution": {
"anyOf": [
@@ -13568,7 +14440,7 @@ )¶
},
"GroundingChunkRetrievedContext": {
"additionalProperties": false,
- "description": "Chunk from context retrieved by the retrieval tools.",
+ "description": "Chunk from context retrieved by the retrieval tools.\n\nThis data type is not supported in Gemini API.",
"properties": {
"documentName": {
"anyOf": [
@@ -13652,7 +14524,7 @@ )¶
}
],
"default": null,
- "description": "Domain of the (original) URI.",
+ "description": "Domain of the (original) URI. This field is not supported in Gemini API.",
"title": "Domain"
},
"title": {
@@ -13699,7 +14571,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.",
+ "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. This field is not supported in Gemini API.",
"title": "Googlemapswidgetcontexttoken"
},
"groundingChunks": {
@@ -13759,7 +14631,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Queries executed by the retrieval tools.",
+ "description": "Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API.",
"title": "Retrievalqueries"
},
"searchEntryPoint": {
@@ -13787,7 +14659,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding.",
+ "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API.",
"title": "Sourceflagginguris"
},
"webSearchQueries": {
@@ -13812,7 +14684,7 @@ )¶
},
"GroundingMetadataSourceFlaggingUri": {
"additionalProperties": false,
- "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding.",
+ "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding. This data type is\nnot supported in Gemini API.",
"properties": {
"flagContentUri": {
"anyOf": [
@@ -14031,7 +14903,7 @@ )¶
"type": "object"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -14751,7 +15623,7 @@ )¶
"type": "object"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -14765,42 +15637,41 @@ )¶
"additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -14814,6 +15685,68 @@ )¶
"default": null,
"description": "Optional. URI based data."
},
+ "functionCall": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionCall"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
+ },
+ "functionResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionResponse"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. 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 call. It is used as context to the model."
+ },
+ "inlineData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Blob"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Inlined bytes data."
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
+ },
+ "thought": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
+ },
"thoughtSignature": {
"anyOf": [
{
@@ -14825,58 +15758,127 @@ )¶
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
"title": "Thoughtsignature"
},
- "functionCall": {
+ "videoMetadata": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
+ }
+ },
+ "title": "Part",
+ "type": "object"
+ },
+ "PartMediaResolution": {
+ "additionalProperties": false,
+ "description": "Media resolution for the input media.",
+ "properties": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "The tokenization quality used for given media.\n "
},
- "codeExecutionResult": {
+ "numTokens": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "type": "integer"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
},
- "executableCode": {
+ "numberValue": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
},
- "functionResponse": {
+ "stringValue": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
},
- "text": {
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
"anyOf": [
{
"type": "string"
@@ -14886,16 +15888,29 @@ )¶
}
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
}
},
- "title": "Part",
+ "title": "PartialArg",
"type": "object"
},
"RagChunk": {
"additionalProperties": false,
- "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.",
+ "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.\n\nThis data type is not supported in Gemini API.",
"properties": {
"pageSpan": {
"anyOf": [
@@ -14928,7 +15943,7 @@ )¶
},
"RagChunkPageSpan": {
"additionalProperties": false,
- "description": "Represents where the chunk starts and ends in the document.",
+ "description": "Represents where the chunk starts and ends in the document.\n\nThis data type is not supported in Gemini API.",
"properties": {
"firstPage": {
"anyOf": [
@@ -15221,7 +16236,7 @@ )¶
"type": "object"
},
"TrafficType": {
- "description": "Output only.\n\nTraffic type. This shows whether a request consumes Pay-As-You-Go or\nProvisioned Throughput quota.",
+ "description": "Output only.\n\nThe traffic type for this request. This enum is not supported in Gemini API.",
"enum": [
"TRAFFIC_TYPE_UNSPECIFIED",
"ON_DEMAND",
@@ -15266,33 +16281,33 @@ )¶
},
"VideoMetadata": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Metadata describes the input video content.",
"properties": {
- "fps": {
+ "endOffset": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. The end offset of the video.",
+ "title": "Endoffset"
},
- "endOffset": {
+ "fps": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. The end offset of the video.",
- "title": "Endoffset"
+ "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].",
+ "title": "Fps"
},
"startOffset": {
"anyOf": [
@@ -15762,9 +16777,10 @@ )¶
"additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -15772,13 +16788,12 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -15786,8 +16801,8 @@ )¶
}
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -15869,7 +16884,7 @@ )¶
}
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -15947,7 +16962,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -16021,8 +17036,37 @@ )¶
}
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
}
},
"title": "FunctionCall",
@@ -16147,6 +17191,19 @@ )¶
"default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -16181,6 +17238,19 @@ )¶
"default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -16364,7 +17434,7 @@ )¶
"type": "object"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -16880,7 +17950,7 @@ )¶
"type": "object"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -16894,42 +17964,41 @@ )¶
"additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "$ref": "#/$defs/PartMediaResolution"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Media resolution for the input media.\n "
},
- "thought": {
+ "codeExecutionResult": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/CodeExecutionResult"
},
{
"type": "null"
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
- "title": "Thought"
+ "description": "Optional. Result of executing the [ExecutableCode]."
},
- "inlineData": {
+ "executableCode": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "$ref": "#/$defs/ExecutableCode"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. Code generated by the model that is meant to be executed."
},
"fileData": {
"anyOf": [
@@ -16943,6 +18012,68 @@ )¶
"default": null,
"description": "Optional. URI based data."
},
+ "functionCall": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionCall"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
+ },
+ "functionResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionResponse"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. 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 call. It is used as context to the model."
+ },
+ "inlineData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Blob"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Inlined bytes data."
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
+ },
+ "thought": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Indicates if the part is thought from the model.",
+ "title": "Thought"
+ },
"thoughtSignature": {
"anyOf": [
{
@@ -16954,58 +18085,127 @@ )¶
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
"title": "Thoughtsignature"
},
- "functionCall": {
+ "videoMetadata": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "$ref": "#/$defs/VideoMetadata"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
+ }
+ },
+ "title": "Part",
+ "type": "object"
+ },
+ "PartMediaResolution": {
+ "additionalProperties": false,
+ "description": "Media resolution for the input media.",
+ "properties": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "The tokenization quality used for given media.\n "
},
- "codeExecutionResult": {
+ "numTokens": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "type": "integer"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
},
- "executableCode": {
+ "numberValue": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
},
- "functionResponse": {
+ "stringValue": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
},
- "text": {
+ "boolValue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
+ },
+ "jsonPath": {
"anyOf": [
{
"type": "string"
@@ -17015,11 +18215,24 @@ )¶
}
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
}
},
- "title": "Part",
+ "title": "PartialArg",
"type": "object"
},
"SecuritySchemeType": {
@@ -17168,33 +18381,33 @@ )¶
},
"VideoMetadata": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Metadata describes the input video content.",
"properties": {
- "fps": {
+ "endOffset": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. The end offset of the video.",
+ "title": "Endoffset"
},
- "endOffset": {
+ "fps": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. The end offset of the video.",
- "title": "Endoffset"
+ "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].",
+ "title": "Fps"
},
"startOffset": {
"anyOf": [
@@ -17383,9 +18596,10 @@ )¶
"additionalProperties": false,
"description": "Content blob.",
"properties": {
- "displayName": {
+ "data": {
"anyOf": [
{
+ "format": "base64url",
"type": "string"
},
{
@@ -17393,13 +18607,12 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.",
- "title": "Displayname"
+ "description": "Required. Raw bytes.",
+ "title": "Data"
},
- "data": {
+ "displayName": {
"anyOf": [
{
- "format": "base64url",
"type": "string"
},
{
@@ -17407,8 +18620,8 @@ )¶
}
],
"default": null,
- "description": "Required. Raw bytes.",
- "title": "Data"
+ "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
+ "title": "Displayname"
},
"mimeType": {
"anyOf": [
@@ -17490,7 +18703,7 @@ )¶
}
],
"default": null,
- "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.",
"title": "Role"
}
},
@@ -17544,7 +18757,7 @@ )¶
}
],
"default": null,
- "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.",
+ "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.",
"title": "Displayname"
},
"fileUri": {
@@ -17618,8 +18831,37 @@ )¶
}
],
"default": null,
- "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].",
+ "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].",
"title": "Name"
+ },
+ "partialArgs": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/PartialArg"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.",
+ "title": "Partialargs"
+ },
+ "willContinue": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.",
+ "title": "Willcontinue"
}
},
"title": "FunctionCall",
@@ -17744,6 +18986,19 @@ )¶
"default": null,
"description": "Required. Inline media bytes.",
"title": "Data"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseBlob",
@@ -17778,6 +19033,19 @@ )¶
"default": null,
"description": "Required. The IANA standard MIME type of the source data.",
"title": "Mimetype"
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.",
+ "title": "Displayname"
}
},
"title": "FunctionResponseFileData",
@@ -17827,7 +19095,7 @@ )¶
"type": "string"
},
"Language": {
- "description": "Required. Programming language of the `code`.",
+ "description": "Programming language of the `code`.",
"enum": [
"LANGUAGE_UNSPECIFIED",
"PYTHON"
@@ -17836,7 +19104,7 @@ )¶
"type": "string"
},
"Outcome": {
- "description": "Required. Outcome of the code execution.",
+ "description": "Outcome of the code execution.",
"enum": [
"OUTCOME_UNSPECIFIED",
"OUTCOME_OK",
@@ -17850,17 +19118,102 @@ )¶
"additionalProperties": false,
"description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.",
"properties": {
- "videoMetadata": {
+ "mediaResolution": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolution"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Media resolution for the input media.\n "
+ },
+ "codeExecutionResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CodeExecutionResult"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Result of executing the [ExecutableCode]."
+ },
+ "executableCode": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ExecutableCode"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Code generated by the model that is meant to be executed."
+ },
+ "fileData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileData"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. URI based data."
+ },
+ "functionCall": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionCall"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values."
+ },
+ "functionResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FunctionResponse"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. 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 call. It is used as context to the model."
+ },
+ "inlineData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Blob"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional. Inlined bytes data."
+ },
+ "text": {
"anyOf": [
{
- "$ref": "#/$defs/VideoMetadata"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Metadata for a given video."
+ "description": "Optional. Text part (can be code).",
+ "title": "Text"
},
"thought": {
"anyOf": [
@@ -17872,37 +19225,91 @@ )¶
}
],
"default": null,
- "description": "Indicates if the part is thought from the model.",
+ "description": "Optional. Indicates if the part is thought from the model.",
"title": "Thought"
},
- "inlineData": {
+ "thoughtSignature": {
"anyOf": [
{
- "$ref": "#/$defs/Blob"
+ "format": "base64url",
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Inlined bytes data."
+ "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
+ "title": "Thoughtsignature"
},
- "fileData": {
+ "videoMetadata": {
"anyOf": [
{
- "$ref": "#/$defs/FileData"
+ "$ref": "#/$defs/VideoMetadata"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. URI based data."
+ "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
+ }
+ },
+ "title": "Part",
+ "type": "object"
+ },
+ "PartMediaResolution": {
+ "additionalProperties": false,
+ "description": "Media resolution for the input media.",
+ "properties": {
+ "level": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PartMediaResolutionLevel"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The tokenization quality used for given media.\n "
},
- "thoughtSignature": {
+ "numTokens": {
"anyOf": [
{
- "format": "base64url",
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Specifies the required sequence length for media tokenization.\n ",
+ "title": "Numtokens"
+ }
+ },
+ "title": "PartMediaResolution",
+ "type": "object"
+ },
+ "PartMediaResolutionLevel": {
+ "description": "The tokenization quality used for given media.",
+ "enum": [
+ "MEDIA_RESOLUTION_UNSPECIFIED",
+ "MEDIA_RESOLUTION_LOW",
+ "MEDIA_RESOLUTION_MEDIUM",
+ "MEDIA_RESOLUTION_HIGH"
+ ],
+ "title": "PartMediaResolutionLevel",
+ "type": "string"
+ },
+ "PartialArg": {
+ "additionalProperties": false,
+ "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.",
+ "properties": {
+ "nullValue": {
+ "anyOf": [
+ {
+ "const": "NULL_VALUE",
"type": "string"
},
{
@@ -17910,103 +19317,107 @@ )¶
}
],
"default": null,
- "description": "An opaque signature for the thought so it can be reused in subsequent requests.",
- "title": "Thoughtsignature"
+ "description": "Optional. Represents a null value.",
+ "title": "Nullvalue"
},
- "functionCall": {
+ "numberValue": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionCall"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values."
+ "description": "Optional. Represents a double value.",
+ "title": "Numbervalue"
},
- "codeExecutionResult": {
+ "stringValue": {
"anyOf": [
{
- "$ref": "#/$defs/CodeExecutionResult"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Result of executing the [ExecutableCode]."
+ "description": "Optional. Represents a string value.",
+ "title": "Stringvalue"
},
- "executableCode": {
+ "boolValue": {
"anyOf": [
{
- "$ref": "#/$defs/ExecutableCode"
+ "type": "boolean"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Code generated by the model that is meant to be executed."
+ "description": "Optional. Represents a boolean value.",
+ "title": "Boolvalue"
},
- "functionResponse": {
+ "jsonPath": {
"anyOf": [
{
- "$ref": "#/$defs/FunctionResponse"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. 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 call. It is used as context to the model."
+ "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
+ "title": "Jsonpath"
},
- "text": {
+ "willContinue": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. Text part (can be code).",
- "title": "Text"
+ "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.",
+ "title": "Willcontinue"
}
},
- "title": "Part",
+ "title": "PartialArg",
"type": "object"
},
"VideoMetadata": {
"additionalProperties": false,
- "description": "Describes how the video in the Part should be used by the model.",
+ "description": "Metadata describes the input video content.",
"properties": {
- "fps": {
+ "endOffset": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
],
"default": null,
- "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].",
- "title": "Fps"
+ "description": "Optional. The end offset of the video.",
+ "title": "Endoffset"
},
- "endOffset": {
+ "fps": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
],
"default": null,
- "description": "Optional. The end offset of the video.",
- "title": "Endoffset"
+ "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].",
+ "title": "Fps"
},
"startOffset": {
"anyOf": [
@@ -18187,14 +19598,15 @@ )¶
agent_engine.api_resource.name.split('/')[-1]
express_mode_api_key – The API key to use for Express Mode. If not provided, the API key from the GOOGLE_API_KEY environment variable will -be used. It will only be used if GOOGLE_GENAI_USE_VERTEXAI is true. -Do not use Google AI Studio API key for this field. For more details, -visit +be used. It will only be used if GOOGLE_GENAI_USE_VERTEXAI is true. Do +not use Google AI Studio API key for this field. For more details, visit https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview
Bases: AnthropicLlm
Integration with Claude models served from Vertex AI.
+The name of the Claude model.
+The maximum number of tokens to generate.
+Show JSON schema
{
+ "title": "Claude",
+ "description": "Integration with Claude models served from Vertex AI.\n\nAttributes:\n model: The name of the Claude model.\n max_tokens: The maximum number of tokens to generate.",
+ "type": "object",
+ "properties": {
+ "model": {
+ "default": "claude-3-5-sonnet-v2@20241022",
+ "title": "Model",
+ "type": "string"
+ },
+ "max_tokens": {
+ "default": 8192,
+ "title": "Max Tokens",
+ "type": "integer"
+ }
+ }
+}
+
model (str)
The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-pro.
+The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-pro.
Allow Gemini to retry failed responses.
Sample: -```python +```python from google.genai import types
# …
)
Bases: BaseLlm
Wrapper around litellm.
+This wrapper can be used with any of the models supported by litellm. The +environment variable(s) needed for authenticating with the model endpoint must +be set prior to instantiating this class.
+Example usage: +``` +os.environ[“VERTEXAI_PROJECT”] = “your-gcp-project-id” +os.environ[“VERTEXAI_LOCATION”] = “your-gcp-location”
+model=LiteLlm(model=”vertex_ai/claude-3-7-sonnet@20250219”), +…
+The name of the LiteLlm model.
+The LLM client to use for the model.
+Initializes the LiteLlm class.
+The name of the LiteLlm model.
+Additional arguments to pass to the litellm completion api.
+Show JSON schema
{
+ "title": "LiteLlm",
+ "type": "object",
+ "properties": {
+ "model": {
+ "title": "Model",
+ "type": "string"
+ },
+ "llm_client": {
+ "default": null,
+ "title": "Llm Client"
+ }
+ },
+ "required": [
+ "model"
+ ]
+}
+
llm_client (LiteLLMClient)
The LLM client to use for the model.
+Provides the list of supported models.
+This registers common provider prefixes. LiteLlm can handle many more, +but these patterns activate the integration for the most common use cases. +See https://docs.litellm.ai/docs/providers for a full list.
+list[str]
A list of supported models.
+Generates content asynchronously.
+AsyncGenerator[LlmResponse, None]
llm_request – LlmRequest, the request to send to the LiteLlm model.
stream – bool = False, whether to do streaming call.
LlmResponse – The model response.
+This function is meant to behave like a BaseModel method to initialise private attributes.
+It takes context as an argument since that’s what pydantic-core passes when calling it.
+None
self – The BaseModel instance.
context – The context.
ThinkingConfig¶ThinkingConfig¶Config for model built-in thinking features. An error will be returned if this field is set for models that don’t support thinking.
Example: -```python +```python from my_project.plugins import ReflectAndRetryToolPlugin, TrackingScope
# Example 1: (MOST COMMON USAGE): # Track failures only within the current agent invocation (default). @@ -20224,7 +21819,7 @@
-async def extract_error_from_result(self, *, tool, tool_args,tool_context, +
async def extract_error_from_result(self, *, tool, tool_args,tool_context, result):
# Detect error based on response content @@ -20236,7 +21831,7 @@
)¶
error_handling_plugin = CustomRetryPlugin(max_retries=5) -```
+```Initializes the ReflectAndRetryToolPlugin.
+ +
- Parameters:
@@ -20453,20 +22048,25 @@)¶
-
@@ -20477,32 +22077,32 @@- -artifact_service:
+Optional[BaseArtifactService] = None¶- +artifact_service:
Optional[BaseArtifactService] = None¶The artifact service for the runner.
)¶
-
- -context_cache_config:
+Optional[ContextCacheConfig] = None¶- +context_cache_config:
Optional[ContextCacheConfig] = None¶The context cache config for the runner.
-
- -credential_service:
+Optional[BaseCredentialService] = None¶- +credential_service:
Optional[BaseCredentialService] = None¶The credential service for the runner.
-
- -memory_service:
+Optional[BaseMemoryService] = None¶- +memory_service:
Optional[BaseMemoryService] = None¶The memory service for the runner.
-
- -plugin_manager:
+PluginManager¶- +plugin_manager:
PluginManager¶The plugin manager for the runner.
-
@@ -20601,16 +22201,16 @@- -resumability_config:
+Optional[ResumabilityConfig] = None¶- +resumability_config:
Optional[ResumabilityConfig] = None¶The resumability config for the application.
)¶
Parameters: -
- +
user_messages – Message(s) to send to the agent. Can be: -- Single string: “What is 2+2?” -- List of strings: [“Hello!”, “What’s my name?”]
user_messages – Message(s) to send to the agent. Can be: - Single string: +“What is 2+2?” - List of strings: [“Hello!”, “What’s my name?”]
- -
user_id – User identifier. Defaults to “debug_user_id”.
- +
session_id – Session identifier for conversation persistence. -Defaults to “debug_session_id”. Reuse the same ID to continue a conversation.
session_id – Session identifier for conversation persistence. Defaults to +“debug_session_id”. Reuse the same ID to continue a conversation.
- -
run_config – Optional configuration for the agent execution.
- -
quiet – If True, suppresses console output. Defaults to False (output shown).
- +
verbose – If True, shows detailed tool calls and responses. Defaults to False -for cleaner output showing only final agent responses.
- +
quiet – If True, suppresses console output. Defaults to False (output +shown).
verbose – If True, shows detailed tool calls and responses. Defaults to +False for cleaner output showing only final agent responses.
Returns: @@ -20630,7 +22230,8 @@)¶
Multiple queries in conversation: >>> await runner.run_debug([“Hello!”, “What’s my name?”])
Continue a debug session: ->>> await runner.run_debug(“What did we discuss?”) # Continues default session
+>>> await runner.run_debug(“What did we discuss?”) # Continues default +sessionSeparate debug sessions: >>> await runner.run_debug(“Hi”, user_id=”alice”, session_id=”debug1”) >>> await runner.run_debug(“Hi”, user_id=”bob”, session_id=”debug2”)
@@ -20724,8 +22325,8 @@)¶
-
@@ -21191,9 +22792,10 @@- -session_service:
+BaseSessionService¶- +session_service:
BaseSessionService¶The session service for the runner.
)¶
"additionalProperties": false, "description": "Content blob.", "properties": { - "displayName": { + "data": { "anyOf": [ { + "format": "base64url", "type": "string" }, { @@ -21201,13 +22803,12 @@)¶
} ], "default": null, - "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.", - "title": "Displayname" + "description": "Required. Raw bytes.", + "title": "Data" }, - "data": { + "displayName": { "anyOf": [ { - "format": "base64url", "type": "string" }, { @@ -21215,8 +22816,8 @@)¶
} ], "default": null, - "description": "Required. Raw bytes.", - "title": "Data" + "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", + "title": "Displayname" }, "mimeType": { "anyOf": [ @@ -21313,7 +22914,7 @@)¶
}, "Citation": { "additionalProperties": false, - "description": "Source attributions for content.", + "description": "Source attributions for content.\n\nThis data type is not supported in Gemini API.", "properties": { "endIndex": { "anyOf": [ @@ -21483,7 +23084,7 @@)¶
} ], "default": null, - "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.", "title": "Role" } }, @@ -21946,7 +23547,7 @@)¶
} ], "default": null, - "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.", + "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", "title": "Displayname" }, "fileUri": { @@ -22042,8 +23643,37 @@)¶
} ], "default": null, - "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].", + "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].", "title": "Name" + }, + "partialArgs": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/PartialArg" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.", + "title": "Partialargs" + }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.", + "title": "Willcontinue" } }, "title": "FunctionCall", @@ -22168,6 +23798,19 @@)¶
"default": null, "description": "Required. Inline media bytes.", "title": "Data" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.", + "title": "Displayname" } }, "title": "FunctionResponseBlob", @@ -22202,6 +23845,19 @@)¶
"default": null, "description": "Required. The IANA standard MIME type of the source data.", "title": "Mimetype" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.", + "title": "Displayname" } }, "title": "FunctionResponseFileData", @@ -22252,7 +23908,7 @@)¶
}, "GenerateContentResponseUsageMetadata": { "additionalProperties": false, - "description": "Usage metadata about response(s).", + "description": "Usage metadata about the content generation request and response.\n\nThis message provides a detailed breakdown of token usage and other relevant\nmetrics. This data type is not supported in Gemini API.", "properties": { "cacheTokensDetails": { "anyOf": [ @@ -22267,7 +23923,7 @@)¶
} ], "default": null, - "description": "Output only. List of modalities of the cached content in the request input.", + "description": "Output only. A detailed breakdown of the token count for each modality in the cached content.", "title": "Cachetokensdetails" }, "cachedContentTokenCount": { @@ -22280,7 +23936,7 @@)¶
} ], "default": null, - "description": "Output only. Number of tokens in the cached part in the input (the cached content).", + "description": "Output only. The number of tokens in the cached content that was used for this request.", "title": "Cachedcontenttokencount" }, "candidatesTokenCount": { @@ -22293,7 +23949,7 @@)¶
} ], "default": null, - "description": "Number of tokens in the response(s).", + "description": "The total number of tokens in the generated candidates.", "title": "Candidatestokencount" }, "candidatesTokensDetails": { @@ -22309,7 +23965,7 @@)¶
} ], "default": null, - "description": "Output only. List of modalities that were returned in the response.", + "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates.", "title": "Candidatestokensdetails" }, "promptTokenCount": { @@ -22322,7 +23978,7 @@)¶
} ], "default": null, - "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", + "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.", "title": "Prompttokencount" }, "promptTokensDetails": { @@ -22338,7 +23994,7 @@)¶
} ], "default": null, - "description": "Output only. List of modalities that were processed in the request input.", + "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.", "title": "Prompttokensdetails" }, "thoughtsTokenCount": { @@ -22351,7 +24007,7 @@)¶
} ], "default": null, - "description": "Output only. Number of tokens present in thoughts output.", + "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.", "title": "Thoughtstokencount" }, "toolUsePromptTokenCount": { @@ -22364,7 +24020,7 @@)¶
} ], "default": null, - "description": "Output only. Number of tokens present in tool-use prompt(s).", + "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.", "title": "Tooluseprompttokencount" }, "toolUsePromptTokensDetails": { @@ -22380,7 +24036,7 @@)¶
} ], "default": null, - "description": "Output only. List of modalities that were processed for tool-use request inputs.", + "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.", "title": "Tooluseprompttokensdetails" }, "totalTokenCount": { @@ -22393,7 +24049,7 @@)¶
} ], "default": null, - "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).", + "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.", "title": "Totaltokencount" }, "trafficType": { @@ -22406,7 +24062,7 @@)¶
} ], "default": null, - "description": "Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota." + "description": "Output only. The traffic type for this request." } }, "title": "GenerateContentResponseUsageMetadata", @@ -22414,7 +24070,7 @@)¶
}, "GoogleTypeDate": { "additionalProperties": false, - "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday.\n\nThe time of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This can\nrepresent one of the following: * A full date, with non-zero year, month, and\nday values. * A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day. * A year and month,\nwith a zero day (for example, a credit card expiration date). Related types: *\ngoogle.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp. This\ndata type is not supported in Gemini API.", "properties": { "day": { "anyOf": [ @@ -22473,7 +24129,7 @@)¶
} ], "default": null, - "description": "Grounding chunk from Google Maps." + "description": "Grounding chunk from Google Maps. This field is not supported in Gemini API." }, "retrievedContext": { "anyOf": [ @@ -22485,7 +24141,7 @@)¶
} ], "default": null, - "description": "Grounding chunk from context retrieved by the retrieval tools." + "description": "Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API." }, "web": { "anyOf": [ @@ -22505,7 +24161,7 @@)¶
}, "GroundingChunkMaps": { "additionalProperties": false, - "description": "Chunk from Google Maps.", + "description": "Chunk from Google Maps. This data type is not supported in Gemini API.", "properties": { "placeAnswerSources": { "anyOf": [ @@ -22542,7 +24198,7 @@)¶
} ], "default": null, - "description": "Text of the chunk.", + "description": "Text of the place answer.", "title": "Text" }, "title": { @@ -22555,7 +24211,7 @@)¶
} ], "default": null, - "description": "Title of the chunk.", + "description": "Title of the place.", "title": "Title" }, "uri": { @@ -22568,7 +24224,7 @@)¶
} ], "default": null, - "description": "URI reference of the chunk.", + "description": "URI reference of the place.", "title": "Uri" } }, @@ -22577,7 +24233,7 @@)¶
}, "GroundingChunkMapsPlaceAnswerSources": { "additionalProperties": false, - "description": "Sources used to generate the place answer.", + "description": "Sources used to generate the place answer.\n\nThis data type is not supported in Gemini API.", "properties": { "flagContentUri": { "anyOf": [ @@ -22614,7 +24270,7 @@)¶
}, "GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution": { "additionalProperties": false, - "description": "Author attribution for a photo or review.", + "description": "Author attribution for a photo or review.\n\nThis data type is not supported in Gemini API.", "properties": { "displayName": { "anyOf": [ @@ -22661,7 +24317,7 @@)¶
}, "GroundingChunkMapsPlaceAnswerSourcesReviewSnippet": { "additionalProperties": false, - "description": "Encapsulates a review snippet.", + "description": "Encapsulates a review snippet.\n\nThis data type is not supported in Gemini API.", "properties": { "authorAttribution": { "anyOf": [ @@ -22759,7 +24415,7 @@)¶
}, "GroundingChunkRetrievedContext": { "additionalProperties": false, - "description": "Chunk from context retrieved by the retrieval tools.", + "description": "Chunk from context retrieved by the retrieval tools.\n\nThis data type is not supported in Gemini API.", "properties": { "documentName": { "anyOf": [ @@ -22843,7 +24499,7 @@)¶
} ], "default": null, - "description": "Domain of the (original) URI.", + "description": "Domain of the (original) URI. This field is not supported in Gemini API.", "title": "Domain" }, "title": { @@ -22890,7 +24546,7 @@)¶
} ], "default": null, - "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.", + "description": "Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. This field is not supported in Gemini API.", "title": "Googlemapswidgetcontexttoken" }, "groundingChunks": { @@ -22950,7 +24606,7 @@)¶
} ], "default": null, - "description": "Optional. Queries executed by the retrieval tools.", + "description": "Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API.", "title": "Retrievalqueries" }, "searchEntryPoint": { @@ -22978,7 +24634,7 @@)¶
} ], "default": null, - "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding.", + "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API.", "title": "Sourceflagginguris" }, "webSearchQueries": { @@ -23003,7 +24659,7 @@)¶
}, "GroundingMetadataSourceFlaggingUri": { "additionalProperties": false, - "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding.", + "description": "Source content flagging uri for a place or review.\n\nThis is currently populated only for Google Maps grounding. This data type is\nnot supported in Gemini API.", "properties": { "flagContentUri": { "anyOf": [ @@ -23222,7 +24878,7 @@)¶
"type": "object" }, "Language": { - "description": "Required. Programming language of the `code`.", + "description": "Programming language of the `code`.", "enum": [ "LANGUAGE_UNSPECIFIED", "PYTHON" @@ -23942,7 +25598,7 @@)¶
"type": "object" }, "Outcome": { - "description": "Required. Outcome of the code execution.", + "description": "Outcome of the code execution.", "enum": [ "OUTCOME_UNSPECIFIED", "OUTCOME_OK", @@ -23956,42 +25612,41 @@)¶
"additionalProperties": false, "description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.", "properties": { - "videoMetadata": { + "mediaResolution": { "anyOf": [ { - "$ref": "#/$defs/VideoMetadata" + "$ref": "#/$defs/PartMediaResolution" }, { "type": "null" } ], "default": null, - "description": "Metadata for a given video." + "description": "Media resolution for the input media.\n " }, - "thought": { + "codeExecutionResult": { "anyOf": [ { - "type": "boolean" + "$ref": "#/$defs/CodeExecutionResult" }, { "type": "null" } ], "default": null, - "description": "Indicates if the part is thought from the model.", - "title": "Thought" + "description": "Optional. Result of executing the [ExecutableCode]." }, - "inlineData": { + "executableCode": { "anyOf": [ { - "$ref": "#/$defs/Blob" + "$ref": "#/$defs/ExecutableCode" }, { "type": "null" } ], "default": null, - "description": "Optional. Inlined bytes data." + "description": "Optional. Code generated by the model that is meant to be executed." }, "fileData": { "anyOf": [ @@ -24005,6 +25660,68 @@)¶
"default": null, "description": "Optional. URI based data." }, + "functionCall": { + "anyOf": [ + { + "$ref": "#/$defs/FunctionCall" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values." + }, + "functionResponse": { + "anyOf": [ + { + "$ref": "#/$defs/FunctionResponse" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. 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 call. It is used as context to the model." + }, + "inlineData": { + "anyOf": [ + { + "$ref": "#/$defs/Blob" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Inlined bytes data." + }, + "text": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Text part (can be code).", + "title": "Text" + }, + "thought": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Indicates if the part is thought from the model.", + "title": "Thought" + }, "thoughtSignature": { "anyOf": [ { @@ -24016,58 +25733,127 @@)¶
} ], "default": null, - "description": "An opaque signature for the thought so it can be reused in subsequent requests.", + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", "title": "Thoughtsignature" }, - "functionCall": { + "videoMetadata": { "anyOf": [ { - "$ref": "#/$defs/FunctionCall" + "$ref": "#/$defs/VideoMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." + } + }, + "title": "Part", + "type": "object" + }, + "PartMediaResolution": { + "additionalProperties": false, + "description": "Media resolution for the input media.", + "properties": { + "level": { + "anyOf": [ + { + "$ref": "#/$defs/PartMediaResolutionLevel" }, { "type": "null" } ], "default": null, - "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values." + "description": "The tokenization quality used for given media.\n " }, - "codeExecutionResult": { + "numTokens": { "anyOf": [ { - "$ref": "#/$defs/CodeExecutionResult" + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Optional. Result of executing the [ExecutableCode]." + "description": "Specifies the required sequence length for media tokenization.\n ", + "title": "Numtokens" + } + }, + "title": "PartMediaResolution", + "type": "object" + }, + "PartMediaResolutionLevel": { + "description": "The tokenization quality used for given media.", + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" + ], + "title": "PartMediaResolutionLevel", + "type": "string" + }, + "PartialArg": { + "additionalProperties": false, + "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.", + "properties": { + "nullValue": { + "anyOf": [ + { + "const": "NULL_VALUE", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a null value.", + "title": "Nullvalue" }, - "executableCode": { + "numberValue": { "anyOf": [ { - "$ref": "#/$defs/ExecutableCode" + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Optional. Code generated by the model that is meant to be executed." + "description": "Optional. Represents a double value.", + "title": "Numbervalue" }, - "functionResponse": { + "stringValue": { "anyOf": [ { - "$ref": "#/$defs/FunctionResponse" + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Optional. 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 call. It is used as context to the model." + "description": "Optional. Represents a string value.", + "title": "Stringvalue" }, - "text": { + "boolValue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a boolean value.", + "title": "Boolvalue" + }, + "jsonPath": { "anyOf": [ { "type": "string" @@ -24077,16 +25863,29 @@)¶
} ], "default": null, - "description": "Optional. Text part (can be code).", - "title": "Text" + "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".", + "title": "Jsonpath" + }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.", + "title": "Willcontinue" } }, - "title": "Part", + "title": "PartialArg", "type": "object" }, "RagChunk": { "additionalProperties": false, - "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.", + "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.\n\nThis data type is not supported in Gemini API.", "properties": { "pageSpan": { "anyOf": [ @@ -24119,7 +25918,7 @@)¶
}, "RagChunkPageSpan": { "additionalProperties": false, - "description": "Represents where the chunk starts and ends in the document.", + "description": "Represents where the chunk starts and ends in the document.\n\nThis data type is not supported in Gemini API.", "properties": { "firstPage": { "anyOf": [ @@ -24412,7 +26211,7 @@)¶
"type": "object" }, "TrafficType": { - "description": "Output only.\n\nTraffic type. This shows whether a request consumes Pay-As-You-Go or\nProvisioned Throughput quota.", + "description": "Output only.\n\nThe traffic type for this request. This enum is not supported in Gemini API.", "enum": [ "TRAFFIC_TYPE_UNSPECIFIED", "ON_DEMAND", @@ -24457,33 +26256,33 @@)¶
}, "VideoMetadata": { "additionalProperties": false, - "description": "Describes how the video in the Part should be used by the model.", + "description": "Metadata describes the input video content.", "properties": { - "fps": { + "endOffset": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], "default": null, - "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].", - "title": "Fps" + "description": "Optional. The end offset of the video.", + "title": "Endoffset" }, - "endOffset": { + "fps": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Optional. The end offset of the video.", - "title": "Endoffset" + "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].", + "title": "Fps" }, "startOffset": { "anyOf": [ @@ -24935,7 +26734,7 @@)¶
+
- -class google.adk.tools.AgentTool(agent, skip_summarization=False)¶
+class google.adk.tools.AgentTool(agent, skip_summarization=False, *, include_plugins=True)¶Bases:
BaseToolA tool that wraps an agent.
This tool allows an agent to be called as a tool within a larger application. @@ -24953,6 +26752,15 @@
)¶
Whether to skip summarization of the agent output.
+
+- +include_plugins¶
+Whether to propagate plugins from the parent runner context +to the agent’s runner. When True (default), the agent will inherit all +plugins from its parent. Set to False to run the agent with an isolated +plugin environment.
+- tool_context – The context of the tool.
Returns: -The result of running the tool.
+Returns: ++ + + + + + The result of running the tool.
++
+- +class google.adk.tools.ApiRegistry(api_registry_project_id, location='global', header_provider=None)¶
+Bases:
+objectRegistry that provides McpToolsets for MCP servers registered in API Registry.
+Initialize the API Registry.
++
+- Parameters:
+- +
+
+- +
api_registry_project_id – The project ID for the Google Cloud API Registry.
- +
location – The location of the API Registry resources.
- +
header_provider – Optional function to provide additional headers for MCP +server calls.
+
@@ -26547,6 +28400,28 @@- +get_toolset(mcp_server_name, tool_filter=None, tool_name_prefix=None)¶
+Return the MCP Toolset based on the params.
++
- Return type:
+- +
+- Parameters:
+- +
+
+- +
mcp_server_name – Filter to select the MCP server name to get tools +from.
- +
tool_filter – Optional filter to select specific tools. Can be a list of +tool names or a ToolPredicate function.
- +
tool_name_prefix – Optional prefix to prepend to the names of the tools +returned by the toolset.
- Returns:
+- +
A toolset for the MCP server specified.
+- Return type:
+)¶
+
+- +class google.adk.tools.TransferToAgentTool(agent_names)¶
+Bases:
+FunctionToolA specialized FunctionTool for agent transfer with enum constraints.
+This tool enhances the base transfer_to_agent function by adding JSON Schema +enum constraints to the agent_name parameter. This prevents LLMs from +hallucinating invalid agent names by restricting choices to only valid agents.
++
+ +- +agent_names¶
+List of valid agent names that can be transferred to.
+Initialize the TransferToAgentTool.
++
+- Parameters:
+- +
agent_names – List of valid agent names that can be transferred to.
++
- class google.adk.tools.VertexAiSearchTool(*, data_store_id=None, data_store_specs=None, search_engine_id=None, filter=None, max_results=None, bypass_multi_tools_limit=False)¶
@@ -26627,8 +28502,16 @@)¶
- Return type:
- -
None- Parameters:
-agent_name – the agent name to transfer to.
+++Note
+For most use cases, you should use TransferToAgentTool instead of this +function directly. TransferToAgentTool provides additional enum constraints +that prevent LLMs from hallucinating invalid agent names.
++
@@ -26638,7 +28521,7 @@- Parameters:
+agent_name – the agent name to transfer to.
)¶
google.adk.tools.agent_tool module¶
+
- -class google.adk.tools.agent_tool.AgentTool(agent, skip_summarization=False)¶
+class google.adk.tools.agent_tool.AgentTool(agent, skip_summarization=False, *, include_plugins=True)¶Bases:
BaseToolA tool that wraps an agent.
This tool allows an agent to be called as a tool within a larger application. @@ -26656,6 +28539,15 @@
)¶
Whether to skip summarization of the agent output.
+
+- +include_plugins¶
+Whether to propagate plugins from the parent runner context +to the agent’s runner. When True (default), the agent will inherit all +plugins from its parent. Set to False to run the agent with an isolated +plugin environment.
++
- classmethod from_config(config, config_abs_path)¶
@@ -26740,6 +28632,11 @@)¶
"default": false, "title": "Skip Summarization", "type": "boolean" + }, + "include_plugins": { + "default": true, + "title": "Include Plugins", + "type": "boolean" } }, "$defs": { @@ -26787,6 +28684,7 @@)¶
- Fields:
- @@ -26797,6 +28695,12 @@
)¶
The reference to the agent instance.
+
+- +field include_plugins: bool = True¶
+Whether to include plugins from parent runner context.
+@@ -30544,13 +32844,13 @@
- field skip_summarization: bool = False¶
@@ -27683,7 +29587,7 @@)¶
- async run_async(*, args, tool_context)¶
Override run_async to handle CrewAI-specific parameter filtering.
-CrewAI tools use **kwargs pattern, so we need special parameter filtering +
CrewAI tools use **kwargs pattern, so we need special parameter filtering logic that allows all parameters to pass through while removing only reserved parameters like ‘self’ and ‘tool_context’.
Note: ‘tool_context’ is removed from the initial args dictionary to prevent @@ -27886,9 +29790,10 @@
)¶
"additionalProperties": false, "description": "Content blob.", "properties": { - "displayName": { + "data": { "anyOf": [ { + "format": "base64url", "type": "string" }, { @@ -27896,13 +29801,12 @@)¶
} ], "default": null, - "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.", - "title": "Displayname" + "description": "Required. Raw bytes.", + "title": "Data" }, - "data": { + "displayName": { "anyOf": [ { - "format": "base64url", "type": "string" }, { @@ -27910,8 +29814,8 @@)¶
} ], "default": null, - "description": "Required. Raw bytes.", - "title": "Data" + "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", + "title": "Displayname" }, "mimeType": { "anyOf": [ @@ -27993,7 +29897,7 @@)¶
} ], "default": null, - "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.", "title": "Role" } }, @@ -28068,7 +29972,7 @@)¶
} ], "default": null, - "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.", + "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", "title": "Displayname" }, "fileUri": { @@ -28142,8 +30046,37 @@)¶
} ], "default": null, - "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].", + "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].", "title": "Name" + }, + "partialArgs": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/PartialArg" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.", + "title": "Partialargs" + }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.", + "title": "Willcontinue" } }, "title": "FunctionCall", @@ -28268,6 +30201,19 @@)¶
"default": null, "description": "Required. Inline media bytes.", "title": "Data" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.", + "title": "Displayname" } }, "title": "FunctionResponseBlob", @@ -28302,6 +30248,19 @@)¶
"default": null, "description": "Required. The IANA standard MIME type of the source data.", "title": "Mimetype" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.", + "title": "Displayname" } }, "title": "FunctionResponseFileData", @@ -28351,7 +30310,7 @@)¶
"type": "string" }, "Language": { - "description": "Required. Programming language of the `code`.", + "description": "Programming language of the `code`.", "enum": [ "LANGUAGE_UNSPECIFIED", "PYTHON" @@ -28360,7 +30319,7 @@)¶
"type": "string" }, "Outcome": { - "description": "Required. Outcome of the code execution.", + "description": "Outcome of the code execution.", "enum": [ "OUTCOME_UNSPECIFIED", "OUTCOME_OK", @@ -28374,42 +30333,41 @@)¶
"additionalProperties": false, "description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.", "properties": { - "videoMetadata": { + "mediaResolution": { "anyOf": [ { - "$ref": "#/$defs/VideoMetadata" + "$ref": "#/$defs/PartMediaResolution" }, { "type": "null" } ], "default": null, - "description": "Metadata for a given video." + "description": "Media resolution for the input media.\n " }, - "thought": { + "codeExecutionResult": { "anyOf": [ { - "type": "boolean" + "$ref": "#/$defs/CodeExecutionResult" }, { "type": "null" } ], "default": null, - "description": "Indicates if the part is thought from the model.", - "title": "Thought" + "description": "Optional. Result of executing the [ExecutableCode]." }, - "inlineData": { + "executableCode": { "anyOf": [ { - "$ref": "#/$defs/Blob" + "$ref": "#/$defs/ExecutableCode" }, { "type": "null" } ], "default": null, - "description": "Optional. Inlined bytes data." + "description": "Optional. Code generated by the model that is meant to be executed." }, "fileData": { "anyOf": [ @@ -28423,71 +30381,72 @@)¶
"default": null, "description": "Optional. URI based data." }, - "thoughtSignature": { + "functionCall": { "anyOf": [ { - "format": "base64url", - "type": "string" + "$ref": "#/$defs/FunctionCall" }, { "type": "null" } ], "default": null, - "description": "An opaque signature for the thought so it can be reused in subsequent requests.", - "title": "Thoughtsignature" + "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values." }, - "functionCall": { + "functionResponse": { "anyOf": [ { - "$ref": "#/$defs/FunctionCall" + "$ref": "#/$defs/FunctionResponse" }, { "type": "null" } ], "default": null, - "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values." + "description": "Optional. 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 call. It is used as context to the model." }, - "codeExecutionResult": { + "inlineData": { "anyOf": [ { - "$ref": "#/$defs/CodeExecutionResult" + "$ref": "#/$defs/Blob" }, { "type": "null" } ], "default": null, - "description": "Optional. Result of executing the [ExecutableCode]." + "description": "Optional. Inlined bytes data." }, - "executableCode": { + "text": { "anyOf": [ { - "$ref": "#/$defs/ExecutableCode" + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Optional. Code generated by the model that is meant to be executed." + "description": "Optional. Text part (can be code).", + "title": "Text" }, - "functionResponse": { + "thought": { "anyOf": [ { - "$ref": "#/$defs/FunctionResponse" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Optional. 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 call. It is used as context to the model." + "description": "Optional. Indicates if the part is thought from the model.", + "title": "Thought" }, - "text": { + "thoughtSignature": { "anyOf": [ { + "format": "base64url", "type": "string" }, { @@ -28495,18 +30454,88 @@)¶
} ], "default": null, - "description": "Optional. Text part (can be code).", - "title": "Text" + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "title": "Thoughtsignature" + }, + "videoMetadata": { + "anyOf": [ + { + "$ref": "#/$defs/VideoMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." } }, "title": "Part", "type": "object" }, - "VideoMetadata": { + "PartMediaResolution": { "additionalProperties": false, - "description": "Describes how the video in the Part should be used by the model.", + "description": "Media resolution for the input media.", "properties": { - "fps": { + "level": { + "anyOf": [ + { + "$ref": "#/$defs/PartMediaResolutionLevel" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The tokenization quality used for given media.\n " + }, + "numTokens": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Specifies the required sequence length for media tokenization.\n ", + "title": "Numtokens" + } + }, + "title": "PartMediaResolution", + "type": "object" + }, + "PartMediaResolutionLevel": { + "description": "The tokenization quality used for given media.", + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" + ], + "title": "PartMediaResolutionLevel", + "type": "string" + }, + "PartialArg": { + "additionalProperties": false, + "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.", + "properties": { + "nullValue": { + "anyOf": [ + { + "const": "NULL_VALUE", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a null value.", + "title": "Nullvalue" + }, + "numberValue": { "anyOf": [ { "type": "number" @@ -28516,9 +30545,69 @@)¶
} ], "default": null, - "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].", - "title": "Fps" + "description": "Optional. Represents a double value.", + "title": "Numbervalue" + }, + "stringValue": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a string value.", + "title": "Stringvalue" + }, + "boolValue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a boolean value.", + "title": "Boolvalue" + }, + "jsonPath": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".", + "title": "Jsonpath" }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.", + "title": "Willcontinue" + } + }, + "title": "PartialArg", + "type": "object" + }, + "VideoMetadata": { + "additionalProperties": false, + "description": "Metadata describes the input video content.", + "properties": { "endOffset": { "anyOf": [ { @@ -28532,6 +30621,19 @@)¶
"description": "Optional. The end offset of the video.", "title": "Endoffset" }, + "fps": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "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].", + "title": "Fps" + }, "startOffset": { "anyOf": [ { @@ -29254,9 +31356,10 @@google.adk.tools.google_maps_grounding_tool module "additionalProperties": false, "description": "Content blob.", "properties": { - "displayName": { + "data": { "anyOf": [ { + "format": "base64url", "type": "string" }, { @@ -29264,13 +31367,12 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.", - "title": "Displayname" + "description": "Required. Raw bytes.", + "title": "Data" }, - "data": { + "displayName": { "anyOf": [ { - "format": "base64url", "type": "string" }, { @@ -29278,8 +31380,8 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Required. Raw bytes.", - "title": "Data" + "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", + "title": "Displayname" }, "mimeType": { "anyOf": [ @@ -29361,7 +31463,7 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Optional. The producer of the content. Must be either 'user' or\n 'model'. Useful to set for multi-turn conversations, otherwise can be\n empty. If role is not specified, SDK will determine the 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.", "title": "Role" } }, @@ -29415,7 +31517,7 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.", + "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.", "title": "Displayname" }, "fileUri": { @@ -29489,8 +31591,37 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].", + "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].", "title": "Name" + }, + "partialArgs": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/PartialArg" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.", + "title": "Partialargs" + }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.", + "title": "Willcontinue" } }, "title": "FunctionCall", @@ -29615,6 +31746,19 @@
google.adk.tools.google_maps_grounding_tool module "default": null, "description": "Required. Inline media bytes.", "title": "Data" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs.", + "title": "Displayname" } }, "title": "FunctionResponseBlob", @@ -29649,6 +31793,19 @@
google.adk.tools.google_maps_grounding_tool module "default": null, "description": "Required. The IANA standard MIME type of the source data.", "title": "Mimetype" + }, + "displayName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Display name of the file.\n Used to provide a label or filename to distinguish files.", + "title": "Displayname" } }, "title": "FunctionResponseFileData", @@ -29698,7 +31855,7 @@
google.adk.tools.google_maps_grounding_tool module "type": "string" }, "Language": { - "description": "Required. Programming language of the `code`.", + "description": "Programming language of the `code`.", "enum": [ "LANGUAGE_UNSPECIFIED", "PYTHON" @@ -29761,7 +31918,7 @@
google.adk.tools.google_maps_grounding_tool module "type": "object" }, "Outcome": { - "description": "Required. Outcome of the code execution.", + "description": "Outcome of the code execution.", "enum": [ "OUTCOME_UNSPECIFIED", "OUTCOME_OK", @@ -29775,42 +31932,41 @@
google.adk.tools.google_maps_grounding_tool module "additionalProperties": false, "description": "A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid.", "properties": { - "videoMetadata": { + "mediaResolution": { "anyOf": [ { - "$ref": "#/$defs/VideoMetadata" + "$ref": "#/$defs/PartMediaResolution" }, { "type": "null" } ], "default": null, - "description": "Metadata for a given video." + "description": "Media resolution for the input media.\n " }, - "thought": { + "codeExecutionResult": { "anyOf": [ { - "type": "boolean" + "$ref": "#/$defs/CodeExecutionResult" }, { "type": "null" } ], "default": null, - "description": "Indicates if the part is thought from the model.", - "title": "Thought" + "description": "Optional. Result of executing the [ExecutableCode]." }, - "inlineData": { + "executableCode": { "anyOf": [ { - "$ref": "#/$defs/Blob" + "$ref": "#/$defs/ExecutableCode" }, { "type": "null" } ], "default": null, - "description": "Optional. Inlined bytes data." + "description": "Optional. Code generated by the model that is meant to be executed." }, "fileData": { "anyOf": [ @@ -29824,71 +31980,72 @@
google.adk.tools.google_maps_grounding_tool module "default": null, "description": "Optional. URI based data." }, - "thoughtSignature": { + "functionCall": { "anyOf": [ { - "format": "base64url", - "type": "string" + "$ref": "#/$defs/FunctionCall" }, { "type": "null" } ], "default": null, - "description": "An opaque signature for the thought so it can be reused in subsequent requests.", - "title": "Thoughtsignature" + "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values." }, - "functionCall": { + "functionResponse": { "anyOf": [ { - "$ref": "#/$defs/FunctionCall" + "$ref": "#/$defs/FunctionResponse" }, { "type": "null" } ], "default": null, - "description": "A predicted [FunctionCall] returned from the model that contains a string\n representing the [FunctionDeclaration.name] and a structured JSON object\n containing the parameters and their values." + "description": "Optional. 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 call. It is used as context to the model." }, - "codeExecutionResult": { + "inlineData": { "anyOf": [ { - "$ref": "#/$defs/CodeExecutionResult" + "$ref": "#/$defs/Blob" }, { "type": "null" } ], "default": null, - "description": "Optional. Result of executing the [ExecutableCode]." + "description": "Optional. Inlined bytes data." }, - "executableCode": { + "text": { "anyOf": [ { - "$ref": "#/$defs/ExecutableCode" + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Optional. Code generated by the model that is meant to be executed." + "description": "Optional. Text part (can be code).", + "title": "Text" }, - "functionResponse": { + "thought": { "anyOf": [ { - "$ref": "#/$defs/FunctionResponse" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Optional. 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 call. It is used as context to the model." + "description": "Optional. Indicates if the part is thought from the model.", + "title": "Thought" }, - "text": { + "thoughtSignature": { "anyOf": [ { + "format": "base64url", "type": "string" }, { @@ -29896,18 +32053,88 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "Optional. Text part (can be code).", - "title": "Text" + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "title": "Thoughtsignature" + }, + "videoMetadata": { + "anyOf": [ + { + "$ref": "#/$defs/VideoMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." } }, "title": "Part", "type": "object" }, - "VideoMetadata": { + "PartMediaResolution": { "additionalProperties": false, - "description": "Describes how the video in the Part should be used by the model.", + "description": "Media resolution for the input media.", "properties": { - "fps": { + "level": { + "anyOf": [ + { + "$ref": "#/$defs/PartMediaResolutionLevel" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The tokenization quality used for given media.\n " + }, + "numTokens": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Specifies the required sequence length for media tokenization.\n ", + "title": "Numtokens" + } + }, + "title": "PartMediaResolution", + "type": "object" + }, + "PartMediaResolutionLevel": { + "description": "The tokenization quality used for given media.", + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" + ], + "title": "PartMediaResolutionLevel", + "type": "string" + }, + "PartialArg": { + "additionalProperties": false, + "description": "Partial argument value of the function call.\n\nThis data type is not supported in Gemini API.", + "properties": { + "nullValue": { + "anyOf": [ + { + "const": "NULL_VALUE", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a null value.", + "title": "Nullvalue" + }, + "numberValue": { "anyOf": [ { "type": "number" @@ -29917,9 +32144,69 @@
google.adk.tools.google_maps_grounding_tool module } ], "default": null, - "description": "The frame rate of the video sent to the model. If not specified, the\n default value will be 1.0. The fps range is (0.0, 24.0].", - "title": "Fps" + "description": "Optional. Represents a double value.", + "title": "Numbervalue" + }, + "stringValue": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a string value.", + "title": "Stringvalue" + }, + "boolValue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Represents a boolean value.", + "title": "Boolvalue" + }, + "jsonPath": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".", + "title": "Jsonpath" }, + "willContinue": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.", + "title": "Willcontinue" + } + }, + "title": "PartialArg", + "type": "object" + }, + "VideoMetadata": { + "additionalProperties": false, + "description": "Metadata describes the input video content.", + "properties": { "endOffset": { "anyOf": [ { @@ -29933,6 +32220,19 @@
google.adk.tools.google_maps_grounding_tool module "description": "Optional. The end offset of the video.", "title": "Endoffset" }, + "fps": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "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].", + "title": "Fps" + }, "startOffset": { "anyOf": [ { @@ -30407,23 +32707,23 @@
google.adk.tools.google_maps_grounding_tool module
google.adk.tools.google_maps_grounding_tool module
-
@@ -30652,28 +32952,28 @@- -field server_params: StdioServerParameters [Required]¶
+- +field server_params: StdioServerParameters [Required]¶
google.adk.tools.google_maps_grounding_tool module @@ -31193,6 +33493,28 @@
google.adk.tools.google_maps_grounding_tool module
google.adk.tools.transfer_to_agent_tool module¶
++
+- +class google.adk.tools.transfer_to_agent_tool.TransferToAgentTool(agent_names)¶
+Bases:
+FunctionToolA specialized FunctionTool for agent transfer with enum constraints.
+This tool enhances the base transfer_to_agent function by adding JSON Schema +enum constraints to the agent_name parameter. This prevents LLMs from +hallucinating invalid agent names by restricting choices to only valid agents.
++
+ +- +agent_names¶
+List of valid agent names that can be transferred to.
+Initialize the TransferToAgentTool.
++
+- Parameters:
+- +
agent_names – List of valid agent names that can be transferred to.
++
- google.adk.tools.transfer_to_agent_tool.transfer_to_agent(agent_name, tool_context)¶
@@ -31203,8 +33525,16 @@google.adk.tools.google_maps_grounding_tool moduleReturn type:
- -
None- Parameters:
-agent_name – the agent name to transfer to.
+++Note
+For most use cases, you should use TransferToAgentTool instead of this +function directly. TransferToAgentTool provides additional enum constraints +that prevent LLMs from hallucinating invalid agent names.
++
diff --git a/docs/api-reference/python/index.html b/docs/api-reference/python/index.html index 44db5d717..eb129001a 100755 --- a/docs/api-reference/python/index.html +++ b/docs/api-reference/python/index.html @@ -327,6 +327,7 @@- Parameters:
+agent_name – the agent name to transfer to.
google¶
BaseAgent.config_typeBaseAgent.from_config()+ BaseAgent.validate_nameBaseAgent.validate_sub_agents_unique_namesBaseAgent.clone()BaseAgent.find_agent()@@ -672,9 +673,15 @@ BaseAgent.find_sub_agent()google¶
+ BaseLlm.generate_content_async()Claude++ GeminiLiteLlm+google.adk.planners module @@ -879,11 +896,16 @@ PlanReActPlanner@@ -793,21 +809,22 @@
google¶
Runner.credential_serviceRunner.context_cache_config- -
Runner.resumability_config- -
Runner.agent- -
Runner.app_name- +
Runner.artifact_service- +
Runner.Self- +
Runner.agent- +
Runner.app_nameRunner.artifact_service- -
Runner.close()- -
Runner.context_cache_config- -
Runner.credential_service- -
Runner.memory_service- -
Runner.plugin_manager- +
Runner.resumability_config- +
Runner.context_cache_config- +
Runner.credential_service- +
Runner.memory_service- +
Runner.plugin_managerRunner.resumability_configRunner.rewind_async()Runner.run()Runner.run_async()Runner.run_debug()- -
Runner.run_live()- +
Runner.session_serviceRunner.session_servicegoogle¶
+ AgentToolApiRegistry++ AuthToolArgumentsTransferToAgentTool+VertexAiSearchTool
VertexAiSearchTool.data_store_id- @@ -951,6 +977,7 @@
VertexAiSearchTool.search_engine_idgoogle¶
AgentTool- @@ -1188,17 +1216,17 @@
AgentToolConfiggoogle¶
SseConnectionParams.headersSseConnectionParams.timeout- -
SseConnectionParams.sse_read_timeout- -
SseConnectionParams.headers- -
SseConnectionParams.sse_read_timeout- -
SseConnectionParams.timeout- +
SseConnectionParams.url- +
SseConnectionParams.headers- +
SseConnectionParams.sse_read_timeout- +
SseConnectionParams.timeoutSseConnectionParams.urlStdioConnectionParamsStreamableHTTPConnectionParams@@ -1207,11 +1235,11 @@
google¶
StreamableHTTPConnectionParams.timeoutStreamableHTTPConnectionParams.sse_read_timeout- -
StreamableHTTPConnectionParams.terminate_on_close- -
StreamableHTTPConnectionParams.headers- -
StreamableHTTPConnectionParams.sse_read_timeout- -
StreamableHTTPConnectionParams.terminate_on_close- -
StreamableHTTPConnectionParams.timeout- +
StreamableHTTPConnectionParams.url- +
StreamableHTTPConnectionParams.headers- +
StreamableHTTPConnectionParams.sse_read_timeout- +
StreamableHTTPConnectionParams.terminate_on_close- +
StreamableHTTPConnectionParams.timeoutStreamableHTTPConnectionParams.url@@ -1272,6 +1300,10 @@ adk_to_mcp_tool_type()google¶
google.adk.tools.transfer_to_agent_tool module diff --git a/docs/api-reference/python/objects.inv b/docs/api-reference/python/objects.inv index 3c883ab8686e86036ffd87912866b7e7a3b9e44a..f1fee464057a7f54e90fd02d9c7e860822bbe25a 100755 GIT binary patch delta 6101 zcmV;`7b@uLE~_w*jDP!AIAZ736~4QB-qdb&k0Ru4jpW{)d1A0gR0%6yOOUcPzkYD? z1V{jxH4zTEE_|5;5{U!|B+qqyF32IxpAPA}^i}in*Rsz0g1mb3>MXx{Exvl}%HqG& z7q9>F>h%xjNvSibIu>29Oy~tG6qHz349~BY#8j<|R+7j%Ep$Mv8F8 zAw6}ZP2|T(mKMb^&7Nl96D36+0X~vb-I7a?v$U!!%8`jpdD$pUTQ{WbUO;r~6@c+Y zT@h(Fq @z*C)8UTa#(UYo!!jrYK4o z4Dp)pqXuUiyy?4ydyk@{CAomfjMbgc9GA?v-mEXvV}aG<#fZnD-1qZfga7Su>q6og zVNBG9)PG&Zf5~H7 E1aM+kt+v?947 zwH*@lSky-(R94iCV6ngkGNJw54Cz^sG8Ro3FEFr^tw3keVPKfHEeuYwG+12dV6rIK ziFKgxOaKxCEK2CoutDgRVHId0tluuUVs?m%)vLAm`f4z`!pmjsx#n@}%ue`Bdo;GS z&VRA#mr?!9M;iVgtytIgS!BFo;i3ao??t+59z&_dB5hl@__fOUvbipV9~Ks)tCe4T zLcWu%7t5y@ofvvEW+3I1@#?C-B{Jka$v&H?6@Cmw?RY|3hC%0lNGoQadMt!bwMMkH zqe7{)%8EW8^kq0qv3$Vz6s1gYc&L{=I)4%%$l*kg&=&uJLRO1APvixWhS%0jkyaH! zaY eS02*#}`S^_RTV1zx-GD=2!$5HF1FB5FC$tk+%v%IflV7stW^CKL zwtl9$vYfC9 Nh(OJ wmlaJGXtj zWKR*{QWtk7LM5u=R 8UQv)W!6k5SfW?TD10|K z_mb^^*c54W@U1U zaMd(XE>)Ms+ude> 6_qz%15| zT5mRsQIY>~80k*OG1hHIdR@7P1Pf;_a2lP5c2HARMF;xb!??}HcL8OKbKn h{0m^~G`~PQ%72L*4Eq}`Q0&*j z!LeT(7|(ufbS(SbXTuE5$-e*=Zof7xg8lxUF%0uvV{ok3!o@RQ3mnUKchN8#bK&u+ zaKp7w5$yJ+`XcwVTZ}h2$lHU?L!IDQZx@f!Q(SPo?&6Yw)o1+pFcaUDaUnFk3%Sq; z{Yb6!EsnNrN98+nhkwn`-l4^b78WfwV=G@RY!HVQ=ZvkD*cu>xb+9lTDu^>F>a5O6 z5r2>8tCov6*RAg!V`g}~nEWHRksPl0tFQdUReSEs)ixg=wdJ-43uh)ZD` |A7`3Vx+SX&QtArLZpx9+Ar72 z>eTGz`0TP))Hivm9cHo|&;X+TtXO&?w{?~l$Zp?3#&Z2GeB{s@CoE|A-4-F|VzbYD zLdos0c`r2G)JF`h+;1&)@(K~c)UqJAG@HF0HjZo#)PF(x*hpLY^wKzzLRiP5w)}fn zkcKYoOiStMVkR`?IW79}?09Tpm0a&yy{|)dMmrhin;^fjPfNrLKGp7UurhC&-i0N$ zJa=N3k8wnBd`ZvkptN*yU7b|q+vFHTgb = z%OBJ}jDM(Q-8rY{wcUa-@mZi|7!jzQ`bzIHF`FO#Ey9H|dw=6`k0}$or)eQJkb>iw z89FYV&>R6xPBf=6UaaCB)Kpvar4===t+uZ!lhTc=2e(;3;+`2t_?@s&cUD|%Q|B>M z*+4Jo%F>r3e1gUt7P(mvG#fL>4f7`q>bRc_i+?yxUWUeG+z}zxrC!$I^If^ftj1b~ zPgiH&1-&g(l)++@Ax m13I6VjTbjIXw;yH9h&CGe+18 zU?u^E6Q1bMVbAyY%QB3)$nV@UniZqKKuH&sbG~c!CgP0Z7Dg|dO;q$90Sr_Fqn!4F zp??mh`L2S$-GQkCU%s?=4%+{amd_opsHQ&fFqp*Dy^RB}e7WAB-;EpRH_c_ooVQHQ zu7iHDVF;cg4ZtquSyo_@(&2iUti$aF@)T`_%=9=F^|zQltnLLz7nJRw?(v3i?s6gI z4Fz*vjr;0}j-CeSBr}q>*<(D>+|UMIvVRqWcG-41^wNzDD(Ww3^%Q;iP83=dxFuj! z!+m-N8i9+1UI{A!&^nNAeV*}k%MollIj1ABNgj8vEX410OfMDe44WFGv)5`IxrGh7 zc=Qx6ecYUFo!a!gte$ (Y0M)DjGNVFQKanc*82tj{T{Ao$es3lHPD)x) zz!fRLA#G@q6*Tza7;{Rz^=SZ_@o8RA4S(1osjXUd6TMzB$APm5EO79?!AXm3Pr-&% zrl<|baZul(C Pg)T4t+433yfW*bNVG~^ zGAkcHNX#+vxY*#`U@Wt?hX)kTt48vfE;77>yU5T!?&5;G`5KJoL!IbLR5OwK}7(yxI?z zXV!UcTw5|`0bu9`#T9JK-T+3$opxPexHsw&ogm3PvVR>6jXwRoBFPmG=%pHMLS3&c zc(}T|OYZKkf4lid;Cy7k`Fi~Y2lVH|^*svcOyY(PRa)ev2u^6WU@+3< @B GWUABr*H>mrcK9t zQAxU}Q_MqIksKmZw+hUG1e29$-@2ESlC &XbY-NEn5{Wbhe>Xu zn5lycJ4+51IW19aF|bGVIaAQ~EcIYR7+^V>J(oKk1nR^Cg|cLtyA7sN#7(RP0hktj zL4N~yf?p}iY95`uTvyz;@yJjlJcu$QC+U!zZxSNEN>o~faAkE?mniinWoN0Jg4=Kk z0@>yigklfBX ;mZvDu2u!iPA z>eEDxFeL}#un_>pi%#mZMy*m(##NtAxA?V=pEy|H3RW9T*XS$+Zmvm}gsYpb^DN#F%|s!N7^Qm468c zd8|C7>A8&^|0wo7<{>&~>@L}24Cpd&QuS&v4NZn53f4suuSe}o3fhG{_D7(D85zK( zNGB;aUUdTjVdoS&c`c}p%lBz0cP&~~XbNf)P4jp{JV=7-jp2ZHbVIov4PV}j-^Dj{ ztf+WPh?WR4l?|yAQJ+;7v$~BNoPT4a9IpTI`S#CWuan a`dET%kxpcJQCP2?ziMV}3Gr-{&dj7k3@p)LwWzcnqeKsVI zrb9+_XL5j|JClnCF?+)_FMlR0?<}YVed0$C)9})9=tr&=ic)4H?B qT|qxO&m&=$1W0| z?&ro>6yiRDv`tIdOqJ-aXvZC{hmZf49051N!tgi|fO) LT7YMc+$4Lb_ zKPMHvU8Z!X>)Phd>N(B_kngnP6S}&I*cd$)hT7v415*iSk!il*16oOPqvE$@Z7>0Y zxri_2NxJN@rWw%3*kH>KW7=1zVHY>yVEWBD;90 !DJW7G`;Z-FMN?9wHVzLHqkqmE6|0ZkM@8u~Lq+Q2 z@^Uc>Em&@i%Cuq0xvl#u7ik?aqGJnEd!aA AfX*O^(Le2jw& $K}05B~l5DOdnwgu8a`{X{}UK1uVH^kcB3Kmk7m3+P+l zC!>G-c^ls4w7x_G+qegjZ%aHJXD!8j0iWJP2nuU}Pj7cbaH}cPV?qA*_3Pb5Dr-wX zV8{6M4u2vmvX6Xv4-wjtwxpFf1u70m7>DX3_5(<4*d>01$nx*7pSB$v|A@aBhSj8d zX`-UI0eF^Aw-(I*V XSr>2WC~Wx)BS}hW`%~U7U*>X zb=;)yDQgc_gETOu{X{K8(lAlFw2vqeH`#*dn15??EdSbNTEfzpi*(53fp-Pof-!|0 z{@`z}?rvgZ=?zwFOudCPq3~s>42Zoatc%@{;Q}2@@=P4P7TW?qiC}zX$gzkZ^5qPR zN1u%3iI|E;CdLWlC#-7`WdP>DPNvw=pc8f{lV}q_H*Z)&GF2n(><6OvxIBoD+uL$Q zF@L(XBDv9ae+*V@O0nqFv;=Lz*TOp7sm}mwre0K>l~eK5H%gw<_$n9(@)Xy-c^7rz zBTF9O8s3h_3mtqP8`)CSqKipyWfFr$Rn8Ow%J$|0K~ldtneaStPBcnVI42z;L!6V1 zlrGN6$H^VHj|apLPB<{DoRf=_Vov-$)_>o@r-~OGsVRRS8;Nh@VuSG=Dj;(1be27_ zWHBVU3SF#NL15#r9fy)s&>s!XHRuq9QsI3&bS+p_FF}VtThmXY>UW2S6W&Z8Jptdw zWTjzbiu45| gzR;6JrUZ(d%TFVwHUs0&egOupSIcK5;? bwwjmLxyok+)n{6N_5B_9PCxt`N9yN8#=Fsf delta 5907 zcmV+u7wqV(FzPOljDP(r9I^ZA3ftXwPtTj$t?p5TyseSkyR%OW773NG=CuSVTl4D& z2f^Y2kU(bEL^$NS@MRK6BoZK)IMwy3V23pSdPv`=ubY>@mUZ42?DgB%C;inM_0>~X z7XM+sc=MmH-@H0aN}X8M32?!~mHJN=PrI(=$G&5)->nGlqJO`nf{n$SmprXHo+VNm zE8-c4^s!@YqCZZuv?z{g_H_n+ xQ-63ySW% z0yMs;E2iy+bx$?u^6To6pOWsSVMqfy IyYR^hXL*TbGHc zF%(C4ucWC(mw)hz<8-Rhl95z*leWq<)0H!T0^7Qt;^0=^_EnOKmnuV5l%f>;8P{D# zI}#*S^qdwvPdk>ZT5 Mi;*Jr-0wUJXPN`u{zXF@XHr)7FK?3nqlB4XwKl z%aW(G%6|)5Q6($u_T?g-2p=Y`nRVY?*bbYbKk+Il(@OrNrA60GU#M_lV(ZH>4qZdi zTv&Gwn2FJ<7x993FPCuYD#W`0cIZf#U|yu(sP>z*9ZA!Pr@Allq)B_h79$&)-N^`L zoH|~hM@p63L`M|F@udb2gH7z1a4TK(y%_)yfq(jhVnTG)vt)#TxJ)Nf8dBR4L61d! zBtm6HEf^IGZ6Fic-|di|6{!$l!ubLtJJ||!VjTrW47NqVNtOmn3mr|C1Us<~5}pk} zAi$!;uGm_{uwZKfErMm$1y{`uNwLEsD!sk~m|WrI>hfH3*z&IzKGU9z?W}WZ`ejr< z$$ybX{>LlPwS5MRR~%e&py|CtS1n^G(^#x+>z2M&C0{q!h4ACTBDh-R#V71L%X+nZ zO3{h2_ee%k&V{V5`dgwy-bdYM6SMG6p{N_rSSu*#@(*j(>~k0k@l&lc+SyUDR9 1hrpIW;NC}6nSM`rr> _Le6ieP;T8Z-0{Z zIj@lxHxV}6nfk`7T#mF^T}qMI^}z|g7hPQ@GWJQOhA9b?RqD=#oFqIla~C(~X;Gg@ z*t*eCg4$KU$y1kOwq9BQ?s&m>KTY`otPWxB=b_X&HGncw*8Is#25fa{b z=fpG?ItHAQMI*hYo@&Yt+HpqHN`KlD7;V+kqexQuZ@A+wkpAo7a5FSG I|Cowl7v$#N(>H70*5*~0q{&UvVbBiRBNZfh4RUF)zRSOJ+kYoW_7o8> zb#Z4RR-!5H6f3)fY1fSf>M(J(yi<$}wym6vX+W5u5#W+kX3cbhrFx}~!gqu7AlV*> zOOa*>zK6@+i|K>J&mk_U=bP!9;d+p?Gr%QDj6P<#!hQD@Bz1|I%WfLbj(b_`aMd&* zmpYWC+ude?>{(r~o{XfK^?!I+D0pYF1(=;M0>z-(GBWb!o01`z`-w`3S*#ni-fRX@ zQU385=}yP7*6l_HU3q{62WKvD8lA^>P+QhS2gAFE^ER8%1(Yq$L0%}6VW9m{)a{B* z@Ja36vD<;4Su0}iF>TTdE++V|>_uFPJ*ZC2zW}yQ^9!`2p2*>_zkl(9#C{zd8vAvD z>Fn1 EWw10Tyg+q(Y*eX;D7sR8*DHCfYwg$*h9UKgg3hJ2@^Q_KFk#LU} zs+Ny9*RAiKATvB!O#ji_NDf!>)ff5Vsy+4PYMW1p+IriAgENzw6@JY%iKX1GM3P zk{?~WwzmZiN;^pN{jsRCuZiUGQf+7m8=iRn?qi%Rvj?bUoqsaRu484>1&jJAQj~t7 zmfP~EUDsh;dxx#)0G0NaIEi)BNdf<4iP|BMC f4hzEdC}ce z)aJXUk~Osh-L!SagwQwt+Vg!JpoA%Uaz`p~j 0JEOe}`%RSJ*rz4xg`8@4G+3R^Y}kdRwmf%g zmydNscznrE?WnYNa$TKN?Azoq2!Ifijew0(e2uqlr~cMo$OUFoGzAaW&%iBn)A9$i z4+FHUJAdc&vbI|^2A&0KhEajqV_yw>Ozh^zaEtJv?A~8E?kN>&_cSlm22yk!Geg7D z3C$7M *_3WlJ-p2#68FqF%J0O5y0hYHo4Sml$_9Hu zSB}06@CgIvu*l6qpxHTt+&F)tpq}@WQ4y!f%YVq2LOLSCx*V2uB7+6v*l0&{)&c|9NACy#Qts zV0hul5IXGno^V-~F&Ft=dPciq6d5QDMfIHT+Pncgqqv0`mdz$AhK>LhIsidVd%-Xd zrhkR5g1_5=nFqc?Y41I>|7NY6J6`dD`XIw#2B~`&2VePmy 8@!HM>UHu9347=N QG#KfE+7xb!5)!h_3F--}ip6bQTM$;6OMjwI zAXoswsd*Nh;hAPRft*x#oJzm5l2;s2%?5Bt8=hnZk3QjHPJy@803d6sffwFVGCu!d zi)1!7)eU%dKgXe;xnJN&ENPJ&DcX?Al(YdQ4%^cVg`jqBZ$IC&6BnHsY(t}jRbjml zS{TO&S3z2%dST{VD2%9!xN}qnihm9t o>82qw}eWZ7k3L)FA{a8Ue=9r z{mmXIc?DR??jGy51Ub(!8v?B4& pgocSk_%t`MtW?pq^j{$8BB~RSe@7z`l2_ zn#Y^!)(5S}@7mrML)WUq;) TNrk#f8|8>I*7k?UH)nQurK{Jii7I@g2_)v1(LvY_mt~R;>=hM(5QY`yWlheup zH1HM0TnW#Ae7j8vya)+;w+(U}w!Q;=zX^ st2k1jZFaCRZG5zx!Bnl`qvl=3uzm4~~ z=fm|q2`KV#_C;y+15qyU_f6 z*o#C1HSu8F+6*r?#^FGz7T^)1JMY51hmv(EH~0Kx%d#@}dV8R74`!xKCwo!JI?%I{ zV_EeGdS({-?M7~!`()p`mz0vVr!jwk&A|f43FX%8VWV)&s7@qiJnlWRYE9DKyPLoD zN42UuB!5^6boP$Y@#}ali1LilC)f`lwN9!y@z-HXf>w=}41Mz@emC+G)6`9`(sGPJ zI}`+309!)b`6}XTDInQ26m^)S8-c{xKI|-C6EKE1Y&8mk4Ad5M9d8`n1|uwIv!in1 zAe6 $%{98C zfPeZ_9~Fr}o;_OQ)~7I|HMD0NPjjc?lpKlUU2_}{oM&T=T4jj?Ro{7{3m$yeh=a}# ztFs+J4bK538K)fFp-qPP0I09oE7}e92b!{;5r`R|3xb&ZIdLe@?Ia?ngia RE|n2LpUFH(jwZ?4^>A{+b?g<-@zLiDhh51V2LPG*^oLB^~ogMsax34 z1CesL{>P`=KYzVWe!IE8{q+InQbB_MxchSR$A4Yj{`)0kMy4%+TVHCo5Y~CZ+ ^i*ziJF@@cod6u4lH;T-@zi87dyBV zc5F|#L7B1|yR24_FwX~q260{ *z@5nh0(T}K4`cS0X 3)8ULm}xSSlhH*%v1q)MK|tnJ%0Q@ z?1;F{6NjgX0PMjTxO$mDP}?|sAl#k~FBRqdyj1dbnbNVYYnwZ(XP6IQ-+3n|baeyR zi+V1MwZ|z2rxMK~(|o}PwSSW2N5MDtY%mdnxr#6K!%Nvy%`>Eralw`!LfUu8DXsG9 z !O<0-)qqtc~&s?l@hq+l)Z5isFQcNgy^({0d;Z?xe$G(AfPVp zAsb{xQxZ@ckB5P%Ge<%7ar-EcJ~I?hAD@?lD70YtH7e6aB&W9StK1$@j*X5T$iWMJ zmf!qtzraL(5h7@2>VJb=iuI*6YET`qs1(4YsfQx1PT5n+ku&8v=5TA@f-ZgwhFksF zB4gKR_SrOx%mH$6OU(fSa0|{wo#u(nDkzYKw`Lt~DKVkSN3)QVSST zEa0np0@7*@c{3+Zz5sjAKHTI} b#i cgjj`hp-}OX3y4?*8*vYU4ZDVAkGV_Rv_#~E*rFbuSeg%cssj$E{qQbY zfDlZ&cIo|84u3j1Neh+qK3Y -Zpi0Xw+YG#jH z2pdL1mfJQ*rf9VS-CvwyPH4PpkzOZK$4&a4vhH9tN&{OuOw=+YjT1GL4iTl|CRY#* zxi-)8uUn=gEQMU8N2UzCEA$qODdg~nd~ diWtWvZbg)7n>x>rk4U$&J=>m z8Ri3F5{P-3_-tZcG)ZbPFP$LIn3qkIbj-`A$w0P`N5l_aI5IbxmrIkVO#MC9-_cJM zFF0CL`5qdHZ{wiB_zo2jId^SZiAQ~8XENr7ie0Q&L2%=*8%LvR-;PF!Q*sG9{MlLy z2Y-!{J3N}eV45c%zX8ZeqsSl_3MR-a7%b{?^?!jJgnh?Bx$>oc<53+UC0WI*oPB>S zy8N$2dK}ixhEMg+U*D*gug(zt+q}*k(cSBZ{%Gjp)tNi|c7im;Udf+2q&F{b>=)+O ppUs6BJtp7o6uWzo4O`7i54oae1
ReadonlydescriptionReadonlyisReadonlynameThe Google API LLM variant to use.
-Gets the OpenAPI specification of this tool in the form of a +
ReadonlydescriptionReadonlyisReadonlynameThe Google API LLM variant to use.
+Gets the OpenAPI specification of this tool in the form of a FunctionDeclaration.
NOTE
The FunctionDeclaration of this tool, or undefined if it doesn't need to be added to LlmRequest.config.
-Processes the outgoing LLM request for this tool.
+Processes the outgoing LLM request for this tool.
Use cases:
The request to process the LLM request.
-Runs the tool with the given arguments and context.
+Runs the tool with the given arguments and context.
NOTE
The request to run the tool.
A promise that resolves to the tool response.
-
Param: config:
The configuration of the agent tool.
-