From dd3865c6d92c7bf2c8796108e04636529e49a8d0 Mon Sep 17 00:00:00 2001 From: Jaycee Li Date: Wed, 11 Mar 2026 15:22:27 -0700 Subject: [PATCH] feat: Add model_status to GenerateContentResponse (Gemini API only) feat: Add part_metadata in Part (Gemini API only) feat: Support rendered_parts in GroundingSupport PiperOrigin-RevId: 882224524 --- src/genai/types/common.ts | 45 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/src/genai/types/common.ts b/src/genai/types/common.ts index 8bc5cc07..09a6e8b8 100644 --- a/src/genai/types/common.ts +++ b/src/genai/types/common.ts @@ -156,27 +156,6 @@ export declare interface ReasoningEngineSpecPackageSpec { requirementsGcsUri?: string; } -/** Configuration for the Agent Development Kit (ADK). */ -export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSourceAdkConfig { - /** Required. The value of the ADK config in JSON format. */ - jsonConfig?: Record; -} - -/** Specifies source code provided as a byte stream. */ -export declare interface ReasoningEngineSpecSourceCodeSpecInlineSource { - /** Required. Input only. The application source code archive. It must be a compressed tarball (.tar.gz) file. - * @remarks Encoded as base64 string. */ - sourceArchive?: string; -} - -/** Specification for the deploying from agent config. */ -export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSource { - /** Required. The ADK configuration. */ - adkConfig?: ReasoningEngineSpecSourceCodeSpecAgentConfigSourceAdkConfig; - /** Optional. Any additional files needed to interpret the config. If a `requirements.txt` file is present in the `inline_source`, the corresponding packages will be installed. If no `requirements.txt` file is present in `inline_source`, then the latest version of `google-adk` will be installed for interpreting the ADK config. */ - inlineSource?: ReasoningEngineSpecSourceCodeSpecInlineSource; -} - /** Specifies the configuration for fetching source code from a Git repository that is managed by Developer Connect. This includes the repository, revision, and directory to use. */ @@ -203,6 +182,13 @@ export declare interface ReasoningEngineSpecSourceCodeSpecImageSpec { buildArgs?: Record; } +/** Specifies source code provided as a byte stream. */ +export declare interface ReasoningEngineSpecSourceCodeSpecInlineSource { + /** Required. Input only. The application source code archive. It must be a compressed tarball (.tar.gz) file. + * @remarks Encoded as base64 string. */ + sourceArchive?: string; +} + /** Specification for running a Python application from source. */ export declare interface ReasoningEngineSpecSourceCodeSpecPythonSpec { /** Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root. This field should not be set if the source is `agent_config_source`. */ @@ -217,8 +203,6 @@ export declare interface ReasoningEngineSpecSourceCodeSpecPythonSpec { /** Specification for deploying from source code. */ export declare interface ReasoningEngineSpecSourceCodeSpec { - /** Source code is generated from the agent config. */ - agentConfigSource?: ReasoningEngineSpecSourceCodeSpecAgentConfigSource; /** Source code is in a Git repository managed by Developer Connect. */ developerConnectSource?: ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource; /** Optional. Configuration for building an image with custom config file. */ @@ -1021,6 +1005,14 @@ export declare interface EventActions { transferAgent?: string; } +/** Audio transcription in Server Content. */ +export declare interface Transcription { + /** Optional. Transcription text. */ + text?: string; + /** Optional. The bool indicates the end of the transcription. */ + finished?: boolean; +} + /** Metadata relating to a LLM response event. */ export declare interface EventMetadata { /** Optional. Metadata returned to client when grounding is enabled. */ @@ -1037,6 +1029,10 @@ export declare interface EventMetadata { partial?: boolean; /** Optional. Indicates whether the response from the model is complete. Only used for streaming mode. */ turnComplete?: boolean; + /** Optional. Audio transcription of user input. */ + inputTranscription?: Transcription; + /** Optional. Audio transcription of model output. */ + outputTranscription?: Transcription; } /** Config for appending agent engine session event. */ @@ -1144,6 +1140,9 @@ export declare interface AgentEngine { apiResource?: ReasoningEngine; } +/** Specification for the deploying from agent config. */ +export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSource {} + /** Config for agent engine methods. */ export declare interface AgentEngineConfig { /** Used to override HTTP request options. */