@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/web/web.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_2 | 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_2 | 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. */
|
|
@@ -5780,10 +5995,12 @@ export declare class GoogleGenAI {
|
|
|
5780
5995
|
private _webhooks;
|
|
5781
5996
|
private _agents;
|
|
5782
5997
|
private _nextGenClient;
|
|
5998
|
+
private _triggers;
|
|
5783
5999
|
private getNextGenClient;
|
|
5784
6000
|
get interactions(): GeminiNextGenInteractions;
|
|
5785
6001
|
get webhooks(): GeminiNextGenWebhooks;
|
|
5786
6002
|
get agents(): GeminiNextGenAgents;
|
|
6003
|
+
get triggers(): GeminiNextGenTriggers;
|
|
5787
6004
|
constructor(options: GoogleGenAIOptions);
|
|
5788
6005
|
}
|
|
5789
6006
|
|
|
@@ -5878,6 +6095,7 @@ declare interface GoogleGenAIParentClient {
|
|
|
5878
6095
|
getBaseUrl(): string;
|
|
5879
6096
|
getApiVersion(): string;
|
|
5880
6097
|
getDefaultHeaders?(): Record<string, string>;
|
|
6098
|
+
getHeaders?(): Record<string, string> | undefined;
|
|
5881
6099
|
getAuthHeaders(url?: string): Headers | Promise<Headers>;
|
|
5882
6100
|
}
|
|
5883
6101
|
|
|
@@ -6609,6 +6827,16 @@ export declare enum HarmSeverity {
|
|
|
6609
6827
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
6610
6828
|
}
|
|
6611
6829
|
|
|
6830
|
+
/** Configuration for history exchange between client and server. */
|
|
6831
|
+
export declare interface HistoryConfig {
|
|
6832
|
+
/** If true, after sending `setup_complete`, the server will wait
|
|
6833
|
+
and at first process `client_content` messages until `turn_complete` is
|
|
6834
|
+
`true`. This initial history will not trigger a model call and
|
|
6835
|
+
may end with model content. After `turn_complete` is `true`, the client
|
|
6836
|
+
can start the realtime conversation via `realtime_input`. */
|
|
6837
|
+
initialHistoryInClientContent?: boolean;
|
|
6838
|
+
}
|
|
6839
|
+
|
|
6612
6840
|
/** The location of the API key. This enum is not supported in Gemini API. */
|
|
6613
6841
|
export declare enum HttpElementLocation {
|
|
6614
6842
|
HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
|
|
@@ -7179,20 +7407,10 @@ declare type Interaction = {
|
|
|
7179
7407
|
* Configuration parameters for model interactions.
|
|
7180
7408
|
*/
|
|
7181
7409
|
generation_config?: GenerationConfig_2 | undefined;
|
|
7182
|
-
/**
|
|
7183
|
-
* The name of the cached content used as context to serve the prediction.
|
|
7184
|
-
*
|
|
7185
|
-
* @remarks
|
|
7186
|
-
* Note: only used in explicit caching, where users can have control over
|
|
7187
|
-
* caching (e.g. what content to cache) and enjoy guaranteed cost savings.
|
|
7188
|
-
* Format:
|
|
7189
|
-
* `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
|
|
7190
|
-
*/
|
|
7191
|
-
cached_content?: string | undefined;
|
|
7192
7410
|
/**
|
|
7193
7411
|
* Configuration parameters for the agent interaction.
|
|
7194
7412
|
*/
|
|
7195
|
-
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
|
|
7413
|
+
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
|
|
7196
7414
|
/**
|
|
7197
7415
|
* Safety settings for the interaction.
|
|
7198
7416
|
*/
|
|
@@ -7229,10 +7447,15 @@ declare type Interaction = {
|
|
|
7229
7447
|
output_video?: VideoContent | undefined;
|
|
7230
7448
|
};
|
|
7231
7449
|
|
|
7450
|
+
/**
|
|
7451
|
+
* Required. The interaction request template to be executed.
|
|
7452
|
+
*/
|
|
7453
|
+
declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
7454
|
+
|
|
7232
7455
|
/**
|
|
7233
7456
|
* Configuration parameters for the agent interaction.
|
|
7234
7457
|
*/
|
|
7235
|
-
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
|
|
7458
|
+
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
|
|
7236
7459
|
|
|
7237
7460
|
declare type InteractionCancelParams$ = CancelInteractionByIdParams;
|
|
7238
7461
|
|
|
@@ -7321,12 +7544,15 @@ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseForma
|
|
|
7321
7544
|
export declare namespace Interactions {
|
|
7322
7545
|
export type AllowedTools = AllowedTools$;
|
|
7323
7546
|
export type Annotation = Annotation$;
|
|
7547
|
+
export type AntigravityAgentConfig = AntigravityAgentConfig$;
|
|
7324
7548
|
export type AudioContent = AudioContent$;
|
|
7325
7549
|
export type AudioResponseFormat = AudioResponseFormat$;
|
|
7326
7550
|
export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
|
|
7327
7551
|
export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
|
|
7328
7552
|
}
|
|
7329
7553
|
export type CodeExecutionResultStep = CodeExecutionResultStep$;
|
|
7554
|
+
export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
|
|
7555
|
+
}
|
|
7330
7556
|
export type Content = Content$;
|
|
7331
7557
|
export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
|
|
7332
7558
|
export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
|
|
@@ -7405,6 +7631,7 @@ export declare namespace Interactions {
|
|
|
7405
7631
|
export type Tool = Tool$;
|
|
7406
7632
|
export type ToolChoiceConfig = ToolChoiceConfig$;
|
|
7407
7633
|
export type ToolChoiceType = ToolChoiceType$;
|
|
7634
|
+
export type TranscriptionConfig = TranscriptionConfig$;
|
|
7408
7635
|
export type URLCitation = URLCitation$;
|
|
7409
7636
|
export type URLContextCallArguments = URLContextCallArguments$;
|
|
7410
7637
|
export interface URLContextCallStep extends URLContextCallStep$ {
|
|
@@ -7419,9 +7646,23 @@ export declare namespace Interactions {
|
|
|
7419
7646
|
export type VideoContent = VideoContent$;
|
|
7420
7647
|
export type VideoResponseFormat = VideoResponseFormat$;
|
|
7421
7648
|
export type WebhookConfig = WebhookConfig$;
|
|
7649
|
+
export type WordInfo = WordInfo$;
|
|
7422
7650
|
export namespace CodeExecutionCallStep {
|
|
7423
7651
|
export type Arguments = Arguments$;
|
|
7424
7652
|
}
|
|
7653
|
+
export namespace CodeMenderAgentConfig {
|
|
7654
|
+
export interface FindRequest extends FindRequest$ {
|
|
7655
|
+
}
|
|
7656
|
+
export interface FixRequest extends FixRequest$ {
|
|
7657
|
+
}
|
|
7658
|
+
export type SessionConfig = SessionConfig$;
|
|
7659
|
+
export namespace FindRequest {
|
|
7660
|
+
export type SourceFile = SourceFile$;
|
|
7661
|
+
}
|
|
7662
|
+
export namespace FixRequest {
|
|
7663
|
+
export type SourceFile = SourceFile$2;
|
|
7664
|
+
}
|
|
7665
|
+
}
|
|
7425
7666
|
export namespace Environment {
|
|
7426
7667
|
export type Allowlist = Allowlist$;
|
|
7427
7668
|
export type Source = Source$;
|
|
@@ -7546,6 +7787,7 @@ declare namespace interactions {
|
|
|
7546
7787
|
Transform,
|
|
7547
7788
|
AllowlistEntry,
|
|
7548
7789
|
Annotation,
|
|
7790
|
+
AntigravityAgentConfig,
|
|
7549
7791
|
ArgumentsDelta,
|
|
7550
7792
|
AudioContentMimeType,
|
|
7551
7793
|
AudioContent,
|
|
@@ -7561,6 +7803,7 @@ declare namespace interactions {
|
|
|
7561
7803
|
CodeExecutionResultDelta,
|
|
7562
7804
|
CodeExecutionResultStep,
|
|
7563
7805
|
CodeExecution,
|
|
7806
|
+
CodeMenderAgentConfig,
|
|
7564
7807
|
DisabledSafetyPolicy,
|
|
7565
7808
|
EnvironmentEnum,
|
|
7566
7809
|
ComputerUse_2 as ComputerUse,
|
|
@@ -7590,6 +7833,7 @@ declare namespace interactions {
|
|
|
7590
7833
|
ErrorT,
|
|
7591
7834
|
ExaAISearchConfig,
|
|
7592
7835
|
FileCitation,
|
|
7836
|
+
FileContent,
|
|
7593
7837
|
FileSearchCallDelta,
|
|
7594
7838
|
FileSearchCallStep,
|
|
7595
7839
|
FileSearchResultDelta,
|
|
@@ -7597,6 +7841,9 @@ declare namespace interactions {
|
|
|
7597
7841
|
FileSearchResult,
|
|
7598
7842
|
FileSearch_2 as FileSearch,
|
|
7599
7843
|
Filter,
|
|
7844
|
+
Mode,
|
|
7845
|
+
FindRequest,
|
|
7846
|
+
FixRequest,
|
|
7600
7847
|
FunctionCallStep,
|
|
7601
7848
|
FunctionResultDeltaResult,
|
|
7602
7849
|
FunctionResultDeltaResultUnion,
|
|
@@ -7687,6 +7934,7 @@ declare namespace interactions {
|
|
|
7687
7934
|
Threshold,
|
|
7688
7935
|
SafetySetting_2 as SafetySetting,
|
|
7689
7936
|
ServiceTier_2 as ServiceTier,
|
|
7937
|
+
SessionConfig,
|
|
7690
7938
|
SourceType,
|
|
7691
7939
|
Source,
|
|
7692
7940
|
SpeechConfig_2 as SpeechConfig,
|
|
@@ -7712,6 +7960,7 @@ declare namespace interactions {
|
|
|
7712
7960
|
ToolChoiceConfig,
|
|
7713
7961
|
ToolChoiceType,
|
|
7714
7962
|
Tool_2 as Tool,
|
|
7963
|
+
TranscriptionConfig,
|
|
7715
7964
|
TurnContent,
|
|
7716
7965
|
Turn,
|
|
7717
7966
|
URLCitation,
|
|
@@ -7735,7 +7984,8 @@ declare namespace interactions {
|
|
|
7735
7984
|
VideoResponseFormatAspectRatio,
|
|
7736
7985
|
VideoResponseFormatDelivery,
|
|
7737
7986
|
VideoResponseFormat_2 as VideoResponseFormat,
|
|
7738
|
-
WebhookConfig_2 as WebhookConfig
|
|
7987
|
+
WebhookConfig_2 as WebhookConfig,
|
|
7988
|
+
WordInfo
|
|
7739
7989
|
}
|
|
7740
7990
|
}
|
|
7741
7991
|
|
|
@@ -7807,7 +8057,7 @@ declare type InteractionSSEStreamEvent = {
|
|
|
7807
8057
|
/**
|
|
7808
8058
|
* Required. Output only. The status of the interaction.
|
|
7809
8059
|
*/
|
|
7810
|
-
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8060
|
+
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
7811
8061
|
|
|
7812
8062
|
declare type InteractionStatusUpdate$ = InteractionStatusUpdate;
|
|
7813
8063
|
|
|
@@ -7825,7 +8075,7 @@ declare type InteractionStatusUpdate = {
|
|
|
7825
8075
|
status: InteractionStatusUpdateStatus;
|
|
7826
8076
|
};
|
|
7827
8077
|
|
|
7828
|
-
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8078
|
+
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
7829
8079
|
|
|
7830
8080
|
/** Parameters for the private _Register method. */
|
|
7831
8081
|
export declare interface InternalRegisterFilesParameters {
|
|
@@ -8147,6 +8397,99 @@ export declare class ListModelsResponse {
|
|
|
8147
8397
|
models?: Model[];
|
|
8148
8398
|
}
|
|
8149
8399
|
|
|
8400
|
+
declare type ListTriggerExecutionsParams = Omit<ListTriggerExecutionsRequest, "trigger_id">;
|
|
8401
|
+
|
|
8402
|
+
declare type ListTriggerExecutionsParams_2 = {
|
|
8403
|
+
api_version?: string;
|
|
8404
|
+
pageSize?: number;
|
|
8405
|
+
pageToken?: string;
|
|
8406
|
+
};
|
|
8407
|
+
|
|
8408
|
+
declare type ListTriggerExecutionsRequest = {
|
|
8409
|
+
/**
|
|
8410
|
+
* Which version of the API to use.
|
|
8411
|
+
*/
|
|
8412
|
+
api_version?: string | undefined;
|
|
8413
|
+
/**
|
|
8414
|
+
* Resource name of the trigger.
|
|
8415
|
+
*/
|
|
8416
|
+
trigger_id: string;
|
|
8417
|
+
/**
|
|
8418
|
+
* Optional. The maximum number of executions to return per page.
|
|
8419
|
+
*/
|
|
8420
|
+
page_size?: number | undefined;
|
|
8421
|
+
/**
|
|
8422
|
+
* Optional. A page token from a previous ListTriggerExecutions call.
|
|
8423
|
+
*/
|
|
8424
|
+
page_token?: string | undefined;
|
|
8425
|
+
};
|
|
8426
|
+
|
|
8427
|
+
declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
8428
|
+
|
|
8429
|
+
/**
|
|
8430
|
+
* Response message for TriggerService.ListTriggerExecutions.
|
|
8431
|
+
*/
|
|
8432
|
+
declare type ListTriggerExecutionsResponse = {
|
|
8433
|
+
/**
|
|
8434
|
+
* A page token, received from a previous `ListTriggerExecutions` call.
|
|
8435
|
+
*
|
|
8436
|
+
* @remarks
|
|
8437
|
+
* Provide this to retrieve the subsequent page.
|
|
8438
|
+
*/
|
|
8439
|
+
next_page_token?: string | undefined;
|
|
8440
|
+
/**
|
|
8441
|
+
* The list of trigger executions.
|
|
8442
|
+
*/
|
|
8443
|
+
trigger_executions?: Array<TriggerExecution> | undefined;
|
|
8444
|
+
};
|
|
8445
|
+
|
|
8446
|
+
declare type ListTriggersParams = ListTriggersRequest;
|
|
8447
|
+
|
|
8448
|
+
declare type ListTriggersParams_2 = {
|
|
8449
|
+
api_version?: string;
|
|
8450
|
+
filter?: string;
|
|
8451
|
+
pageSize?: number;
|
|
8452
|
+
pageToken?: string;
|
|
8453
|
+
};
|
|
8454
|
+
|
|
8455
|
+
declare type ListTriggersRequest = {
|
|
8456
|
+
/**
|
|
8457
|
+
* Which version of the API to use.
|
|
8458
|
+
*/
|
|
8459
|
+
api_version?: string | undefined;
|
|
8460
|
+
/**
|
|
8461
|
+
* Optional. Filter expression (e.g., by state).
|
|
8462
|
+
*/
|
|
8463
|
+
filter?: string | undefined;
|
|
8464
|
+
/**
|
|
8465
|
+
* Optional. The maximum number of triggers to return per page.
|
|
8466
|
+
*/
|
|
8467
|
+
page_size?: number | undefined;
|
|
8468
|
+
/**
|
|
8469
|
+
* Optional. A page token from a previous ListTriggers call.
|
|
8470
|
+
*/
|
|
8471
|
+
page_token?: string | undefined;
|
|
8472
|
+
};
|
|
8473
|
+
|
|
8474
|
+
declare type ListTriggersResponse$ = ListTriggersResponse;
|
|
8475
|
+
|
|
8476
|
+
/**
|
|
8477
|
+
* Response message for TriggerService.ListTriggers.
|
|
8478
|
+
*/
|
|
8479
|
+
declare type ListTriggersResponse = {
|
|
8480
|
+
/**
|
|
8481
|
+
* A page token, received from a previous `ListTriggers` call.
|
|
8482
|
+
*
|
|
8483
|
+
* @remarks
|
|
8484
|
+
* Provide this to retrieve the subsequent page.
|
|
8485
|
+
*/
|
|
8486
|
+
next_page_token?: string | undefined;
|
|
8487
|
+
/**
|
|
8488
|
+
* The list of triggers.
|
|
8489
|
+
*/
|
|
8490
|
+
triggers?: Array<Trigger> | undefined;
|
|
8491
|
+
};
|
|
8492
|
+
|
|
8150
8493
|
/** Configuration for the list tuning jobs method. */
|
|
8151
8494
|
export declare interface ListTuningJobsConfig {
|
|
8152
8495
|
/** Used to override HTTP request options. */
|
|
@@ -8402,6 +8745,8 @@ export declare interface LiveClientSetup {
|
|
|
8402
8745
|
response.
|
|
8403
8746
|
*/
|
|
8404
8747
|
safetySettings?: SafetySetting[];
|
|
8748
|
+
/** Configures the exchange of history between the client and the server. */
|
|
8749
|
+
historyConfig?: HistoryConfig;
|
|
8405
8750
|
}
|
|
8406
8751
|
|
|
8407
8752
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -9202,7 +9547,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9202
9547
|
*/
|
|
9203
9548
|
name?: string | undefined;
|
|
9204
9549
|
/**
|
|
9205
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9550
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9206
9551
|
*/
|
|
9207
9552
|
result: MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9208
9553
|
/**
|
|
@@ -9215,7 +9560,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9215
9560
|
declare type MCPServerToolResultStepResult = {};
|
|
9216
9561
|
|
|
9217
9562
|
/**
|
|
9218
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9563
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9219
9564
|
*/
|
|
9220
9565
|
declare type MCPServerToolResultStepResultUnion = MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9221
9566
|
|
|
@@ -9353,6 +9698,11 @@ declare type ModalityTokens = {
|
|
|
9353
9698
|
tokens?: number | undefined;
|
|
9354
9699
|
};
|
|
9355
9700
|
|
|
9701
|
+
/**
|
|
9702
|
+
* The mode of the find session.
|
|
9703
|
+
*/
|
|
9704
|
+
declare type Mode = "scan" | "verify" | (string & {});
|
|
9705
|
+
|
|
9356
9706
|
declare type Model$ = Model_2;
|
|
9357
9707
|
|
|
9358
9708
|
/** A trained machine learning model. */
|
|
@@ -9420,7 +9770,7 @@ export declare interface Model {
|
|
|
9420
9770
|
/**
|
|
9421
9771
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
9422
9772
|
*/
|
|
9423
|
-
declare type Model_2 = "gemini-2.5-
|
|
9773
|
+
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 & {});
|
|
9424
9774
|
|
|
9425
9775
|
/** 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. */
|
|
9426
9776
|
export declare interface ModelArmorConfig {
|
|
@@ -11333,6 +11683,19 @@ export declare interface RougeMetricValue {
|
|
|
11333
11683
|
score?: number;
|
|
11334
11684
|
}
|
|
11335
11685
|
|
|
11686
|
+
declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
|
|
11687
|
+
|
|
11688
|
+
declare type RunTriggerRequest = {
|
|
11689
|
+
/**
|
|
11690
|
+
* Which version of the API to use.
|
|
11691
|
+
*/
|
|
11692
|
+
api_version?: string | undefined;
|
|
11693
|
+
/**
|
|
11694
|
+
* Resource name of the trigger.
|
|
11695
|
+
*/
|
|
11696
|
+
trigger_id: string;
|
|
11697
|
+
};
|
|
11698
|
+
|
|
11336
11699
|
/** Safety attributes of a GeneratedImage or the user-provided prompt. */
|
|
11337
11700
|
export declare interface SafetyAttributes {
|
|
11338
11701
|
/** List of RAI categories. */
|
|
@@ -11843,6 +12206,28 @@ export declare class Session {
|
|
|
11843
12206
|
close(): void;
|
|
11844
12207
|
}
|
|
11845
12208
|
|
|
12209
|
+
declare type SessionConfig$ = SessionConfig;
|
|
12210
|
+
|
|
12211
|
+
/**
|
|
12212
|
+
* @license
|
|
12213
|
+
* Copyright 2026 Google LLC
|
|
12214
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12215
|
+
*
|
|
12216
|
+
* g3-prettier-ignore-file
|
|
12217
|
+
*/
|
|
12218
|
+
/**
|
|
12219
|
+
* The configuration of CodeMender sessions.
|
|
12220
|
+
*/
|
|
12221
|
+
declare type SessionConfig = {
|
|
12222
|
+
/**
|
|
12223
|
+
* The maximum number of interaction rounds the agent is allowed to perform
|
|
12224
|
+
*
|
|
12225
|
+
* @remarks
|
|
12226
|
+
* before reaching a timeout.
|
|
12227
|
+
*/
|
|
12228
|
+
max_rounds?: number | undefined;
|
|
12229
|
+
};
|
|
12230
|
+
|
|
11846
12231
|
/** Configuration of session resumption mechanism.
|
|
11847
12232
|
|
|
11848
12233
|
Included in `LiveConnectConfig.session_resumption`. If included server
|
|
@@ -11967,6 +12352,10 @@ declare type Source = {
|
|
|
11967
12352
|
type?: SourceType | undefined;
|
|
11968
12353
|
};
|
|
11969
12354
|
|
|
12355
|
+
declare type SourceFile$ = FileContent;
|
|
12356
|
+
|
|
12357
|
+
declare type SourceFile$2 = FileContent;
|
|
12358
|
+
|
|
11970
12359
|
/**
|
|
11971
12360
|
* @license
|
|
11972
12361
|
* Copyright 2026 Google LLC
|
|
@@ -12899,6 +13288,53 @@ export declare interface Transcription {
|
|
|
12899
13288
|
languageCode?: string;
|
|
12900
13289
|
}
|
|
12901
13290
|
|
|
13291
|
+
declare type TranscriptionConfig$ = TranscriptionConfig;
|
|
13292
|
+
|
|
13293
|
+
/**
|
|
13294
|
+
* @license
|
|
13295
|
+
* Copyright 2026 Google LLC
|
|
13296
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13297
|
+
*
|
|
13298
|
+
* g3-prettier-ignore-file
|
|
13299
|
+
*/
|
|
13300
|
+
/**
|
|
13301
|
+
* Configuration for speech recognition (transcription).
|
|
13302
|
+
*/
|
|
13303
|
+
declare type TranscriptionConfig = {
|
|
13304
|
+
/**
|
|
13305
|
+
* Optional. A list of phrases to bias the ASR model towards.
|
|
13306
|
+
*
|
|
13307
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
13308
|
+
*/
|
|
13309
|
+
adaptation_phrases?: Array<string> | undefined;
|
|
13310
|
+
/**
|
|
13311
|
+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model
|
|
13312
|
+
*
|
|
13313
|
+
* @remarks
|
|
13314
|
+
* toward recognizing specific terms.
|
|
13315
|
+
*/
|
|
13316
|
+
custom_vocabulary?: Array<string> | undefined;
|
|
13317
|
+
/**
|
|
13318
|
+
* Optional. Configures speaker diarization. Supported values: "speaker".
|
|
13319
|
+
*/
|
|
13320
|
+
diarization_mode?: string | undefined;
|
|
13321
|
+
/**
|
|
13322
|
+
* Required. BCP-47 language codes providing hints about the languages present in the
|
|
13323
|
+
*
|
|
13324
|
+
* @remarks
|
|
13325
|
+
* audio. At least one must be specified, or set to ["auto"] to enable
|
|
13326
|
+
* automatic language detection.
|
|
13327
|
+
*/
|
|
13328
|
+
language_hints: Array<string>;
|
|
13329
|
+
/**
|
|
13330
|
+
* Optional. The granularity of timestamps to include in the transcription output.
|
|
13331
|
+
*
|
|
13332
|
+
* @remarks
|
|
13333
|
+
* Supported values: "word". If empty, no timestamps are generated.
|
|
13334
|
+
*/
|
|
13335
|
+
timestamp_granularities?: Array<string> | undefined;
|
|
13336
|
+
};
|
|
13337
|
+
|
|
12902
13338
|
/**
|
|
12903
13339
|
* @license
|
|
12904
13340
|
* Copyright 2026 Google LLC
|
|
@@ -12923,6 +13359,267 @@ export declare interface TranslationConfig {
|
|
|
12923
13359
|
targetLanguageCode?: string;
|
|
12924
13360
|
}
|
|
12925
13361
|
|
|
13362
|
+
declare type Trigger$ = Trigger;
|
|
13363
|
+
|
|
13364
|
+
/**
|
|
13365
|
+
* A trigger configuration that is scheduled to run an agent.
|
|
13366
|
+
*/
|
|
13367
|
+
declare type Trigger = {
|
|
13368
|
+
/**
|
|
13369
|
+
* Output only. The number of consecutive failures that have occurred
|
|
13370
|
+
*
|
|
13371
|
+
* @remarks
|
|
13372
|
+
* since the last successful execution.
|
|
13373
|
+
*/
|
|
13374
|
+
consecutive_failure_count?: number | undefined;
|
|
13375
|
+
/**
|
|
13376
|
+
* Output only. The time when the trigger was created.
|
|
13377
|
+
*/
|
|
13378
|
+
create_time?: string | undefined;
|
|
13379
|
+
/**
|
|
13380
|
+
* Optional. The display name of the trigger.
|
|
13381
|
+
*/
|
|
13382
|
+
display_name?: string | undefined;
|
|
13383
|
+
/**
|
|
13384
|
+
* Optional. The environment ID for the trigger execution.
|
|
13385
|
+
*/
|
|
13386
|
+
environment_id?: string | undefined;
|
|
13387
|
+
/**
|
|
13388
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13389
|
+
*/
|
|
13390
|
+
execution_timeout_seconds?: number | undefined;
|
|
13391
|
+
/**
|
|
13392
|
+
* Required. Output only. Identifier. The ID of the trigger.
|
|
13393
|
+
*/
|
|
13394
|
+
id: string;
|
|
13395
|
+
/**
|
|
13396
|
+
* The Interaction resource.
|
|
13397
|
+
*/
|
|
13398
|
+
interaction: interactions.Interaction;
|
|
13399
|
+
/**
|
|
13400
|
+
* Output only. The time when the trigger was last paused.
|
|
13401
|
+
*/
|
|
13402
|
+
last_pause_time?: string | undefined;
|
|
13403
|
+
/**
|
|
13404
|
+
* Output only. The time when the trigger was last resumed.
|
|
13405
|
+
*/
|
|
13406
|
+
last_resume_time?: string | undefined;
|
|
13407
|
+
/**
|
|
13408
|
+
* Output only. The time when the trigger was last run.
|
|
13409
|
+
*/
|
|
13410
|
+
last_run_time?: string | undefined;
|
|
13411
|
+
/**
|
|
13412
|
+
* Optional. The maximum number of consecutive failures allowed before
|
|
13413
|
+
*
|
|
13414
|
+
* @remarks
|
|
13415
|
+
* the trigger is automatically paused (status becomes ERROR).
|
|
13416
|
+
*/
|
|
13417
|
+
max_consecutive_failures?: number | undefined;
|
|
13418
|
+
/**
|
|
13419
|
+
* Output only. The time when the trigger is scheduled to run next.
|
|
13420
|
+
*/
|
|
13421
|
+
next_run_time?: string | undefined;
|
|
13422
|
+
/**
|
|
13423
|
+
* Output only. The ID of the last interaction created by this trigger.
|
|
13424
|
+
*/
|
|
13425
|
+
previous_interaction_id?: string | undefined;
|
|
13426
|
+
/**
|
|
13427
|
+
* Required. The cron schedule on which the trigger should run.
|
|
13428
|
+
*
|
|
13429
|
+
* @remarks
|
|
13430
|
+
* Standard cron format.
|
|
13431
|
+
*/
|
|
13432
|
+
schedule: string;
|
|
13433
|
+
/**
|
|
13434
|
+
* Output only. The current status of the trigger.
|
|
13435
|
+
*/
|
|
13436
|
+
status?: TriggerStatus | undefined;
|
|
13437
|
+
/**
|
|
13438
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13439
|
+
*/
|
|
13440
|
+
time_zone: string;
|
|
13441
|
+
/**
|
|
13442
|
+
* Output only. The time when the trigger was last updated.
|
|
13443
|
+
*/
|
|
13444
|
+
update_time?: string | undefined;
|
|
13445
|
+
};
|
|
13446
|
+
|
|
13447
|
+
declare type TriggerCreateParams$ = TriggerCreateParams;
|
|
13448
|
+
|
|
13449
|
+
/**
|
|
13450
|
+
* Parameters for creating a trigger.
|
|
13451
|
+
*/
|
|
13452
|
+
declare type TriggerCreateParams = {
|
|
13453
|
+
/**
|
|
13454
|
+
* Required. The cron schedule on which the trigger should run. Standard cron format.
|
|
13455
|
+
*/
|
|
13456
|
+
schedule: string;
|
|
13457
|
+
/**
|
|
13458
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13459
|
+
*/
|
|
13460
|
+
time_zone: string;
|
|
13461
|
+
/**
|
|
13462
|
+
* Optional. The display name of the trigger.
|
|
13463
|
+
*/
|
|
13464
|
+
display_name?: string | undefined;
|
|
13465
|
+
/**
|
|
13466
|
+
* Optional. The environment ID for the trigger execution.
|
|
13467
|
+
*/
|
|
13468
|
+
environment_id?: string | undefined;
|
|
13469
|
+
/**
|
|
13470
|
+
* Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
|
|
13471
|
+
*/
|
|
13472
|
+
max_consecutive_failures?: number | undefined;
|
|
13473
|
+
/**
|
|
13474
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13475
|
+
*/
|
|
13476
|
+
execution_timeout_seconds?: number | undefined;
|
|
13477
|
+
/**
|
|
13478
|
+
* Required. The interaction request template to be executed.
|
|
13479
|
+
*/
|
|
13480
|
+
interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
13481
|
+
};
|
|
13482
|
+
|
|
13483
|
+
declare type TriggerDeleteParams$ = DeleteTriggerParams;
|
|
13484
|
+
|
|
13485
|
+
declare type TriggerDeleteResponse$ = Empty;
|
|
13486
|
+
|
|
13487
|
+
declare type TriggerExecution$ = TriggerExecution;
|
|
13488
|
+
|
|
13489
|
+
/**
|
|
13490
|
+
* An execution instance of a trigger.
|
|
13491
|
+
*/
|
|
13492
|
+
declare type TriggerExecution = {
|
|
13493
|
+
/**
|
|
13494
|
+
* Output only. The time when the execution finished.
|
|
13495
|
+
*/
|
|
13496
|
+
end_time?: string | undefined;
|
|
13497
|
+
/**
|
|
13498
|
+
* Output only. The environment ID used for the execution.
|
|
13499
|
+
*/
|
|
13500
|
+
environment_id?: string | undefined;
|
|
13501
|
+
/**
|
|
13502
|
+
* Output only. The error message if the execution failed.
|
|
13503
|
+
*/
|
|
13504
|
+
error?: string | undefined;
|
|
13505
|
+
/**
|
|
13506
|
+
* Required. Output only. Identifier. The ID of the trigger execution.
|
|
13507
|
+
*/
|
|
13508
|
+
id: string;
|
|
13509
|
+
/**
|
|
13510
|
+
* Output only. The ID of the interaction created by this execution, if any.
|
|
13511
|
+
*/
|
|
13512
|
+
interaction_id?: string | undefined;
|
|
13513
|
+
/**
|
|
13514
|
+
* Output only. The time when the execution was scheduled to run.
|
|
13515
|
+
*/
|
|
13516
|
+
scheduled_time?: string | undefined;
|
|
13517
|
+
/**
|
|
13518
|
+
* Output only. The time when the execution started.
|
|
13519
|
+
*/
|
|
13520
|
+
start_time?: string | undefined;
|
|
13521
|
+
/**
|
|
13522
|
+
* Output only. The status of the execution.
|
|
13523
|
+
*/
|
|
13524
|
+
status?: TriggerExecutionStatus | undefined;
|
|
13525
|
+
/**
|
|
13526
|
+
* Required. Output only. Identifier. The ID of the trigger that created this execution.
|
|
13527
|
+
*/
|
|
13528
|
+
trigger_id: string;
|
|
13529
|
+
};
|
|
13530
|
+
|
|
13531
|
+
/**
|
|
13532
|
+
* @license
|
|
13533
|
+
* Copyright 2026 Google LLC
|
|
13534
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13535
|
+
*
|
|
13536
|
+
* g3-prettier-ignore-file
|
|
13537
|
+
*/
|
|
13538
|
+
/**
|
|
13539
|
+
* Output only. The status of the execution.
|
|
13540
|
+
*/
|
|
13541
|
+
declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
|
|
13542
|
+
|
|
13543
|
+
declare type TriggerGetParams$ = GetTriggerParams;
|
|
13544
|
+
|
|
13545
|
+
declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams;
|
|
13546
|
+
|
|
13547
|
+
declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
13548
|
+
|
|
13549
|
+
declare type TriggerListParams$ = ListTriggersParams;
|
|
13550
|
+
|
|
13551
|
+
declare type TriggerListResponse$ = ListTriggersResponse;
|
|
13552
|
+
|
|
13553
|
+
declare type TriggerRunParams$ = RunTriggerParams;
|
|
13554
|
+
|
|
13555
|
+
export declare namespace Triggers {
|
|
13556
|
+
export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
|
|
13557
|
+
export type ListTriggersResponse = ListTriggersResponse$;
|
|
13558
|
+
export type Trigger = Trigger$;
|
|
13559
|
+
export type TriggerCreateParams = TriggerCreateParams$;
|
|
13560
|
+
export type TriggerDeleteParams = TriggerDeleteParams$;
|
|
13561
|
+
export type TriggerDeleteResponse = TriggerDeleteResponse$;
|
|
13562
|
+
export type TriggerExecution = TriggerExecution$;
|
|
13563
|
+
export type TriggerGetParams = TriggerGetParams$;
|
|
13564
|
+
export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
|
|
13565
|
+
export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
|
|
13566
|
+
export type TriggerListParams = TriggerListParams$;
|
|
13567
|
+
export type TriggerListResponse = TriggerListResponse$;
|
|
13568
|
+
export type TriggerRunParams = TriggerRunParams$;
|
|
13569
|
+
export type TriggerUpdate = TriggerUpdate$;
|
|
13570
|
+
export type TriggerUpdateParams = TriggerUpdateParams$;
|
|
13571
|
+
}
|
|
13572
|
+
|
|
13573
|
+
declare namespace triggers {
|
|
13574
|
+
export {
|
|
13575
|
+
ListTriggerExecutionsResponse,
|
|
13576
|
+
ListTriggersResponse,
|
|
13577
|
+
Interaction_2 as Interaction,
|
|
13578
|
+
TriggerCreateParams,
|
|
13579
|
+
TriggerExecutionStatus,
|
|
13580
|
+
TriggerExecution,
|
|
13581
|
+
TriggerUpdateStatus,
|
|
13582
|
+
TriggerUpdate,
|
|
13583
|
+
TriggerStatus,
|
|
13584
|
+
Trigger
|
|
13585
|
+
}
|
|
13586
|
+
}
|
|
13587
|
+
|
|
13588
|
+
/**
|
|
13589
|
+
* Output only. The current status of the trigger.
|
|
13590
|
+
*/
|
|
13591
|
+
declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
|
|
13592
|
+
|
|
13593
|
+
declare type TriggerUpdate$ = TriggerUpdate;
|
|
13594
|
+
|
|
13595
|
+
/**
|
|
13596
|
+
* Represents the fields of a Trigger that can be updated.
|
|
13597
|
+
*/
|
|
13598
|
+
declare type TriggerUpdate = {
|
|
13599
|
+
/**
|
|
13600
|
+
* Optional. The display name of the trigger.
|
|
13601
|
+
*/
|
|
13602
|
+
display_name?: string | undefined;
|
|
13603
|
+
/**
|
|
13604
|
+
* Optional. The status of the trigger.
|
|
13605
|
+
*/
|
|
13606
|
+
status?: TriggerUpdateStatus | undefined;
|
|
13607
|
+
};
|
|
13608
|
+
|
|
13609
|
+
declare type TriggerUpdateParams$ = UpdateTriggerParams;
|
|
13610
|
+
|
|
13611
|
+
/**
|
|
13612
|
+
* @license
|
|
13613
|
+
* Copyright 2026 Google LLC
|
|
13614
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13615
|
+
*
|
|
13616
|
+
* g3-prettier-ignore-file
|
|
13617
|
+
*/
|
|
13618
|
+
/**
|
|
13619
|
+
* Optional. The status of the trigger.
|
|
13620
|
+
*/
|
|
13621
|
+
declare type TriggerUpdateStatus = "active" | "paused" | "error";
|
|
13622
|
+
|
|
12926
13623
|
/** TunedModel for the Tuned Model of a Tuning Job. */
|
|
12927
13624
|
export declare interface TunedModel {
|
|
12928
13625
|
/** Output only. The resource name of the TunedModel.
|
|
@@ -13932,6 +14629,7 @@ declare namespace types {
|
|
|
13932
14629
|
LanguageHints,
|
|
13933
14630
|
AudioTranscriptionConfig,
|
|
13934
14631
|
ProactivityConfig,
|
|
14632
|
+
HistoryConfig,
|
|
13935
14633
|
CustomizedAvatar,
|
|
13936
14634
|
AvatarConfig,
|
|
13937
14635
|
LiveClientSetup,
|
|
@@ -14041,6 +14739,20 @@ export declare interface UpdateModelParameters {
|
|
|
14041
14739
|
config?: UpdateModelConfig;
|
|
14042
14740
|
}
|
|
14043
14741
|
|
|
14742
|
+
declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
|
|
14743
|
+
|
|
14744
|
+
declare type UpdateTriggerRequest = {
|
|
14745
|
+
/**
|
|
14746
|
+
* Which version of the API to use.
|
|
14747
|
+
*/
|
|
14748
|
+
api_version?: string | undefined;
|
|
14749
|
+
/**
|
|
14750
|
+
* Resource name of the trigger.
|
|
14751
|
+
*/
|
|
14752
|
+
id: string;
|
|
14753
|
+
body: triggers.TriggerUpdate;
|
|
14754
|
+
};
|
|
14755
|
+
|
|
14044
14756
|
declare interface Uploader {
|
|
14045
14757
|
/**
|
|
14046
14758
|
* Uploads a file to the given upload url.
|
|
@@ -15367,4 +16079,60 @@ export declare interface WhiteSpaceConfig {
|
|
|
15367
16079
|
maxOverlapTokens?: number;
|
|
15368
16080
|
}
|
|
15369
16081
|
|
|
16082
|
+
declare type WordInfo$ = WordInfo;
|
|
16083
|
+
|
|
16084
|
+
/**
|
|
16085
|
+
* @license
|
|
16086
|
+
* Copyright 2026 Google LLC
|
|
16087
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16088
|
+
*
|
|
16089
|
+
* g3-prettier-ignore-file
|
|
16090
|
+
*/
|
|
16091
|
+
/**
|
|
16092
|
+
* Word-level ASR annotation for transcription output.
|
|
16093
|
+
*
|
|
16094
|
+
* @remarks
|
|
16095
|
+
* Carries the word text, optional timing, and optional speaker attribution.
|
|
16096
|
+
*/
|
|
16097
|
+
declare type WordInfo = {
|
|
16098
|
+
/**
|
|
16099
|
+
* End of the attributed segment, exclusive.
|
|
16100
|
+
*/
|
|
16101
|
+
end_index?: number | undefined;
|
|
16102
|
+
/**
|
|
16103
|
+
* End offset in time of the word relative to the start of the audio.
|
|
16104
|
+
*
|
|
16105
|
+
* @remarks
|
|
16106
|
+
* Present when timestamp_granularities contains "word".
|
|
16107
|
+
*/
|
|
16108
|
+
end_offset?: string | undefined;
|
|
16109
|
+
/**
|
|
16110
|
+
* Optional. Speaker label for this word (e.g. "spk_1", "spk_2").
|
|
16111
|
+
*
|
|
16112
|
+
* @remarks
|
|
16113
|
+
* Present when diarization_mode is set in TranscriptionConfig.
|
|
16114
|
+
*/
|
|
16115
|
+
speaker?: string | undefined;
|
|
16116
|
+
/**
|
|
16117
|
+
* Start of segment of the response that is attributed to this source.
|
|
16118
|
+
*
|
|
16119
|
+
* @remarks
|
|
16120
|
+
*
|
|
16121
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
16122
|
+
*/
|
|
16123
|
+
start_index?: number | undefined;
|
|
16124
|
+
/**
|
|
16125
|
+
* Start offset in time of the word relative to the start of the audio.
|
|
16126
|
+
*
|
|
16127
|
+
* @remarks
|
|
16128
|
+
* Present when timestamp_granularities contains "word".
|
|
16129
|
+
*/
|
|
16130
|
+
start_offset?: string | undefined;
|
|
16131
|
+
/**
|
|
16132
|
+
* The transcribed word.
|
|
16133
|
+
*/
|
|
16134
|
+
text?: string | undefined;
|
|
16135
|
+
type: "word_info";
|
|
16136
|
+
};
|
|
16137
|
+
|
|
15370
16138
|
export { }
|