@google/genai 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genai.d.ts +802 -34
- package/dist/index.cjs +866 -107
- package/dist/index.mjs +866 -107
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +924 -165
- package/dist/node/index.mjs +924 -165
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +802 -34
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +19 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +924 -165
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +802 -34
- package/package.json +1 -1
package/dist/genai.d.ts
CHANGED
|
@@ -80,6 +80,10 @@ declare type Agent$ = Agent;
|
|
|
80
80
|
* }
|
|
81
81
|
*/
|
|
82
82
|
declare type Agent = {
|
|
83
|
+
/**
|
|
84
|
+
* Configuration parameters for the agent.
|
|
85
|
+
*/
|
|
86
|
+
agent_config?: interactions.AntigravityAgentConfig | undefined;
|
|
83
87
|
/**
|
|
84
88
|
* The base agent to extend.
|
|
85
89
|
*/
|
|
@@ -106,6 +110,11 @@ declare type Agent = {
|
|
|
106
110
|
tools?: Array<AgentTool> | undefined;
|
|
107
111
|
};
|
|
108
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Configuration parameters for the agent.
|
|
115
|
+
*/
|
|
116
|
+
declare type AgentConfig = interactions.AntigravityAgentConfig;
|
|
117
|
+
|
|
109
118
|
declare type AgentCreateParams$ = CreateAgentParams;
|
|
110
119
|
|
|
111
120
|
declare type AgentDeleteParams$ = DeleteAgentParams;
|
|
@@ -150,6 +159,7 @@ declare namespace agents {
|
|
|
150
159
|
export {
|
|
151
160
|
AgentListResponse,
|
|
152
161
|
AgentTool,
|
|
162
|
+
AgentConfig,
|
|
153
163
|
BaseEnvironment,
|
|
154
164
|
Agent
|
|
155
165
|
}
|
|
@@ -284,7 +294,35 @@ declare type Annotation$ = Annotation;
|
|
|
284
294
|
/**
|
|
285
295
|
* Citation information for model-generated content.
|
|
286
296
|
*/
|
|
287
|
-
declare type Annotation = URLCitation | FileCitation | PlaceCitation;
|
|
297
|
+
declare type Annotation = URLCitation | FileCitation | PlaceCitation | WordInfo;
|
|
298
|
+
|
|
299
|
+
declare type AntigravityAgentConfig$ = AntigravityAgentConfig;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @license
|
|
303
|
+
* Copyright 2026 Google LLC
|
|
304
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
305
|
+
*
|
|
306
|
+
* g3-prettier-ignore-file
|
|
307
|
+
*/
|
|
308
|
+
/**
|
|
309
|
+
* Configuration for the Antigravity agent runtime.
|
|
310
|
+
*
|
|
311
|
+
* @remarks
|
|
312
|
+
* Provides server-side control over the agent's execution environment
|
|
313
|
+
* and tool configuration.
|
|
314
|
+
*/
|
|
315
|
+
declare type AntigravityAgentConfig = {
|
|
316
|
+
/**
|
|
317
|
+
* Max total tokens for the agent run.
|
|
318
|
+
*/
|
|
319
|
+
max_total_tokens?: string | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* The model to use for agent reasoning.
|
|
322
|
+
*/
|
|
323
|
+
model?: string | undefined;
|
|
324
|
+
type: "antigravity";
|
|
325
|
+
};
|
|
288
326
|
|
|
289
327
|
/** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */
|
|
290
328
|
export declare interface ApiAuth {
|
|
@@ -720,7 +758,9 @@ export declare interface AudioTranscriptionConfig {
|
|
|
720
758
|
languageAuto?: LanguageAuto;
|
|
721
759
|
/** Specifies one or more languages in the audio. Do not use together with LanguageAuto. */
|
|
722
760
|
languageHints?: LanguageHints;
|
|
723
|
-
/** A list of
|
|
761
|
+
/** A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms. */
|
|
762
|
+
customVocabulary?: string[];
|
|
763
|
+
/** Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. */
|
|
724
764
|
adaptationPhrases?: string[];
|
|
725
765
|
}
|
|
726
766
|
|
|
@@ -1776,6 +1816,47 @@ declare type CodeExecutionResultStep = {
|
|
|
1776
1816
|
type: "code_execution_result";
|
|
1777
1817
|
};
|
|
1778
1818
|
|
|
1819
|
+
declare type CodeMenderAgentConfig$ = CodeMenderAgentConfig;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Configuration for the CodeMender agent.
|
|
1823
|
+
*/
|
|
1824
|
+
declare type CodeMenderAgentConfig = {
|
|
1825
|
+
/**
|
|
1826
|
+
* Request parameters specific to FIND sessions, used for discovering
|
|
1827
|
+
*
|
|
1828
|
+
* @remarks
|
|
1829
|
+
* vulnerabilities in a codebase.
|
|
1830
|
+
*/
|
|
1831
|
+
find_request?: FindRequest | undefined;
|
|
1832
|
+
/**
|
|
1833
|
+
* Request parameters specific to FIX sessions, used for generating and
|
|
1834
|
+
*
|
|
1835
|
+
* @remarks
|
|
1836
|
+
* validating security patches.
|
|
1837
|
+
*/
|
|
1838
|
+
fix_request?: FixRequest | undefined;
|
|
1839
|
+
/**
|
|
1840
|
+
* The name of the model to use for the CodeMender agent. One
|
|
1841
|
+
*
|
|
1842
|
+
* @remarks
|
|
1843
|
+
* CodeMender session will only use one model.
|
|
1844
|
+
*/
|
|
1845
|
+
model?: string | undefined;
|
|
1846
|
+
/**
|
|
1847
|
+
* The configuration of CodeMender sessions.
|
|
1848
|
+
*/
|
|
1849
|
+
session_config?: SessionConfig | undefined;
|
|
1850
|
+
/**
|
|
1851
|
+
* Parameter for grouping multiple interactions that belong to
|
|
1852
|
+
*
|
|
1853
|
+
* @remarks
|
|
1854
|
+
* the same CodeMender session.
|
|
1855
|
+
*/
|
|
1856
|
+
session_id?: string | undefined;
|
|
1857
|
+
type: "code-mender";
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1779
1860
|
/** Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API. */
|
|
1780
1861
|
export declare interface CompletionStats {
|
|
1781
1862
|
/** Output only. The number of entities for which any error was encountered. */
|
|
@@ -1917,6 +1998,9 @@ export declare interface ContentEmbeddingStatistics {
|
|
|
1917
1998
|
/** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
|
|
1918
1999
|
*/
|
|
1919
2000
|
tokenCount?: number;
|
|
2001
|
+
/** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
|
|
2002
|
+
*/
|
|
2003
|
+
tokensDetails?: ModalityTokenCount[];
|
|
1920
2004
|
}
|
|
1921
2005
|
|
|
1922
2006
|
export declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
|
|
@@ -2096,7 +2180,7 @@ declare type CreateAgentInteraction = {
|
|
|
2096
2180
|
/**
|
|
2097
2181
|
* Configuration parameters for the agent interaction.
|
|
2098
2182
|
*/
|
|
2099
|
-
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
|
|
2183
|
+
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
|
|
2100
2184
|
/**
|
|
2101
2185
|
* Safety settings for the interaction.
|
|
2102
2186
|
*/
|
|
@@ -2116,7 +2200,7 @@ declare type CreateAgentInteraction = {
|
|
|
2116
2200
|
/**
|
|
2117
2201
|
* Configuration parameters for the agent interaction.
|
|
2118
2202
|
*/
|
|
2119
|
-
declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
|
|
2203
|
+
declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
|
|
2120
2204
|
|
|
2121
2205
|
/**
|
|
2122
2206
|
* The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
|
|
@@ -2493,16 +2577,6 @@ declare type CreateModelInteraction = {
|
|
|
2493
2577
|
* Configuration parameters for model interactions.
|
|
2494
2578
|
*/
|
|
2495
2579
|
generation_config?: GenerationConfig_2 | undefined;
|
|
2496
|
-
/**
|
|
2497
|
-
* The name of the cached content used as context to serve the prediction.
|
|
2498
|
-
*
|
|
2499
|
-
* @remarks
|
|
2500
|
-
* Note: only used in explicit caching, where users can have control over
|
|
2501
|
-
* caching (e.g. what content to cache) and enjoy guaranteed cost savings.
|
|
2502
|
-
* Format:
|
|
2503
|
-
* `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
|
|
2504
|
-
*/
|
|
2505
|
-
cached_content?: string | undefined;
|
|
2506
2580
|
/**
|
|
2507
2581
|
* Safety settings for the interaction.
|
|
2508
2582
|
*/
|
|
@@ -2578,6 +2652,16 @@ export declare function createPartFromText(text: string): Part;
|
|
|
2578
2652
|
*/
|
|
2579
2653
|
export declare function createPartFromUri(uri: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;
|
|
2580
2654
|
|
|
2655
|
+
declare type CreateTriggerParams = Omit<CreateTriggerRequest, "body"> & CreateTriggerRequest["body"];
|
|
2656
|
+
|
|
2657
|
+
declare type CreateTriggerRequest = {
|
|
2658
|
+
/**
|
|
2659
|
+
* Which version of the API to use.
|
|
2660
|
+
*/
|
|
2661
|
+
api_version?: string | undefined;
|
|
2662
|
+
body: triggers.TriggerCreateParams;
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2581
2665
|
/** Fine-tuning job creation request - optional fields. */
|
|
2582
2666
|
export declare interface CreateTuningJobConfig {
|
|
2583
2667
|
/** Used to override HTTP request options. */
|
|
@@ -2997,6 +3081,19 @@ export declare interface DeleteResourceJob {
|
|
|
2997
3081
|
error?: JobError;
|
|
2998
3082
|
}
|
|
2999
3083
|
|
|
3084
|
+
declare type DeleteTriggerParams = Omit<DeleteTriggerRequest, "id">;
|
|
3085
|
+
|
|
3086
|
+
declare type DeleteTriggerRequest = {
|
|
3087
|
+
/**
|
|
3088
|
+
* Which version of the API to use.
|
|
3089
|
+
*/
|
|
3090
|
+
api_version?: string | undefined;
|
|
3091
|
+
/**
|
|
3092
|
+
* Resource name of the trigger.
|
|
3093
|
+
*/
|
|
3094
|
+
id: string;
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3000
3097
|
declare type DeleteWebhookParams = Omit<DeleteWebhookRequest, "id">;
|
|
3001
3098
|
|
|
3002
3099
|
declare type DeleteWebhookRequest = {
|
|
@@ -3914,6 +4011,27 @@ declare type FileCitation = {
|
|
|
3914
4011
|
type: "file_citation";
|
|
3915
4012
|
};
|
|
3916
4013
|
|
|
4014
|
+
/**
|
|
4015
|
+
* @license
|
|
4016
|
+
* Copyright 2026 Google LLC
|
|
4017
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4018
|
+
*
|
|
4019
|
+
* g3-prettier-ignore-file
|
|
4020
|
+
*/
|
|
4021
|
+
/**
|
|
4022
|
+
* Content of a single file in the codebase.
|
|
4023
|
+
*/
|
|
4024
|
+
declare type FileContent = {
|
|
4025
|
+
/**
|
|
4026
|
+
* The UTF-8 encoded text content of the file.
|
|
4027
|
+
*/
|
|
4028
|
+
content?: string | undefined;
|
|
4029
|
+
/**
|
|
4030
|
+
* The relative path of the file from the project root.
|
|
4031
|
+
*/
|
|
4032
|
+
path?: string | undefined;
|
|
4033
|
+
};
|
|
4034
|
+
|
|
3917
4035
|
/** URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. */
|
|
3918
4036
|
export declare interface FileData {
|
|
3919
4037
|
/** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
|
|
@@ -4364,6 +4482,40 @@ declare type Filter = {
|
|
|
4364
4482
|
vector_similarity_threshold?: number | undefined;
|
|
4365
4483
|
};
|
|
4366
4484
|
|
|
4485
|
+
declare type FindRequest$ = FindRequest;
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* Request parameters specific to FIND sessions, used for discovering
|
|
4489
|
+
*
|
|
4490
|
+
* @remarks
|
|
4491
|
+
* vulnerabilities in a codebase.
|
|
4492
|
+
*/
|
|
4493
|
+
declare type FindRequest = {
|
|
4494
|
+
/**
|
|
4495
|
+
* Additional context or custom instructions provided by the user to guide
|
|
4496
|
+
*
|
|
4497
|
+
* @remarks
|
|
4498
|
+
* the vulnerability analysis.
|
|
4499
|
+
*/
|
|
4500
|
+
description?: string | undefined;
|
|
4501
|
+
/**
|
|
4502
|
+
* The identifier of a specific finding to verify. This is primarily used in
|
|
4503
|
+
*
|
|
4504
|
+
* @remarks
|
|
4505
|
+
* VERIFY mode to focus the agent's execution-based validation on a single
|
|
4506
|
+
* vulnerability.
|
|
4507
|
+
*/
|
|
4508
|
+
finding_id?: string | undefined;
|
|
4509
|
+
/**
|
|
4510
|
+
* The mode of the find session.
|
|
4511
|
+
*/
|
|
4512
|
+
mode?: Mode | undefined;
|
|
4513
|
+
/**
|
|
4514
|
+
* A list of source files to provide as context for the scan.
|
|
4515
|
+
*/
|
|
4516
|
+
source_files?: Array<FileContent> | undefined;
|
|
4517
|
+
};
|
|
4518
|
+
|
|
4367
4519
|
/** Output only. The reason why the model stopped generating tokens.
|
|
4368
4520
|
|
|
4369
4521
|
If empty, the model has not stopped generating the tokens. */
|
|
@@ -4438,6 +4590,38 @@ export declare enum FinishReason {
|
|
|
4438
4590
|
IMAGE_OTHER = "IMAGE_OTHER"
|
|
4439
4591
|
}
|
|
4440
4592
|
|
|
4593
|
+
declare type FixRequest$ = FixRequest;
|
|
4594
|
+
|
|
4595
|
+
/**
|
|
4596
|
+
* Request parameters specific to FIX sessions, used for generating and
|
|
4597
|
+
*
|
|
4598
|
+
* @remarks
|
|
4599
|
+
* validating security patches.
|
|
4600
|
+
*/
|
|
4601
|
+
declare type FixRequest = {
|
|
4602
|
+
/**
|
|
4603
|
+
* Additional context or custom instructions provided by the user to guide
|
|
4604
|
+
*
|
|
4605
|
+
* @remarks
|
|
4606
|
+
* the patch generation process.
|
|
4607
|
+
*/
|
|
4608
|
+
description?: string | undefined;
|
|
4609
|
+
/**
|
|
4610
|
+
* The identifier of the specific security finding to be remediated. This ID
|
|
4611
|
+
*
|
|
4612
|
+
* @remarks
|
|
4613
|
+
* maps to a previously discovered vulnerability.
|
|
4614
|
+
*/
|
|
4615
|
+
finding_id?: string | undefined;
|
|
4616
|
+
/**
|
|
4617
|
+
* A list of source files providing context for the remediation. These files
|
|
4618
|
+
*
|
|
4619
|
+
* @remarks
|
|
4620
|
+
* are typically the ones containing the identified vulnerability.
|
|
4621
|
+
*/
|
|
4622
|
+
source_files?: Array<FileContent> | undefined;
|
|
4623
|
+
};
|
|
4624
|
+
|
|
4441
4625
|
/** Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API. */
|
|
4442
4626
|
export declare interface FullFineTuningSpec {
|
|
4443
4627
|
/** Optional. Hyperparameters for Full Fine Tuning. */
|
|
@@ -4647,7 +4831,7 @@ declare type FunctionResultStep = {
|
|
|
4647
4831
|
*/
|
|
4648
4832
|
name?: string | undefined;
|
|
4649
4833
|
/**
|
|
4650
|
-
* The result of the tool call.
|
|
4834
|
+
* Required. The result of the tool call.
|
|
4651
4835
|
*/
|
|
4652
4836
|
result: FunctionResultStepResult | Array<FunctionResultSubcontent> | string;
|
|
4653
4837
|
type: "function_result";
|
|
@@ -4656,7 +4840,7 @@ declare type FunctionResultStep = {
|
|
|
4656
4840
|
declare type FunctionResultStepResult = {};
|
|
4657
4841
|
|
|
4658
4842
|
/**
|
|
4659
|
-
* The result of the tool call.
|
|
4843
|
+
* Required. The result of the tool call.
|
|
4660
4844
|
*/
|
|
4661
4845
|
declare type FunctionResultStepResultUnion = FunctionResultStepResult | Array<FunctionResultSubcontent> | string;
|
|
4662
4846
|
|
|
@@ -4728,6 +4912,20 @@ declare class GeminiNextGenInteractions {
|
|
|
4728
4912
|
private getClient;
|
|
4729
4913
|
}
|
|
4730
4914
|
|
|
4915
|
+
declare class GeminiNextGenTriggers {
|
|
4916
|
+
private readonly parentClient;
|
|
4917
|
+
private sdk;
|
|
4918
|
+
constructor(parentClient: GoogleGenAIParentClient);
|
|
4919
|
+
create(params: CreateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4920
|
+
list(params?: ListTriggersParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggersResponse>;
|
|
4921
|
+
get(id: string, params?: GetTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4922
|
+
update(id: string, params: UpdateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4923
|
+
delete(id: string, params?: DeleteTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<interactions.Empty>;
|
|
4924
|
+
run(trigger_id: string, params?: RunTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.TriggerExecution>;
|
|
4925
|
+
listExecutions(trigger_id: string, params?: ListTriggerExecutionsParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggerExecutionsResponse>;
|
|
4926
|
+
private getClient;
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4731
4929
|
declare class GeminiNextGenWebhooks {
|
|
4732
4930
|
private readonly parentClient;
|
|
4733
4931
|
private sdk;
|
|
@@ -5462,6 +5660,10 @@ declare type GenerationConfig_2 = {
|
|
|
5462
5660
|
* The maximum cumulative probability of tokens to consider when sampling.
|
|
5463
5661
|
*/
|
|
5464
5662
|
top_p?: number | undefined;
|
|
5663
|
+
/**
|
|
5664
|
+
* Configuration for speech recognition (transcription).
|
|
5665
|
+
*/
|
|
5666
|
+
transcription_config?: TranscriptionConfig | undefined;
|
|
5465
5667
|
/**
|
|
5466
5668
|
* Configuration options for video generation.
|
|
5467
5669
|
*/
|
|
@@ -5691,6 +5893,19 @@ export declare interface GetOperationParameters {
|
|
|
5691
5893
|
config?: GetOperationConfig;
|
|
5692
5894
|
}
|
|
5693
5895
|
|
|
5896
|
+
declare type GetTriggerParams = Omit<GetTriggerRequest, "id">;
|
|
5897
|
+
|
|
5898
|
+
declare type GetTriggerRequest = {
|
|
5899
|
+
/**
|
|
5900
|
+
* Which version of the API to use.
|
|
5901
|
+
*/
|
|
5902
|
+
api_version?: string | undefined;
|
|
5903
|
+
/**
|
|
5904
|
+
* Resource name of the trigger.
|
|
5905
|
+
*/
|
|
5906
|
+
id: string;
|
|
5907
|
+
};
|
|
5908
|
+
|
|
5694
5909
|
/** Optional parameters for tunings.get method. */
|
|
5695
5910
|
export declare interface GetTuningJobConfig {
|
|
5696
5911
|
/** Used to override HTTP request options. */
|
|
@@ -5775,10 +5990,12 @@ export declare class GoogleGenAI {
|
|
|
5775
5990
|
private _webhooks;
|
|
5776
5991
|
private _agents;
|
|
5777
5992
|
private _nextGenClient;
|
|
5993
|
+
private _triggers;
|
|
5778
5994
|
private getNextGenClient;
|
|
5779
5995
|
get interactions(): GeminiNextGenInteractions;
|
|
5780
5996
|
get webhooks(): GeminiNextGenWebhooks;
|
|
5781
5997
|
get agents(): GeminiNextGenAgents;
|
|
5998
|
+
get triggers(): GeminiNextGenTriggers;
|
|
5782
5999
|
constructor(options: GoogleGenAIOptions);
|
|
5783
6000
|
}
|
|
5784
6001
|
|
|
@@ -5873,6 +6090,7 @@ declare interface GoogleGenAIParentClient {
|
|
|
5873
6090
|
getBaseUrl(): string;
|
|
5874
6091
|
getApiVersion(): string;
|
|
5875
6092
|
getDefaultHeaders?(): Record<string, string>;
|
|
6093
|
+
getHeaders?(): Record<string, string> | undefined;
|
|
5876
6094
|
getAuthHeaders(url?: string): Headers | Promise<Headers>;
|
|
5877
6095
|
}
|
|
5878
6096
|
|
|
@@ -6604,6 +6822,16 @@ export declare enum HarmSeverity {
|
|
|
6604
6822
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
6605
6823
|
}
|
|
6606
6824
|
|
|
6825
|
+
/** Configuration for history exchange between client and server. */
|
|
6826
|
+
export declare interface HistoryConfig {
|
|
6827
|
+
/** If true, after sending `setup_complete`, the server will wait
|
|
6828
|
+
and at first process `client_content` messages until `turn_complete` is
|
|
6829
|
+
`true`. This initial history will not trigger a model call and
|
|
6830
|
+
may end with model content. After `turn_complete` is `true`, the client
|
|
6831
|
+
can start the realtime conversation via `realtime_input`. */
|
|
6832
|
+
initialHistoryInClientContent?: boolean;
|
|
6833
|
+
}
|
|
6834
|
+
|
|
6607
6835
|
/** The location of the API key. This enum is not supported in Gemini API. */
|
|
6608
6836
|
export declare enum HttpElementLocation {
|
|
6609
6837
|
HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
|
|
@@ -7174,20 +7402,10 @@ declare type Interaction = {
|
|
|
7174
7402
|
* Configuration parameters for model interactions.
|
|
7175
7403
|
*/
|
|
7176
7404
|
generation_config?: GenerationConfig_2 | undefined;
|
|
7177
|
-
/**
|
|
7178
|
-
* The name of the cached content used as context to serve the prediction.
|
|
7179
|
-
*
|
|
7180
|
-
* @remarks
|
|
7181
|
-
* Note: only used in explicit caching, where users can have control over
|
|
7182
|
-
* caching (e.g. what content to cache) and enjoy guaranteed cost savings.
|
|
7183
|
-
* Format:
|
|
7184
|
-
* `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
|
|
7185
|
-
*/
|
|
7186
|
-
cached_content?: string | undefined;
|
|
7187
7405
|
/**
|
|
7188
7406
|
* Configuration parameters for the agent interaction.
|
|
7189
7407
|
*/
|
|
7190
|
-
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
|
|
7408
|
+
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
|
|
7191
7409
|
/**
|
|
7192
7410
|
* Safety settings for the interaction.
|
|
7193
7411
|
*/
|
|
@@ -7224,10 +7442,15 @@ declare type Interaction = {
|
|
|
7224
7442
|
output_video?: VideoContent | undefined;
|
|
7225
7443
|
};
|
|
7226
7444
|
|
|
7445
|
+
/**
|
|
7446
|
+
* Required. The interaction request template to be executed.
|
|
7447
|
+
*/
|
|
7448
|
+
declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
7449
|
+
|
|
7227
7450
|
/**
|
|
7228
7451
|
* Configuration parameters for the agent interaction.
|
|
7229
7452
|
*/
|
|
7230
|
-
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
|
|
7453
|
+
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
|
|
7231
7454
|
|
|
7232
7455
|
declare type InteractionCancelParams$ = CancelInteractionByIdParams;
|
|
7233
7456
|
|
|
@@ -7316,12 +7539,15 @@ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseForma
|
|
|
7316
7539
|
export declare namespace Interactions {
|
|
7317
7540
|
export type AllowedTools = AllowedTools$;
|
|
7318
7541
|
export type Annotation = Annotation$;
|
|
7542
|
+
export type AntigravityAgentConfig = AntigravityAgentConfig$;
|
|
7319
7543
|
export type AudioContent = AudioContent$;
|
|
7320
7544
|
export type AudioResponseFormat = AudioResponseFormat$;
|
|
7321
7545
|
export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
|
|
7322
7546
|
export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
|
|
7323
7547
|
}
|
|
7324
7548
|
export type CodeExecutionResultStep = CodeExecutionResultStep$;
|
|
7549
|
+
export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
|
|
7550
|
+
}
|
|
7325
7551
|
export type Content = Content$;
|
|
7326
7552
|
export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
|
|
7327
7553
|
export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
|
|
@@ -7400,6 +7626,7 @@ export declare namespace Interactions {
|
|
|
7400
7626
|
export type Tool = Tool$;
|
|
7401
7627
|
export type ToolChoiceConfig = ToolChoiceConfig$;
|
|
7402
7628
|
export type ToolChoiceType = ToolChoiceType$;
|
|
7629
|
+
export type TranscriptionConfig = TranscriptionConfig$;
|
|
7403
7630
|
export type URLCitation = URLCitation$;
|
|
7404
7631
|
export type URLContextCallArguments = URLContextCallArguments$;
|
|
7405
7632
|
export interface URLContextCallStep extends URLContextCallStep$ {
|
|
@@ -7414,9 +7641,23 @@ export declare namespace Interactions {
|
|
|
7414
7641
|
export type VideoContent = VideoContent$;
|
|
7415
7642
|
export type VideoResponseFormat = VideoResponseFormat$;
|
|
7416
7643
|
export type WebhookConfig = WebhookConfig$;
|
|
7644
|
+
export type WordInfo = WordInfo$;
|
|
7417
7645
|
export namespace CodeExecutionCallStep {
|
|
7418
7646
|
export type Arguments = Arguments$;
|
|
7419
7647
|
}
|
|
7648
|
+
export namespace CodeMenderAgentConfig {
|
|
7649
|
+
export interface FindRequest extends FindRequest$ {
|
|
7650
|
+
}
|
|
7651
|
+
export interface FixRequest extends FixRequest$ {
|
|
7652
|
+
}
|
|
7653
|
+
export type SessionConfig = SessionConfig$;
|
|
7654
|
+
export namespace FindRequest {
|
|
7655
|
+
export type SourceFile = SourceFile$;
|
|
7656
|
+
}
|
|
7657
|
+
export namespace FixRequest {
|
|
7658
|
+
export type SourceFile = SourceFile$2;
|
|
7659
|
+
}
|
|
7660
|
+
}
|
|
7420
7661
|
export namespace Environment {
|
|
7421
7662
|
export type Allowlist = Allowlist$;
|
|
7422
7663
|
export type Source = Source$;
|
|
@@ -7541,6 +7782,7 @@ declare namespace interactions {
|
|
|
7541
7782
|
Transform,
|
|
7542
7783
|
AllowlistEntry,
|
|
7543
7784
|
Annotation,
|
|
7785
|
+
AntigravityAgentConfig,
|
|
7544
7786
|
ArgumentsDelta,
|
|
7545
7787
|
AudioContentMimeType,
|
|
7546
7788
|
AudioContent,
|
|
@@ -7556,6 +7798,7 @@ declare namespace interactions {
|
|
|
7556
7798
|
CodeExecutionResultDelta,
|
|
7557
7799
|
CodeExecutionResultStep,
|
|
7558
7800
|
CodeExecution,
|
|
7801
|
+
CodeMenderAgentConfig,
|
|
7559
7802
|
DisabledSafetyPolicy,
|
|
7560
7803
|
EnvironmentEnum,
|
|
7561
7804
|
ComputerUse_2 as ComputerUse,
|
|
@@ -7585,6 +7828,7 @@ declare namespace interactions {
|
|
|
7585
7828
|
ErrorT,
|
|
7586
7829
|
ExaAISearchConfig,
|
|
7587
7830
|
FileCitation,
|
|
7831
|
+
FileContent,
|
|
7588
7832
|
FileSearchCallDelta,
|
|
7589
7833
|
FileSearchCallStep,
|
|
7590
7834
|
FileSearchResultDelta,
|
|
@@ -7592,6 +7836,9 @@ declare namespace interactions {
|
|
|
7592
7836
|
FileSearchResult,
|
|
7593
7837
|
FileSearch_2 as FileSearch,
|
|
7594
7838
|
Filter,
|
|
7839
|
+
Mode,
|
|
7840
|
+
FindRequest,
|
|
7841
|
+
FixRequest,
|
|
7595
7842
|
FunctionCallStep,
|
|
7596
7843
|
FunctionResultDeltaResult,
|
|
7597
7844
|
FunctionResultDeltaResultUnion,
|
|
@@ -7682,6 +7929,7 @@ declare namespace interactions {
|
|
|
7682
7929
|
Threshold,
|
|
7683
7930
|
SafetySetting_2 as SafetySetting,
|
|
7684
7931
|
ServiceTier_2 as ServiceTier,
|
|
7932
|
+
SessionConfig,
|
|
7685
7933
|
SourceType,
|
|
7686
7934
|
Source,
|
|
7687
7935
|
SpeechConfig_2 as SpeechConfig,
|
|
@@ -7707,6 +7955,7 @@ declare namespace interactions {
|
|
|
7707
7955
|
ToolChoiceConfig,
|
|
7708
7956
|
ToolChoiceType,
|
|
7709
7957
|
Tool_2 as Tool,
|
|
7958
|
+
TranscriptionConfig,
|
|
7710
7959
|
TurnContent,
|
|
7711
7960
|
Turn,
|
|
7712
7961
|
URLCitation,
|
|
@@ -7730,7 +7979,8 @@ declare namespace interactions {
|
|
|
7730
7979
|
VideoResponseFormatAspectRatio,
|
|
7731
7980
|
VideoResponseFormatDelivery,
|
|
7732
7981
|
VideoResponseFormat_2 as VideoResponseFormat,
|
|
7733
|
-
WebhookConfig_2 as WebhookConfig
|
|
7982
|
+
WebhookConfig_2 as WebhookConfig,
|
|
7983
|
+
WordInfo
|
|
7734
7984
|
}
|
|
7735
7985
|
}
|
|
7736
7986
|
|
|
@@ -7802,7 +8052,7 @@ declare type InteractionSSEStreamEvent = {
|
|
|
7802
8052
|
/**
|
|
7803
8053
|
* Required. Output only. The status of the interaction.
|
|
7804
8054
|
*/
|
|
7805
|
-
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8055
|
+
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
7806
8056
|
|
|
7807
8057
|
declare type InteractionStatusUpdate$ = InteractionStatusUpdate;
|
|
7808
8058
|
|
|
@@ -7820,7 +8070,7 @@ declare type InteractionStatusUpdate = {
|
|
|
7820
8070
|
status: InteractionStatusUpdateStatus;
|
|
7821
8071
|
};
|
|
7822
8072
|
|
|
7823
|
-
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8073
|
+
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
7824
8074
|
|
|
7825
8075
|
/** Parameters for the private _Register method. */
|
|
7826
8076
|
export declare interface InternalRegisterFilesParameters {
|
|
@@ -8142,6 +8392,99 @@ export declare class ListModelsResponse {
|
|
|
8142
8392
|
models?: Model[];
|
|
8143
8393
|
}
|
|
8144
8394
|
|
|
8395
|
+
declare type ListTriggerExecutionsParams = {
|
|
8396
|
+
api_version?: string;
|
|
8397
|
+
pageSize?: number;
|
|
8398
|
+
pageToken?: string;
|
|
8399
|
+
};
|
|
8400
|
+
|
|
8401
|
+
declare type ListTriggerExecutionsParams_2 = Omit<ListTriggerExecutionsRequest, "trigger_id">;
|
|
8402
|
+
|
|
8403
|
+
declare type ListTriggerExecutionsRequest = {
|
|
8404
|
+
/**
|
|
8405
|
+
* Which version of the API to use.
|
|
8406
|
+
*/
|
|
8407
|
+
api_version?: string | undefined;
|
|
8408
|
+
/**
|
|
8409
|
+
* Resource name of the trigger.
|
|
8410
|
+
*/
|
|
8411
|
+
trigger_id: string;
|
|
8412
|
+
/**
|
|
8413
|
+
* Optional. The maximum number of executions to return per page.
|
|
8414
|
+
*/
|
|
8415
|
+
page_size?: number | undefined;
|
|
8416
|
+
/**
|
|
8417
|
+
* Optional. A page token from a previous ListTriggerExecutions call.
|
|
8418
|
+
*/
|
|
8419
|
+
page_token?: string | undefined;
|
|
8420
|
+
};
|
|
8421
|
+
|
|
8422
|
+
declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
8423
|
+
|
|
8424
|
+
/**
|
|
8425
|
+
* Response message for TriggerService.ListTriggerExecutions.
|
|
8426
|
+
*/
|
|
8427
|
+
declare type ListTriggerExecutionsResponse = {
|
|
8428
|
+
/**
|
|
8429
|
+
* A page token, received from a previous `ListTriggerExecutions` call.
|
|
8430
|
+
*
|
|
8431
|
+
* @remarks
|
|
8432
|
+
* Provide this to retrieve the subsequent page.
|
|
8433
|
+
*/
|
|
8434
|
+
next_page_token?: string | undefined;
|
|
8435
|
+
/**
|
|
8436
|
+
* The list of trigger executions.
|
|
8437
|
+
*/
|
|
8438
|
+
trigger_executions?: Array<TriggerExecution> | undefined;
|
|
8439
|
+
};
|
|
8440
|
+
|
|
8441
|
+
declare type ListTriggersParams = {
|
|
8442
|
+
api_version?: string;
|
|
8443
|
+
filter?: string;
|
|
8444
|
+
pageSize?: number;
|
|
8445
|
+
pageToken?: string;
|
|
8446
|
+
};
|
|
8447
|
+
|
|
8448
|
+
declare type ListTriggersParams_2 = ListTriggersRequest;
|
|
8449
|
+
|
|
8450
|
+
declare type ListTriggersRequest = {
|
|
8451
|
+
/**
|
|
8452
|
+
* Which version of the API to use.
|
|
8453
|
+
*/
|
|
8454
|
+
api_version?: string | undefined;
|
|
8455
|
+
/**
|
|
8456
|
+
* Optional. Filter expression (e.g., by state).
|
|
8457
|
+
*/
|
|
8458
|
+
filter?: string | undefined;
|
|
8459
|
+
/**
|
|
8460
|
+
* Optional. The maximum number of triggers to return per page.
|
|
8461
|
+
*/
|
|
8462
|
+
page_size?: number | undefined;
|
|
8463
|
+
/**
|
|
8464
|
+
* Optional. A page token from a previous ListTriggers call.
|
|
8465
|
+
*/
|
|
8466
|
+
page_token?: string | undefined;
|
|
8467
|
+
};
|
|
8468
|
+
|
|
8469
|
+
declare type ListTriggersResponse$ = ListTriggersResponse;
|
|
8470
|
+
|
|
8471
|
+
/**
|
|
8472
|
+
* Response message for TriggerService.ListTriggers.
|
|
8473
|
+
*/
|
|
8474
|
+
declare type ListTriggersResponse = {
|
|
8475
|
+
/**
|
|
8476
|
+
* A page token, received from a previous `ListTriggers` call.
|
|
8477
|
+
*
|
|
8478
|
+
* @remarks
|
|
8479
|
+
* Provide this to retrieve the subsequent page.
|
|
8480
|
+
*/
|
|
8481
|
+
next_page_token?: string | undefined;
|
|
8482
|
+
/**
|
|
8483
|
+
* The list of triggers.
|
|
8484
|
+
*/
|
|
8485
|
+
triggers?: Array<Trigger> | undefined;
|
|
8486
|
+
};
|
|
8487
|
+
|
|
8145
8488
|
/** Configuration for the list tuning jobs method. */
|
|
8146
8489
|
export declare interface ListTuningJobsConfig {
|
|
8147
8490
|
/** Used to override HTTP request options. */
|
|
@@ -8397,6 +8740,8 @@ export declare interface LiveClientSetup {
|
|
|
8397
8740
|
response.
|
|
8398
8741
|
*/
|
|
8399
8742
|
safetySettings?: SafetySetting[];
|
|
8743
|
+
/** Configures the exchange of history between the client and the server. */
|
|
8744
|
+
historyConfig?: HistoryConfig;
|
|
8400
8745
|
}
|
|
8401
8746
|
|
|
8402
8747
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -9197,7 +9542,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9197
9542
|
*/
|
|
9198
9543
|
name?: string | undefined;
|
|
9199
9544
|
/**
|
|
9200
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9545
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9201
9546
|
*/
|
|
9202
9547
|
result: MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9203
9548
|
/**
|
|
@@ -9210,7 +9555,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9210
9555
|
declare type MCPServerToolResultStepResult = {};
|
|
9211
9556
|
|
|
9212
9557
|
/**
|
|
9213
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9558
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9214
9559
|
*/
|
|
9215
9560
|
declare type MCPServerToolResultStepResultUnion = MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9216
9561
|
|
|
@@ -9348,6 +9693,11 @@ declare type ModalityTokens = {
|
|
|
9348
9693
|
tokens?: number | undefined;
|
|
9349
9694
|
};
|
|
9350
9695
|
|
|
9696
|
+
/**
|
|
9697
|
+
* The mode of the find session.
|
|
9698
|
+
*/
|
|
9699
|
+
declare type Mode = "scan" | "verify" | (string & {});
|
|
9700
|
+
|
|
9351
9701
|
declare type Model$ = Model_2;
|
|
9352
9702
|
|
|
9353
9703
|
/** A trained machine learning model. */
|
|
@@ -9415,7 +9765,7 @@ export declare interface Model {
|
|
|
9415
9765
|
/**
|
|
9416
9766
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
9417
9767
|
*/
|
|
9418
|
-
declare type Model_2 = "gemini-2.5-
|
|
9768
|
+
declare type Model_2 = "gemini-2.5-flash" | "gemini-2.5-pro" | "gemma-4-26b-a4b-it" | "gemma-4-31b-it" | "gemini-flash-latest" | "gemini-flash-lite-latest" | "gemini-pro-latest" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-image" | "gemini-3-flash-preview" | "gemini-3.1-pro-preview" | "gemini-3.1-pro-preview-customtools" | "gemini-3.1-flash-lite" | "gemini-3-pro-image" | "nano-banana-pro-preview" | "gemini-3.1-flash-image" | "gemini-3.5-flash" | "lyria-3-clip-preview" | "lyria-3-pro-preview" | "gemini-robotics-er-1.6-preview" | (string & {});
|
|
9419
9769
|
|
|
9420
9770
|
/** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
|
|
9421
9771
|
export declare interface ModelArmorConfig {
|
|
@@ -11328,6 +11678,19 @@ export declare interface RougeMetricValue {
|
|
|
11328
11678
|
score?: number;
|
|
11329
11679
|
}
|
|
11330
11680
|
|
|
11681
|
+
declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
|
|
11682
|
+
|
|
11683
|
+
declare type RunTriggerRequest = {
|
|
11684
|
+
/**
|
|
11685
|
+
* Which version of the API to use.
|
|
11686
|
+
*/
|
|
11687
|
+
api_version?: string | undefined;
|
|
11688
|
+
/**
|
|
11689
|
+
* Resource name of the trigger.
|
|
11690
|
+
*/
|
|
11691
|
+
trigger_id: string;
|
|
11692
|
+
};
|
|
11693
|
+
|
|
11331
11694
|
/** Safety attributes of a GeneratedImage or the user-provided prompt. */
|
|
11332
11695
|
export declare interface SafetyAttributes {
|
|
11333
11696
|
/** List of RAI categories. */
|
|
@@ -11838,6 +12201,28 @@ export declare class Session {
|
|
|
11838
12201
|
close(): void;
|
|
11839
12202
|
}
|
|
11840
12203
|
|
|
12204
|
+
declare type SessionConfig$ = SessionConfig;
|
|
12205
|
+
|
|
12206
|
+
/**
|
|
12207
|
+
* @license
|
|
12208
|
+
* Copyright 2026 Google LLC
|
|
12209
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12210
|
+
*
|
|
12211
|
+
* g3-prettier-ignore-file
|
|
12212
|
+
*/
|
|
12213
|
+
/**
|
|
12214
|
+
* The configuration of CodeMender sessions.
|
|
12215
|
+
*/
|
|
12216
|
+
declare type SessionConfig = {
|
|
12217
|
+
/**
|
|
12218
|
+
* The maximum number of interaction rounds the agent is allowed to perform
|
|
12219
|
+
*
|
|
12220
|
+
* @remarks
|
|
12221
|
+
* before reaching a timeout.
|
|
12222
|
+
*/
|
|
12223
|
+
max_rounds?: number | undefined;
|
|
12224
|
+
};
|
|
12225
|
+
|
|
11841
12226
|
/** Configuration of session resumption mechanism.
|
|
11842
12227
|
|
|
11843
12228
|
Included in `LiveConnectConfig.session_resumption`. If included server
|
|
@@ -11962,6 +12347,10 @@ declare type Source = {
|
|
|
11962
12347
|
type?: SourceType | undefined;
|
|
11963
12348
|
};
|
|
11964
12349
|
|
|
12350
|
+
declare type SourceFile$ = FileContent;
|
|
12351
|
+
|
|
12352
|
+
declare type SourceFile$2 = FileContent;
|
|
12353
|
+
|
|
11965
12354
|
/**
|
|
11966
12355
|
* @license
|
|
11967
12356
|
* Copyright 2026 Google LLC
|
|
@@ -12894,6 +13283,53 @@ export declare interface Transcription {
|
|
|
12894
13283
|
languageCode?: string;
|
|
12895
13284
|
}
|
|
12896
13285
|
|
|
13286
|
+
declare type TranscriptionConfig$ = TranscriptionConfig;
|
|
13287
|
+
|
|
13288
|
+
/**
|
|
13289
|
+
* @license
|
|
13290
|
+
* Copyright 2026 Google LLC
|
|
13291
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13292
|
+
*
|
|
13293
|
+
* g3-prettier-ignore-file
|
|
13294
|
+
*/
|
|
13295
|
+
/**
|
|
13296
|
+
* Configuration for speech recognition (transcription).
|
|
13297
|
+
*/
|
|
13298
|
+
declare type TranscriptionConfig = {
|
|
13299
|
+
/**
|
|
13300
|
+
* Optional. A list of phrases to bias the ASR model towards.
|
|
13301
|
+
*
|
|
13302
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
13303
|
+
*/
|
|
13304
|
+
adaptation_phrases?: Array<string> | undefined;
|
|
13305
|
+
/**
|
|
13306
|
+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model
|
|
13307
|
+
*
|
|
13308
|
+
* @remarks
|
|
13309
|
+
* toward recognizing specific terms.
|
|
13310
|
+
*/
|
|
13311
|
+
custom_vocabulary?: Array<string> | undefined;
|
|
13312
|
+
/**
|
|
13313
|
+
* Optional. Configures speaker diarization. Supported values: "speaker".
|
|
13314
|
+
*/
|
|
13315
|
+
diarization_mode?: string | undefined;
|
|
13316
|
+
/**
|
|
13317
|
+
* Required. BCP-47 language codes providing hints about the languages present in the
|
|
13318
|
+
*
|
|
13319
|
+
* @remarks
|
|
13320
|
+
* audio. At least one must be specified, or set to ["auto"] to enable
|
|
13321
|
+
* automatic language detection.
|
|
13322
|
+
*/
|
|
13323
|
+
language_hints: Array<string>;
|
|
13324
|
+
/**
|
|
13325
|
+
* Optional. The granularity of timestamps to include in the transcription output.
|
|
13326
|
+
*
|
|
13327
|
+
* @remarks
|
|
13328
|
+
* Supported values: "word". If empty, no timestamps are generated.
|
|
13329
|
+
*/
|
|
13330
|
+
timestamp_granularities?: Array<string> | undefined;
|
|
13331
|
+
};
|
|
13332
|
+
|
|
12897
13333
|
/**
|
|
12898
13334
|
* @license
|
|
12899
13335
|
* Copyright 2026 Google LLC
|
|
@@ -12918,6 +13354,267 @@ export declare interface TranslationConfig {
|
|
|
12918
13354
|
targetLanguageCode?: string;
|
|
12919
13355
|
}
|
|
12920
13356
|
|
|
13357
|
+
declare type Trigger$ = Trigger;
|
|
13358
|
+
|
|
13359
|
+
/**
|
|
13360
|
+
* A trigger configuration that is scheduled to run an agent.
|
|
13361
|
+
*/
|
|
13362
|
+
declare type Trigger = {
|
|
13363
|
+
/**
|
|
13364
|
+
* Output only. The number of consecutive failures that have occurred
|
|
13365
|
+
*
|
|
13366
|
+
* @remarks
|
|
13367
|
+
* since the last successful execution.
|
|
13368
|
+
*/
|
|
13369
|
+
consecutive_failure_count?: number | undefined;
|
|
13370
|
+
/**
|
|
13371
|
+
* Output only. The time when the trigger was created.
|
|
13372
|
+
*/
|
|
13373
|
+
create_time?: string | undefined;
|
|
13374
|
+
/**
|
|
13375
|
+
* Optional. The display name of the trigger.
|
|
13376
|
+
*/
|
|
13377
|
+
display_name?: string | undefined;
|
|
13378
|
+
/**
|
|
13379
|
+
* Optional. The environment ID for the trigger execution.
|
|
13380
|
+
*/
|
|
13381
|
+
environment_id?: string | undefined;
|
|
13382
|
+
/**
|
|
13383
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13384
|
+
*/
|
|
13385
|
+
execution_timeout_seconds?: number | undefined;
|
|
13386
|
+
/**
|
|
13387
|
+
* Required. Output only. Identifier. The ID of the trigger.
|
|
13388
|
+
*/
|
|
13389
|
+
id: string;
|
|
13390
|
+
/**
|
|
13391
|
+
* The Interaction resource.
|
|
13392
|
+
*/
|
|
13393
|
+
interaction: interactions.Interaction;
|
|
13394
|
+
/**
|
|
13395
|
+
* Output only. The time when the trigger was last paused.
|
|
13396
|
+
*/
|
|
13397
|
+
last_pause_time?: string | undefined;
|
|
13398
|
+
/**
|
|
13399
|
+
* Output only. The time when the trigger was last resumed.
|
|
13400
|
+
*/
|
|
13401
|
+
last_resume_time?: string | undefined;
|
|
13402
|
+
/**
|
|
13403
|
+
* Output only. The time when the trigger was last run.
|
|
13404
|
+
*/
|
|
13405
|
+
last_run_time?: string | undefined;
|
|
13406
|
+
/**
|
|
13407
|
+
* Optional. The maximum number of consecutive failures allowed before
|
|
13408
|
+
*
|
|
13409
|
+
* @remarks
|
|
13410
|
+
* the trigger is automatically paused (status becomes ERROR).
|
|
13411
|
+
*/
|
|
13412
|
+
max_consecutive_failures?: number | undefined;
|
|
13413
|
+
/**
|
|
13414
|
+
* Output only. The time when the trigger is scheduled to run next.
|
|
13415
|
+
*/
|
|
13416
|
+
next_run_time?: string | undefined;
|
|
13417
|
+
/**
|
|
13418
|
+
* Output only. The ID of the last interaction created by this trigger.
|
|
13419
|
+
*/
|
|
13420
|
+
previous_interaction_id?: string | undefined;
|
|
13421
|
+
/**
|
|
13422
|
+
* Required. The cron schedule on which the trigger should run.
|
|
13423
|
+
*
|
|
13424
|
+
* @remarks
|
|
13425
|
+
* Standard cron format.
|
|
13426
|
+
*/
|
|
13427
|
+
schedule: string;
|
|
13428
|
+
/**
|
|
13429
|
+
* Output only. The current status of the trigger.
|
|
13430
|
+
*/
|
|
13431
|
+
status?: TriggerStatus | undefined;
|
|
13432
|
+
/**
|
|
13433
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13434
|
+
*/
|
|
13435
|
+
time_zone: string;
|
|
13436
|
+
/**
|
|
13437
|
+
* Output only. The time when the trigger was last updated.
|
|
13438
|
+
*/
|
|
13439
|
+
update_time?: string | undefined;
|
|
13440
|
+
};
|
|
13441
|
+
|
|
13442
|
+
declare type TriggerCreateParams$ = TriggerCreateParams;
|
|
13443
|
+
|
|
13444
|
+
/**
|
|
13445
|
+
* Parameters for creating a trigger.
|
|
13446
|
+
*/
|
|
13447
|
+
declare type TriggerCreateParams = {
|
|
13448
|
+
/**
|
|
13449
|
+
* Required. The cron schedule on which the trigger should run. Standard cron format.
|
|
13450
|
+
*/
|
|
13451
|
+
schedule: string;
|
|
13452
|
+
/**
|
|
13453
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13454
|
+
*/
|
|
13455
|
+
time_zone: string;
|
|
13456
|
+
/**
|
|
13457
|
+
* Optional. The display name of the trigger.
|
|
13458
|
+
*/
|
|
13459
|
+
display_name?: string | undefined;
|
|
13460
|
+
/**
|
|
13461
|
+
* Optional. The environment ID for the trigger execution.
|
|
13462
|
+
*/
|
|
13463
|
+
environment_id?: string | undefined;
|
|
13464
|
+
/**
|
|
13465
|
+
* Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
|
|
13466
|
+
*/
|
|
13467
|
+
max_consecutive_failures?: number | undefined;
|
|
13468
|
+
/**
|
|
13469
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13470
|
+
*/
|
|
13471
|
+
execution_timeout_seconds?: number | undefined;
|
|
13472
|
+
/**
|
|
13473
|
+
* Required. The interaction request template to be executed.
|
|
13474
|
+
*/
|
|
13475
|
+
interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
13476
|
+
};
|
|
13477
|
+
|
|
13478
|
+
declare type TriggerDeleteParams$ = DeleteTriggerParams;
|
|
13479
|
+
|
|
13480
|
+
declare type TriggerDeleteResponse$ = Empty;
|
|
13481
|
+
|
|
13482
|
+
declare type TriggerExecution$ = TriggerExecution;
|
|
13483
|
+
|
|
13484
|
+
/**
|
|
13485
|
+
* An execution instance of a trigger.
|
|
13486
|
+
*/
|
|
13487
|
+
declare type TriggerExecution = {
|
|
13488
|
+
/**
|
|
13489
|
+
* Output only. The time when the execution finished.
|
|
13490
|
+
*/
|
|
13491
|
+
end_time?: string | undefined;
|
|
13492
|
+
/**
|
|
13493
|
+
* Output only. The environment ID used for the execution.
|
|
13494
|
+
*/
|
|
13495
|
+
environment_id?: string | undefined;
|
|
13496
|
+
/**
|
|
13497
|
+
* Output only. The error message if the execution failed.
|
|
13498
|
+
*/
|
|
13499
|
+
error?: string | undefined;
|
|
13500
|
+
/**
|
|
13501
|
+
* Required. Output only. Identifier. The ID of the trigger execution.
|
|
13502
|
+
*/
|
|
13503
|
+
id: string;
|
|
13504
|
+
/**
|
|
13505
|
+
* Output only. The ID of the interaction created by this execution, if any.
|
|
13506
|
+
*/
|
|
13507
|
+
interaction_id?: string | undefined;
|
|
13508
|
+
/**
|
|
13509
|
+
* Output only. The time when the execution was scheduled to run.
|
|
13510
|
+
*/
|
|
13511
|
+
scheduled_time?: string | undefined;
|
|
13512
|
+
/**
|
|
13513
|
+
* Output only. The time when the execution started.
|
|
13514
|
+
*/
|
|
13515
|
+
start_time?: string | undefined;
|
|
13516
|
+
/**
|
|
13517
|
+
* Output only. The status of the execution.
|
|
13518
|
+
*/
|
|
13519
|
+
status?: TriggerExecutionStatus | undefined;
|
|
13520
|
+
/**
|
|
13521
|
+
* Required. Output only. Identifier. The ID of the trigger that created this execution.
|
|
13522
|
+
*/
|
|
13523
|
+
trigger_id: string;
|
|
13524
|
+
};
|
|
13525
|
+
|
|
13526
|
+
/**
|
|
13527
|
+
* @license
|
|
13528
|
+
* Copyright 2026 Google LLC
|
|
13529
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13530
|
+
*
|
|
13531
|
+
* g3-prettier-ignore-file
|
|
13532
|
+
*/
|
|
13533
|
+
/**
|
|
13534
|
+
* Output only. The status of the execution.
|
|
13535
|
+
*/
|
|
13536
|
+
declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
|
|
13537
|
+
|
|
13538
|
+
declare type TriggerGetParams$ = GetTriggerParams;
|
|
13539
|
+
|
|
13540
|
+
declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams_2;
|
|
13541
|
+
|
|
13542
|
+
declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
13543
|
+
|
|
13544
|
+
declare type TriggerListParams$ = ListTriggersParams_2;
|
|
13545
|
+
|
|
13546
|
+
declare type TriggerListResponse$ = ListTriggersResponse;
|
|
13547
|
+
|
|
13548
|
+
declare type TriggerRunParams$ = RunTriggerParams;
|
|
13549
|
+
|
|
13550
|
+
export declare namespace Triggers {
|
|
13551
|
+
export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
|
|
13552
|
+
export type ListTriggersResponse = ListTriggersResponse$;
|
|
13553
|
+
export type Trigger = Trigger$;
|
|
13554
|
+
export type TriggerCreateParams = TriggerCreateParams$;
|
|
13555
|
+
export type TriggerDeleteParams = TriggerDeleteParams$;
|
|
13556
|
+
export type TriggerDeleteResponse = TriggerDeleteResponse$;
|
|
13557
|
+
export type TriggerExecution = TriggerExecution$;
|
|
13558
|
+
export type TriggerGetParams = TriggerGetParams$;
|
|
13559
|
+
export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
|
|
13560
|
+
export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
|
|
13561
|
+
export type TriggerListParams = TriggerListParams$;
|
|
13562
|
+
export type TriggerListResponse = TriggerListResponse$;
|
|
13563
|
+
export type TriggerRunParams = TriggerRunParams$;
|
|
13564
|
+
export type TriggerUpdate = TriggerUpdate$;
|
|
13565
|
+
export type TriggerUpdateParams = TriggerUpdateParams$;
|
|
13566
|
+
}
|
|
13567
|
+
|
|
13568
|
+
declare namespace triggers {
|
|
13569
|
+
export {
|
|
13570
|
+
ListTriggerExecutionsResponse,
|
|
13571
|
+
ListTriggersResponse,
|
|
13572
|
+
Interaction_2 as Interaction,
|
|
13573
|
+
TriggerCreateParams,
|
|
13574
|
+
TriggerExecutionStatus,
|
|
13575
|
+
TriggerExecution,
|
|
13576
|
+
TriggerUpdateStatus,
|
|
13577
|
+
TriggerUpdate,
|
|
13578
|
+
TriggerStatus,
|
|
13579
|
+
Trigger
|
|
13580
|
+
}
|
|
13581
|
+
}
|
|
13582
|
+
|
|
13583
|
+
/**
|
|
13584
|
+
* Output only. The current status of the trigger.
|
|
13585
|
+
*/
|
|
13586
|
+
declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
|
|
13587
|
+
|
|
13588
|
+
declare type TriggerUpdate$ = TriggerUpdate;
|
|
13589
|
+
|
|
13590
|
+
/**
|
|
13591
|
+
* Represents the fields of a Trigger that can be updated.
|
|
13592
|
+
*/
|
|
13593
|
+
declare type TriggerUpdate = {
|
|
13594
|
+
/**
|
|
13595
|
+
* Optional. The display name of the trigger.
|
|
13596
|
+
*/
|
|
13597
|
+
display_name?: string | undefined;
|
|
13598
|
+
/**
|
|
13599
|
+
* Optional. The status of the trigger.
|
|
13600
|
+
*/
|
|
13601
|
+
status?: TriggerUpdateStatus | undefined;
|
|
13602
|
+
};
|
|
13603
|
+
|
|
13604
|
+
declare type TriggerUpdateParams$ = UpdateTriggerParams;
|
|
13605
|
+
|
|
13606
|
+
/**
|
|
13607
|
+
* @license
|
|
13608
|
+
* Copyright 2026 Google LLC
|
|
13609
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13610
|
+
*
|
|
13611
|
+
* g3-prettier-ignore-file
|
|
13612
|
+
*/
|
|
13613
|
+
/**
|
|
13614
|
+
* Optional. The status of the trigger.
|
|
13615
|
+
*/
|
|
13616
|
+
declare type TriggerUpdateStatus = "active" | "paused" | "error";
|
|
13617
|
+
|
|
12921
13618
|
/** TunedModel for the Tuned Model of a Tuning Job. */
|
|
12922
13619
|
export declare interface TunedModel {
|
|
12923
13620
|
/** Output only. The resource name of the TunedModel.
|
|
@@ -13927,6 +14624,7 @@ declare namespace types {
|
|
|
13927
14624
|
LanguageHints,
|
|
13928
14625
|
AudioTranscriptionConfig,
|
|
13929
14626
|
ProactivityConfig,
|
|
14627
|
+
HistoryConfig,
|
|
13930
14628
|
CustomizedAvatar,
|
|
13931
14629
|
AvatarConfig,
|
|
13932
14630
|
LiveClientSetup,
|
|
@@ -14036,6 +14734,20 @@ export declare interface UpdateModelParameters {
|
|
|
14036
14734
|
config?: UpdateModelConfig;
|
|
14037
14735
|
}
|
|
14038
14736
|
|
|
14737
|
+
declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
|
|
14738
|
+
|
|
14739
|
+
declare type UpdateTriggerRequest = {
|
|
14740
|
+
/**
|
|
14741
|
+
* Which version of the API to use.
|
|
14742
|
+
*/
|
|
14743
|
+
api_version?: string | undefined;
|
|
14744
|
+
/**
|
|
14745
|
+
* Resource name of the trigger.
|
|
14746
|
+
*/
|
|
14747
|
+
id: string;
|
|
14748
|
+
body: triggers.TriggerUpdate;
|
|
14749
|
+
};
|
|
14750
|
+
|
|
14039
14751
|
declare interface Uploader {
|
|
14040
14752
|
/**
|
|
14041
14753
|
* Uploads a file to the given upload url.
|
|
@@ -15362,4 +16074,60 @@ export declare interface WhiteSpaceConfig {
|
|
|
15362
16074
|
maxOverlapTokens?: number;
|
|
15363
16075
|
}
|
|
15364
16076
|
|
|
16077
|
+
declare type WordInfo$ = WordInfo;
|
|
16078
|
+
|
|
16079
|
+
/**
|
|
16080
|
+
* @license
|
|
16081
|
+
* Copyright 2026 Google LLC
|
|
16082
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16083
|
+
*
|
|
16084
|
+
* g3-prettier-ignore-file
|
|
16085
|
+
*/
|
|
16086
|
+
/**
|
|
16087
|
+
* Word-level ASR annotation for transcription output.
|
|
16088
|
+
*
|
|
16089
|
+
* @remarks
|
|
16090
|
+
* Carries the word text, optional timing, and optional speaker attribution.
|
|
16091
|
+
*/
|
|
16092
|
+
declare type WordInfo = {
|
|
16093
|
+
/**
|
|
16094
|
+
* End of the attributed segment, exclusive.
|
|
16095
|
+
*/
|
|
16096
|
+
end_index?: number | undefined;
|
|
16097
|
+
/**
|
|
16098
|
+
* End offset in time of the word relative to the start of the audio.
|
|
16099
|
+
*
|
|
16100
|
+
* @remarks
|
|
16101
|
+
* Present when timestamp_granularities contains "word".
|
|
16102
|
+
*/
|
|
16103
|
+
end_offset?: string | undefined;
|
|
16104
|
+
/**
|
|
16105
|
+
* Optional. Speaker label for this word (e.g. "spk_1", "spk_2").
|
|
16106
|
+
*
|
|
16107
|
+
* @remarks
|
|
16108
|
+
* Present when diarization_mode is set in TranscriptionConfig.
|
|
16109
|
+
*/
|
|
16110
|
+
speaker?: string | undefined;
|
|
16111
|
+
/**
|
|
16112
|
+
* Start of segment of the response that is attributed to this source.
|
|
16113
|
+
*
|
|
16114
|
+
* @remarks
|
|
16115
|
+
*
|
|
16116
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
16117
|
+
*/
|
|
16118
|
+
start_index?: number | undefined;
|
|
16119
|
+
/**
|
|
16120
|
+
* Start offset in time of the word relative to the start of the audio.
|
|
16121
|
+
*
|
|
16122
|
+
* @remarks
|
|
16123
|
+
* Present when timestamp_granularities contains "word".
|
|
16124
|
+
*/
|
|
16125
|
+
start_offset?: string | undefined;
|
|
16126
|
+
/**
|
|
16127
|
+
* The transcribed word.
|
|
16128
|
+
*/
|
|
16129
|
+
text?: string | undefined;
|
|
16130
|
+
type: "word_info";
|
|
16131
|
+
};
|
|
16132
|
+
|
|
15365
16133
|
export { }
|