@google/genai 0.14.1 → 1.0.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/README.md +6 -13
- package/dist/genai.d.ts +1080 -31
- package/dist/index.js +5181 -2468
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5180 -2469
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.js +8937 -6225
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +14542 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/node.d.ts +1080 -31
- package/dist/web/index.mjs +9192 -6481
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +1080 -31
- package/package.json +14 -7
package/dist/node/node.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
1
2
|
import { GoogleAuthOptions } from 'google-auth-library';
|
|
2
3
|
|
|
3
4
|
/** Marks the end of user activity.
|
|
@@ -10,8 +11,17 @@ export declare interface ActivityEnd {
|
|
|
10
11
|
|
|
11
12
|
/** The different ways of handling user activity. */
|
|
12
13
|
export declare enum ActivityHandling {
|
|
14
|
+
/**
|
|
15
|
+
* If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.
|
|
16
|
+
*/
|
|
13
17
|
ACTIVITY_HANDLING_UNSPECIFIED = "ACTIVITY_HANDLING_UNSPECIFIED",
|
|
18
|
+
/**
|
|
19
|
+
* If true, start of activity will interrupt the model's response (also called "barge in"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.
|
|
20
|
+
*/
|
|
14
21
|
START_OF_ACTIVITY_INTERRUPTS = "START_OF_ACTIVITY_INTERRUPTS",
|
|
22
|
+
/**
|
|
23
|
+
* The model's response will not be interrupted.
|
|
24
|
+
*/
|
|
15
25
|
NO_INTERRUPTION = "NO_INTERRUPTION"
|
|
16
26
|
}
|
|
17
27
|
|
|
@@ -25,12 +35,33 @@ export declare interface ActivityStart {
|
|
|
25
35
|
|
|
26
36
|
/** Optional. Adapter size for tuning. */
|
|
27
37
|
export declare enum AdapterSize {
|
|
38
|
+
/**
|
|
39
|
+
* Adapter size is unspecified.
|
|
40
|
+
*/
|
|
28
41
|
ADAPTER_SIZE_UNSPECIFIED = "ADAPTER_SIZE_UNSPECIFIED",
|
|
42
|
+
/**
|
|
43
|
+
* Adapter size 1.
|
|
44
|
+
*/
|
|
29
45
|
ADAPTER_SIZE_ONE = "ADAPTER_SIZE_ONE",
|
|
46
|
+
/**
|
|
47
|
+
* Adapter size 2.
|
|
48
|
+
*/
|
|
30
49
|
ADAPTER_SIZE_TWO = "ADAPTER_SIZE_TWO",
|
|
50
|
+
/**
|
|
51
|
+
* Adapter size 4.
|
|
52
|
+
*/
|
|
31
53
|
ADAPTER_SIZE_FOUR = "ADAPTER_SIZE_FOUR",
|
|
54
|
+
/**
|
|
55
|
+
* Adapter size 8.
|
|
56
|
+
*/
|
|
32
57
|
ADAPTER_SIZE_EIGHT = "ADAPTER_SIZE_EIGHT",
|
|
58
|
+
/**
|
|
59
|
+
* Adapter size 16.
|
|
60
|
+
*/
|
|
33
61
|
ADAPTER_SIZE_SIXTEEN = "ADAPTER_SIZE_SIXTEEN",
|
|
62
|
+
/**
|
|
63
|
+
* Adapter size 32.
|
|
64
|
+
*/
|
|
34
65
|
ADAPTER_SIZE_THIRTY_TWO = "ADAPTER_SIZE_THIRTY_TWO"
|
|
35
66
|
}
|
|
36
67
|
|
|
@@ -166,6 +197,16 @@ export declare interface ApiKeyConfig {
|
|
|
166
197
|
apiKeyString?: string;
|
|
167
198
|
}
|
|
168
199
|
|
|
200
|
+
/** Representation of an audio chunk. */
|
|
201
|
+
export declare interface AudioChunk {
|
|
202
|
+
/** Raw byets of audio data. */
|
|
203
|
+
data?: string;
|
|
204
|
+
/** MIME type of the audio chunk. */
|
|
205
|
+
mimeType?: string;
|
|
206
|
+
/** Prompts and config used for generating this audio chunk. */
|
|
207
|
+
sourceMetadata?: LiveMusicSourceMetadata;
|
|
208
|
+
}
|
|
209
|
+
|
|
169
210
|
/** The audio transcription configuration in Setup. */
|
|
170
211
|
export declare interface AudioTranscriptionConfig {
|
|
171
212
|
}
|
|
@@ -234,11 +275,29 @@ export declare interface AuthConfigOidcConfig {
|
|
|
234
275
|
/** Type of auth scheme. */
|
|
235
276
|
export declare enum AuthType {
|
|
236
277
|
AUTH_TYPE_UNSPECIFIED = "AUTH_TYPE_UNSPECIFIED",
|
|
278
|
+
/**
|
|
279
|
+
* No Auth.
|
|
280
|
+
*/
|
|
237
281
|
NO_AUTH = "NO_AUTH",
|
|
282
|
+
/**
|
|
283
|
+
* API Key Auth.
|
|
284
|
+
*/
|
|
238
285
|
API_KEY_AUTH = "API_KEY_AUTH",
|
|
286
|
+
/**
|
|
287
|
+
* HTTP Basic Auth.
|
|
288
|
+
*/
|
|
239
289
|
HTTP_BASIC_AUTH = "HTTP_BASIC_AUTH",
|
|
290
|
+
/**
|
|
291
|
+
* Google Service Account Auth.
|
|
292
|
+
*/
|
|
240
293
|
GOOGLE_SERVICE_ACCOUNT_AUTH = "GOOGLE_SERVICE_ACCOUNT_AUTH",
|
|
294
|
+
/**
|
|
295
|
+
* OAuth auth.
|
|
296
|
+
*/
|
|
241
297
|
OAUTH = "OAUTH",
|
|
298
|
+
/**
|
|
299
|
+
* OpenID Connect (OIDC) Auth.
|
|
300
|
+
*/
|
|
242
301
|
OIDC_AUTH = "OIDC_AUTH"
|
|
243
302
|
}
|
|
244
303
|
|
|
@@ -256,6 +315,28 @@ export declare interface AutomaticActivityDetection {
|
|
|
256
315
|
silenceDurationMs?: number;
|
|
257
316
|
}
|
|
258
317
|
|
|
318
|
+
/** The configuration for automatic function calling. */
|
|
319
|
+
export declare interface AutomaticFunctionCallingConfig {
|
|
320
|
+
/** Whether to disable automatic function calling.
|
|
321
|
+
If not set or set to False, will enable automatic function calling.
|
|
322
|
+
If set to True, will disable automatic function calling.
|
|
323
|
+
*/
|
|
324
|
+
disable?: boolean;
|
|
325
|
+
/** If automatic function calling is enabled,
|
|
326
|
+
maximum number of remote calls for automatic function calling.
|
|
327
|
+
This number should be a positive integer.
|
|
328
|
+
If not set, SDK will set maximum number of remote calls to 10.
|
|
329
|
+
*/
|
|
330
|
+
maximumRemoteCalls?: number;
|
|
331
|
+
/** If automatic function calling is enabled,
|
|
332
|
+
whether to ignore call history to the response.
|
|
333
|
+
If not set, SDK will set ignore_call_history to false,
|
|
334
|
+
and will append the call history to
|
|
335
|
+
GenerateContentResponse.automatic_function_calling_history.
|
|
336
|
+
*/
|
|
337
|
+
ignoreCallHistory?: boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
259
340
|
/**
|
|
260
341
|
* @license
|
|
261
342
|
* Copyright 2025 Google LLC
|
|
@@ -272,6 +353,22 @@ export declare interface BaseUrlParameters {
|
|
|
272
353
|
vertexUrl?: string;
|
|
273
354
|
}
|
|
274
355
|
|
|
356
|
+
/** Defines the function behavior. Defaults to `BLOCKING`. */
|
|
357
|
+
export declare enum Behavior {
|
|
358
|
+
/**
|
|
359
|
+
* This value is unused.
|
|
360
|
+
*/
|
|
361
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
362
|
+
/**
|
|
363
|
+
* If set, the system will wait to receive the function response before continuing the conversation.
|
|
364
|
+
*/
|
|
365
|
+
BLOCKING = "BLOCKING",
|
|
366
|
+
/**
|
|
367
|
+
* If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.
|
|
368
|
+
*/
|
|
369
|
+
NON_BLOCKING = "NON_BLOCKING"
|
|
370
|
+
}
|
|
371
|
+
|
|
275
372
|
/** Content blob. */
|
|
276
373
|
declare interface Blob_2 {
|
|
277
374
|
/** Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls. */
|
|
@@ -287,10 +384,25 @@ export declare type BlobImageUnion = Blob_2;
|
|
|
287
384
|
|
|
288
385
|
/** Output only. Blocked reason. */
|
|
289
386
|
export declare enum BlockedReason {
|
|
387
|
+
/**
|
|
388
|
+
* Unspecified blocked reason.
|
|
389
|
+
*/
|
|
290
390
|
BLOCKED_REASON_UNSPECIFIED = "BLOCKED_REASON_UNSPECIFIED",
|
|
391
|
+
/**
|
|
392
|
+
* Candidates blocked due to safety.
|
|
393
|
+
*/
|
|
291
394
|
SAFETY = "SAFETY",
|
|
395
|
+
/**
|
|
396
|
+
* Candidates blocked due to other reason.
|
|
397
|
+
*/
|
|
292
398
|
OTHER = "OTHER",
|
|
399
|
+
/**
|
|
400
|
+
* Candidates blocked due to the terms which are included from the terminology blocklist.
|
|
401
|
+
*/
|
|
293
402
|
BLOCKLIST = "BLOCKLIST",
|
|
403
|
+
/**
|
|
404
|
+
* Candidates blocked due to prohibited content.
|
|
405
|
+
*/
|
|
294
406
|
PROHIBITED_CONTENT = "PROHIBITED_CONTENT"
|
|
295
407
|
}
|
|
296
408
|
|
|
@@ -413,6 +525,33 @@ export declare class Caches extends BaseModule {
|
|
|
413
525
|
private listInternal;
|
|
414
526
|
}
|
|
415
527
|
|
|
528
|
+
/**
|
|
529
|
+
* CallableTool is an invokable tool that can be executed with external
|
|
530
|
+
* application (e.g., via Model Context Protocol) or local functions with
|
|
531
|
+
* function calling.
|
|
532
|
+
*/
|
|
533
|
+
export declare interface CallableTool {
|
|
534
|
+
/**
|
|
535
|
+
* Returns tool that can be called by Gemini.
|
|
536
|
+
*/
|
|
537
|
+
tool(): Promise<Tool>;
|
|
538
|
+
/**
|
|
539
|
+
* Executes the callable tool with the given function call arguments and
|
|
540
|
+
* returns the response parts from the tool execution.
|
|
541
|
+
*/
|
|
542
|
+
callTool(functionCalls: FunctionCall[]): Promise<Part[]>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* CallableToolConfig is the configuration for a callable tool.
|
|
547
|
+
*/
|
|
548
|
+
export declare interface CallableToolConfig {
|
|
549
|
+
/**
|
|
550
|
+
* Specifies the model's behavior after invoking this tool.
|
|
551
|
+
*/
|
|
552
|
+
behavior?: Behavior;
|
|
553
|
+
}
|
|
554
|
+
|
|
416
555
|
/** A response candidate generated from the model. */
|
|
417
556
|
export declare interface Candidate {
|
|
418
557
|
/** Contains the multi-part content of the response.
|
|
@@ -431,6 +570,8 @@ export declare interface Candidate {
|
|
|
431
570
|
If empty, the model has not stopped generating the tokens.
|
|
432
571
|
*/
|
|
433
572
|
finishReason?: FinishReason;
|
|
573
|
+
/** Metadata related to url context retrieval tool. */
|
|
574
|
+
urlContextMetadata?: UrlContextMetadata;
|
|
434
575
|
/** Output only. Average log probability score of the candidate. */
|
|
435
576
|
avgLogprobs?: number;
|
|
436
577
|
/** Output only. Metadata specifies sources used to ground generated content. */
|
|
@@ -768,6 +909,40 @@ export declare class CountTokensResponse {
|
|
|
768
909
|
cachedContentTokenCount?: number;
|
|
769
910
|
}
|
|
770
911
|
|
|
912
|
+
/** Optional parameters. */
|
|
913
|
+
export declare interface CreateAuthTokenConfig {
|
|
914
|
+
/** Used to override HTTP request options. */
|
|
915
|
+
httpOptions?: HttpOptions;
|
|
916
|
+
/** Abort signal which can be used to cancel the request.
|
|
917
|
+
|
|
918
|
+
NOTE: AbortSignal is a client-only operation. Using it to cancel an
|
|
919
|
+
operation will not cancel the request in the service. You will still
|
|
920
|
+
be charged usage for any applicable operations.
|
|
921
|
+
*/
|
|
922
|
+
abortSignal?: AbortSignal;
|
|
923
|
+
/** An optional time after which, when using the resulting token,
|
|
924
|
+
messages in Live API sessions will be rejected. (Gemini may
|
|
925
|
+
preemptively close the session after this time.)
|
|
926
|
+
|
|
927
|
+
If not set then this defaults to 30 minutes in the future. If set, this
|
|
928
|
+
value must be less than 20 hours in the future. */
|
|
929
|
+
expireTime?: string;
|
|
930
|
+
/** The time after which new Live API sessions using the token
|
|
931
|
+
resulting from this request will be rejected.
|
|
932
|
+
|
|
933
|
+
If not set this defaults to 60 seconds in the future. If set, this value
|
|
934
|
+
must be less than 20 hours in the future. */
|
|
935
|
+
newSessionExpireTime?: string;
|
|
936
|
+
/** The number of times the token can be used. If this value is zero
|
|
937
|
+
then no limit is applied. Default is 1. Resuming a Live API session does
|
|
938
|
+
not count as a use. */
|
|
939
|
+
uses?: number;
|
|
940
|
+
/** Configuration specific to Live API connections created using this token. */
|
|
941
|
+
liveEphemeralParameters?: LiveEphemeralParameters;
|
|
942
|
+
/** Additional fields to lock in the effective LiveConnectParameters. */
|
|
943
|
+
lockAdditionalFields?: string[];
|
|
944
|
+
}
|
|
945
|
+
|
|
771
946
|
/** Optional configuration for cached content creation. */
|
|
772
947
|
export declare interface CreateCachedContentConfig {
|
|
773
948
|
/** Used to override HTTP request options. */
|
|
@@ -798,6 +973,16 @@ export declare interface CreateCachedContentConfig {
|
|
|
798
973
|
/** Configuration for the tools to use. This config is shared for all tools.
|
|
799
974
|
*/
|
|
800
975
|
toolConfig?: ToolConfig;
|
|
976
|
+
/** The Cloud KMS resource identifier of the customer managed
|
|
977
|
+
encryption key used to protect a resource.
|
|
978
|
+
The key needs to be in the same region as where the compute resource is
|
|
979
|
+
created. See
|
|
980
|
+
https://cloud.google.com/vertex-ai/docs/general/cmek for more
|
|
981
|
+
details. If this is set, then all created CachedContent objects
|
|
982
|
+
will be encrypted with the provided encryption key.
|
|
983
|
+
Allowed formats: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
|
|
984
|
+
*/
|
|
985
|
+
kmsKeyName?: string;
|
|
801
986
|
}
|
|
802
987
|
|
|
803
988
|
/** Parameters for caches.create method. */
|
|
@@ -1159,7 +1344,13 @@ export declare interface DynamicRetrievalConfig {
|
|
|
1159
1344
|
|
|
1160
1345
|
/** Config for the dynamic retrieval config mode. */
|
|
1161
1346
|
export declare enum DynamicRetrievalConfigMode {
|
|
1347
|
+
/**
|
|
1348
|
+
* Always trigger retrieval.
|
|
1349
|
+
*/
|
|
1162
1350
|
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
1351
|
+
/**
|
|
1352
|
+
* Run retrieval only when system decides it is necessary.
|
|
1353
|
+
*/
|
|
1163
1354
|
MODE_DYNAMIC = "MODE_DYNAMIC"
|
|
1164
1355
|
}
|
|
1165
1356
|
|
|
@@ -1338,8 +1529,17 @@ export declare interface Endpoint {
|
|
|
1338
1529
|
|
|
1339
1530
|
/** End of speech sensitivity. */
|
|
1340
1531
|
export declare enum EndSensitivity {
|
|
1532
|
+
/**
|
|
1533
|
+
* The default is END_SENSITIVITY_LOW.
|
|
1534
|
+
*/
|
|
1341
1535
|
END_SENSITIVITY_UNSPECIFIED = "END_SENSITIVITY_UNSPECIFIED",
|
|
1536
|
+
/**
|
|
1537
|
+
* Automatic detection ends speech more often.
|
|
1538
|
+
*/
|
|
1342
1539
|
END_SENSITIVITY_HIGH = "END_SENSITIVITY_HIGH",
|
|
1540
|
+
/**
|
|
1541
|
+
* Automatic detection ends speech less often.
|
|
1542
|
+
*/
|
|
1343
1543
|
END_SENSITIVITY_LOW = "END_SENSITIVITY_LOW"
|
|
1344
1544
|
}
|
|
1345
1545
|
|
|
@@ -1588,17 +1788,53 @@ export declare interface FileStatus {
|
|
|
1588
1788
|
If empty, the model has not stopped generating the tokens.
|
|
1589
1789
|
*/
|
|
1590
1790
|
export declare enum FinishReason {
|
|
1791
|
+
/**
|
|
1792
|
+
* The finish reason is unspecified.
|
|
1793
|
+
*/
|
|
1591
1794
|
FINISH_REASON_UNSPECIFIED = "FINISH_REASON_UNSPECIFIED",
|
|
1795
|
+
/**
|
|
1796
|
+
* Token generation reached a natural stopping point or a configured stop sequence.
|
|
1797
|
+
*/
|
|
1592
1798
|
STOP = "STOP",
|
|
1799
|
+
/**
|
|
1800
|
+
* Token generation reached the configured maximum output tokens.
|
|
1801
|
+
*/
|
|
1593
1802
|
MAX_TOKENS = "MAX_TOKENS",
|
|
1803
|
+
/**
|
|
1804
|
+
* Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, [content][] is empty if content filters blocks the output.
|
|
1805
|
+
*/
|
|
1594
1806
|
SAFETY = "SAFETY",
|
|
1807
|
+
/**
|
|
1808
|
+
* The token generation stopped because of potential recitation.
|
|
1809
|
+
*/
|
|
1595
1810
|
RECITATION = "RECITATION",
|
|
1811
|
+
/**
|
|
1812
|
+
* The token generation stopped because of using an unsupported language.
|
|
1813
|
+
*/
|
|
1596
1814
|
LANGUAGE = "LANGUAGE",
|
|
1815
|
+
/**
|
|
1816
|
+
* All other reasons that stopped the token generation.
|
|
1817
|
+
*/
|
|
1597
1818
|
OTHER = "OTHER",
|
|
1819
|
+
/**
|
|
1820
|
+
* Token generation stopped because the content contains forbidden terms.
|
|
1821
|
+
*/
|
|
1598
1822
|
BLOCKLIST = "BLOCKLIST",
|
|
1823
|
+
/**
|
|
1824
|
+
* Token generation stopped for potentially containing prohibited content.
|
|
1825
|
+
*/
|
|
1599
1826
|
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
|
|
1827
|
+
/**
|
|
1828
|
+
* Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
|
|
1829
|
+
*/
|
|
1600
1830
|
SPII = "SPII",
|
|
1831
|
+
/**
|
|
1832
|
+
* The function call generated by the model is invalid.
|
|
1833
|
+
*/
|
|
1601
1834
|
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
|
|
1835
|
+
/**
|
|
1836
|
+
* Token generation stopped because generated images have safety violations.
|
|
1837
|
+
*/
|
|
1602
1838
|
IMAGE_SAFETY = "IMAGE_SAFETY"
|
|
1603
1839
|
}
|
|
1604
1840
|
|
|
@@ -1623,14 +1859,32 @@ export declare interface FunctionCallingConfig {
|
|
|
1623
1859
|
|
|
1624
1860
|
/** Config for the function calling config mode. */
|
|
1625
1861
|
export declare enum FunctionCallingConfigMode {
|
|
1862
|
+
/**
|
|
1863
|
+
* The function calling config mode is unspecified. Should not be used.
|
|
1864
|
+
*/
|
|
1626
1865
|
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
1866
|
+
/**
|
|
1867
|
+
* Default model behavior, model decides to predict either function calls or natural language response.
|
|
1868
|
+
*/
|
|
1627
1869
|
AUTO = "AUTO",
|
|
1870
|
+
/**
|
|
1871
|
+
* Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
|
|
1872
|
+
*/
|
|
1628
1873
|
ANY = "ANY",
|
|
1874
|
+
/**
|
|
1875
|
+
* Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
|
|
1876
|
+
*/
|
|
1629
1877
|
NONE = "NONE"
|
|
1630
1878
|
}
|
|
1631
1879
|
|
|
1632
|
-
/**
|
|
1880
|
+
/** Defines a function that the model can generate JSON inputs for.
|
|
1881
|
+
|
|
1882
|
+
The inputs are based on `OpenAPI 3.0 specifications
|
|
1883
|
+
<https://spec.openapis.org/oas/v3.0.3>`_.
|
|
1884
|
+
*/
|
|
1633
1885
|
export declare interface FunctionDeclaration {
|
|
1886
|
+
/** Defines the function behavior. */
|
|
1887
|
+
behavior?: Behavior;
|
|
1634
1888
|
/** Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. */
|
|
1635
1889
|
description?: string;
|
|
1636
1890
|
/** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64. */
|
|
@@ -1643,8 +1897,11 @@ export declare interface FunctionDeclaration {
|
|
|
1643
1897
|
|
|
1644
1898
|
/** A function response. */
|
|
1645
1899
|
export declare class FunctionResponse {
|
|
1646
|
-
/**
|
|
1647
|
-
|
|
1900
|
+
/** Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. */
|
|
1901
|
+
willContinue?: boolean;
|
|
1902
|
+
/** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
|
|
1903
|
+
scheduling?: FunctionResponseScheduling;
|
|
1904
|
+
/** Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`. */
|
|
1648
1905
|
id?: string;
|
|
1649
1906
|
/** Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]. */
|
|
1650
1907
|
name?: string;
|
|
@@ -1652,6 +1909,26 @@ export declare class FunctionResponse {
|
|
|
1652
1909
|
response?: Record<string, unknown>;
|
|
1653
1910
|
}
|
|
1654
1911
|
|
|
1912
|
+
/** Specifies how the response should be scheduled in the conversation. */
|
|
1913
|
+
export declare enum FunctionResponseScheduling {
|
|
1914
|
+
/**
|
|
1915
|
+
* This value is unused.
|
|
1916
|
+
*/
|
|
1917
|
+
SCHEDULING_UNSPECIFIED = "SCHEDULING_UNSPECIFIED",
|
|
1918
|
+
/**
|
|
1919
|
+
* Only add the result to the conversation context, do not interrupt or trigger generation.
|
|
1920
|
+
*/
|
|
1921
|
+
SILENT = "SILENT",
|
|
1922
|
+
/**
|
|
1923
|
+
* Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.
|
|
1924
|
+
*/
|
|
1925
|
+
WHEN_IDLE = "WHEN_IDLE",
|
|
1926
|
+
/**
|
|
1927
|
+
* Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.
|
|
1928
|
+
*/
|
|
1929
|
+
INTERRUPT = "INTERRUPT"
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1655
1932
|
/** Optional model configuration parameters.
|
|
1656
1933
|
|
|
1657
1934
|
For more information, see `Content generation parameters
|
|
@@ -1777,6 +2054,9 @@ export declare interface GenerateContentConfig {
|
|
|
1777
2054
|
model.
|
|
1778
2055
|
*/
|
|
1779
2056
|
audioTimestamp?: boolean;
|
|
2057
|
+
/** The configuration for automatic function calling.
|
|
2058
|
+
*/
|
|
2059
|
+
automaticFunctionCalling?: AutomaticFunctionCallingConfig;
|
|
1780
2060
|
/** The thinking features configuration.
|
|
1781
2061
|
*/
|
|
1782
2062
|
thinkingConfig?: ThinkingConfig;
|
|
@@ -1806,6 +2086,9 @@ export declare class GenerateContentResponse {
|
|
|
1806
2086
|
/** Identifier for each response.
|
|
1807
2087
|
*/
|
|
1808
2088
|
responseId?: string;
|
|
2089
|
+
/** The history of automatic function calling.
|
|
2090
|
+
*/
|
|
2091
|
+
automaticFunctionCallingHistory?: Content[];
|
|
1809
2092
|
/** Output only. The model version used to generate the response. */
|
|
1810
2093
|
modelVersion?: string;
|
|
1811
2094
|
/** Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations. */
|
|
@@ -2461,6 +2744,10 @@ export declare interface GoogleRpcStatus {
|
|
|
2461
2744
|
|
|
2462
2745
|
/** Tool to support Google Search in Model. Powered by Google. */
|
|
2463
2746
|
export declare interface GoogleSearch {
|
|
2747
|
+
/** Optional. Filter search results to a specific time range.
|
|
2748
|
+
If customers set a start time, they must set an end time (and vice versa).
|
|
2749
|
+
*/
|
|
2750
|
+
timeRangeFilter?: Interval;
|
|
2464
2751
|
}
|
|
2465
2752
|
|
|
2466
2753
|
/** Tool to retrieve public web data for grounding, powered by Google. */
|
|
@@ -2535,46 +2822,121 @@ export declare interface GroundingSupport {
|
|
|
2535
2822
|
|
|
2536
2823
|
/** Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. */
|
|
2537
2824
|
export declare enum HarmBlockMethod {
|
|
2825
|
+
/**
|
|
2826
|
+
* The harm block method is unspecified.
|
|
2827
|
+
*/
|
|
2538
2828
|
HARM_BLOCK_METHOD_UNSPECIFIED = "HARM_BLOCK_METHOD_UNSPECIFIED",
|
|
2829
|
+
/**
|
|
2830
|
+
* The harm block method uses both probability and severity scores.
|
|
2831
|
+
*/
|
|
2539
2832
|
SEVERITY = "SEVERITY",
|
|
2833
|
+
/**
|
|
2834
|
+
* The harm block method uses the probability score.
|
|
2835
|
+
*/
|
|
2540
2836
|
PROBABILITY = "PROBABILITY"
|
|
2541
2837
|
}
|
|
2542
2838
|
|
|
2543
2839
|
/** Required. The harm block threshold. */
|
|
2544
2840
|
export declare enum HarmBlockThreshold {
|
|
2841
|
+
/**
|
|
2842
|
+
* Unspecified harm block threshold.
|
|
2843
|
+
*/
|
|
2545
2844
|
HARM_BLOCK_THRESHOLD_UNSPECIFIED = "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
|
|
2845
|
+
/**
|
|
2846
|
+
* Block low threshold and above (i.e. block more).
|
|
2847
|
+
*/
|
|
2546
2848
|
BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
|
|
2849
|
+
/**
|
|
2850
|
+
* Block medium threshold and above.
|
|
2851
|
+
*/
|
|
2547
2852
|
BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
|
|
2853
|
+
/**
|
|
2854
|
+
* Block only high threshold (i.e. block less).
|
|
2855
|
+
*/
|
|
2548
2856
|
BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH",
|
|
2857
|
+
/**
|
|
2858
|
+
* Block none.
|
|
2859
|
+
*/
|
|
2549
2860
|
BLOCK_NONE = "BLOCK_NONE",
|
|
2861
|
+
/**
|
|
2862
|
+
* Turn off the safety filter.
|
|
2863
|
+
*/
|
|
2550
2864
|
OFF = "OFF"
|
|
2551
2865
|
}
|
|
2552
2866
|
|
|
2553
2867
|
/** Required. Harm category. */
|
|
2554
2868
|
export declare enum HarmCategory {
|
|
2869
|
+
/**
|
|
2870
|
+
* The harm category is unspecified.
|
|
2871
|
+
*/
|
|
2555
2872
|
HARM_CATEGORY_UNSPECIFIED = "HARM_CATEGORY_UNSPECIFIED",
|
|
2873
|
+
/**
|
|
2874
|
+
* The harm category is hate speech.
|
|
2875
|
+
*/
|
|
2556
2876
|
HARM_CATEGORY_HATE_SPEECH = "HARM_CATEGORY_HATE_SPEECH",
|
|
2877
|
+
/**
|
|
2878
|
+
* The harm category is dangerous content.
|
|
2879
|
+
*/
|
|
2557
2880
|
HARM_CATEGORY_DANGEROUS_CONTENT = "HARM_CATEGORY_DANGEROUS_CONTENT",
|
|
2881
|
+
/**
|
|
2882
|
+
* The harm category is harassment.
|
|
2883
|
+
*/
|
|
2558
2884
|
HARM_CATEGORY_HARASSMENT = "HARM_CATEGORY_HARASSMENT",
|
|
2885
|
+
/**
|
|
2886
|
+
* The harm category is sexually explicit content.
|
|
2887
|
+
*/
|
|
2559
2888
|
HARM_CATEGORY_SEXUALLY_EXPLICIT = "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
|
2889
|
+
/**
|
|
2890
|
+
* The harm category is civic integrity.
|
|
2891
|
+
*/
|
|
2560
2892
|
HARM_CATEGORY_CIVIC_INTEGRITY = "HARM_CATEGORY_CIVIC_INTEGRITY"
|
|
2561
2893
|
}
|
|
2562
2894
|
|
|
2563
2895
|
/** Output only. Harm probability levels in the content. */
|
|
2564
2896
|
export declare enum HarmProbability {
|
|
2897
|
+
/**
|
|
2898
|
+
* Harm probability unspecified.
|
|
2899
|
+
*/
|
|
2565
2900
|
HARM_PROBABILITY_UNSPECIFIED = "HARM_PROBABILITY_UNSPECIFIED",
|
|
2901
|
+
/**
|
|
2902
|
+
* Negligible level of harm.
|
|
2903
|
+
*/
|
|
2566
2904
|
NEGLIGIBLE = "NEGLIGIBLE",
|
|
2905
|
+
/**
|
|
2906
|
+
* Low level of harm.
|
|
2907
|
+
*/
|
|
2567
2908
|
LOW = "LOW",
|
|
2909
|
+
/**
|
|
2910
|
+
* Medium level of harm.
|
|
2911
|
+
*/
|
|
2568
2912
|
MEDIUM = "MEDIUM",
|
|
2913
|
+
/**
|
|
2914
|
+
* High level of harm.
|
|
2915
|
+
*/
|
|
2569
2916
|
HIGH = "HIGH"
|
|
2570
2917
|
}
|
|
2571
2918
|
|
|
2572
2919
|
/** Output only. Harm severity levels in the content. */
|
|
2573
2920
|
export declare enum HarmSeverity {
|
|
2921
|
+
/**
|
|
2922
|
+
* Harm severity unspecified.
|
|
2923
|
+
*/
|
|
2574
2924
|
HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED",
|
|
2925
|
+
/**
|
|
2926
|
+
* Negligible level of harm severity.
|
|
2927
|
+
*/
|
|
2575
2928
|
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
|
|
2929
|
+
/**
|
|
2930
|
+
* Low level of harm severity.
|
|
2931
|
+
*/
|
|
2576
2932
|
HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
|
|
2933
|
+
/**
|
|
2934
|
+
* Medium level of harm severity.
|
|
2935
|
+
*/
|
|
2577
2936
|
HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
|
|
2937
|
+
/**
|
|
2938
|
+
* High level of harm severity.
|
|
2939
|
+
*/
|
|
2578
2940
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
2579
2941
|
}
|
|
2580
2942
|
|
|
@@ -2675,25 +3037,81 @@ export declare enum ImagePromptLanguage {
|
|
|
2675
3037
|
hi = "hi"
|
|
2676
3038
|
}
|
|
2677
3039
|
|
|
3040
|
+
/** Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).
|
|
3041
|
+
|
|
3042
|
+
The start time must be less than or equal to the end time.
|
|
3043
|
+
When the start equals the end time, the interval is an empty interval.
|
|
3044
|
+
(matches no time)
|
|
3045
|
+
When both start and end are unspecified, the interval matches any time.
|
|
3046
|
+
*/
|
|
3047
|
+
export declare interface Interval {
|
|
3048
|
+
/** The start time of the interval. */
|
|
3049
|
+
startTime?: string;
|
|
3050
|
+
/** The end time of the interval. */
|
|
3051
|
+
endTime?: string;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
2678
3054
|
/** Output only. The detailed state of the job. */
|
|
2679
3055
|
export declare enum JobState {
|
|
3056
|
+
/**
|
|
3057
|
+
* The job state is unspecified.
|
|
3058
|
+
*/
|
|
2680
3059
|
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
3060
|
+
/**
|
|
3061
|
+
* The job has been just created or resumed and processing has not yet begun.
|
|
3062
|
+
*/
|
|
2681
3063
|
JOB_STATE_QUEUED = "JOB_STATE_QUEUED",
|
|
3064
|
+
/**
|
|
3065
|
+
* The service is preparing to run the job.
|
|
3066
|
+
*/
|
|
2682
3067
|
JOB_STATE_PENDING = "JOB_STATE_PENDING",
|
|
3068
|
+
/**
|
|
3069
|
+
* The job is in progress.
|
|
3070
|
+
*/
|
|
2683
3071
|
JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
|
|
3072
|
+
/**
|
|
3073
|
+
* The job completed successfully.
|
|
3074
|
+
*/
|
|
2684
3075
|
JOB_STATE_SUCCEEDED = "JOB_STATE_SUCCEEDED",
|
|
3076
|
+
/**
|
|
3077
|
+
* The job failed.
|
|
3078
|
+
*/
|
|
2685
3079
|
JOB_STATE_FAILED = "JOB_STATE_FAILED",
|
|
3080
|
+
/**
|
|
3081
|
+
* The job is being cancelled. From this state the job may only go to either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.
|
|
3082
|
+
*/
|
|
2686
3083
|
JOB_STATE_CANCELLING = "JOB_STATE_CANCELLING",
|
|
3084
|
+
/**
|
|
3085
|
+
* The job has been cancelled.
|
|
3086
|
+
*/
|
|
2687
3087
|
JOB_STATE_CANCELLED = "JOB_STATE_CANCELLED",
|
|
3088
|
+
/**
|
|
3089
|
+
* The job has been stopped, and can be resumed.
|
|
3090
|
+
*/
|
|
2688
3091
|
JOB_STATE_PAUSED = "JOB_STATE_PAUSED",
|
|
3092
|
+
/**
|
|
3093
|
+
* The job has expired.
|
|
3094
|
+
*/
|
|
2689
3095
|
JOB_STATE_EXPIRED = "JOB_STATE_EXPIRED",
|
|
3096
|
+
/**
|
|
3097
|
+
* The job is being updated. Only jobs in the `RUNNING` state can be updated. After updating, the job goes back to the `RUNNING` state.
|
|
3098
|
+
*/
|
|
2690
3099
|
JOB_STATE_UPDATING = "JOB_STATE_UPDATING",
|
|
3100
|
+
/**
|
|
3101
|
+
* The job is partially succeeded, some results may be missing due to errors.
|
|
3102
|
+
*/
|
|
2691
3103
|
JOB_STATE_PARTIALLY_SUCCEEDED = "JOB_STATE_PARTIALLY_SUCCEEDED"
|
|
2692
3104
|
}
|
|
2693
3105
|
|
|
2694
3106
|
/** Required. Programming language of the `code`. */
|
|
2695
3107
|
export declare enum Language {
|
|
3108
|
+
/**
|
|
3109
|
+
* Unspecified language. This value should not be used.
|
|
3110
|
+
*/
|
|
2696
3111
|
LANGUAGE_UNSPECIFIED = "LANGUAGE_UNSPECIFIED",
|
|
3112
|
+
/**
|
|
3113
|
+
* Python >= 3.10, with numpy and simpy available.
|
|
3114
|
+
*/
|
|
2697
3115
|
PYTHON = "PYTHON"
|
|
2698
3116
|
}
|
|
2699
3117
|
|
|
@@ -2834,12 +3252,14 @@ export declare class Live {
|
|
|
2834
3252
|
private readonly apiClient;
|
|
2835
3253
|
private readonly auth;
|
|
2836
3254
|
private readonly webSocketFactory;
|
|
3255
|
+
readonly music: LiveMusic;
|
|
2837
3256
|
constructor(apiClient: ApiClient, auth: Auth, webSocketFactory: WebSocketFactory);
|
|
2838
3257
|
/**
|
|
2839
3258
|
Establishes a connection to the specified model with the given
|
|
2840
3259
|
configuration and returns a Session object representing that connection.
|
|
2841
3260
|
|
|
2842
|
-
@experimental
|
|
3261
|
+
@experimental Built-in MCP support is an experimental feature, may change in
|
|
3262
|
+
future versions.
|
|
2843
3263
|
|
|
2844
3264
|
@remarks
|
|
2845
3265
|
|
|
@@ -2877,6 +3297,7 @@ export declare class Live {
|
|
|
2877
3297
|
```
|
|
2878
3298
|
*/
|
|
2879
3299
|
connect(params: types.LiveConnectParameters): Promise<Session>;
|
|
3300
|
+
private isCallableTool;
|
|
2880
3301
|
}
|
|
2881
3302
|
|
|
2882
3303
|
/** Callbacks for the live API. */
|
|
@@ -3010,6 +3431,9 @@ export declare interface LiveClientSetup {
|
|
|
3010
3431
|
specified for the output audio.
|
|
3011
3432
|
*/
|
|
3012
3433
|
outputAudioTranscription?: AudioTranscriptionConfig;
|
|
3434
|
+
/** Configures the proactivity of the model. This allows the model to respond proactively to
|
|
3435
|
+
the input and to ignore irrelevant input. */
|
|
3436
|
+
proactivity?: ProactivityConfig;
|
|
3013
3437
|
}
|
|
3014
3438
|
|
|
3015
3439
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -3029,6 +3453,15 @@ export declare class LiveClientToolResponse {
|
|
|
3029
3453
|
|
|
3030
3454
|
/** Session config for the API connection. */
|
|
3031
3455
|
export declare interface LiveConnectConfig {
|
|
3456
|
+
/** Used to override HTTP request options. */
|
|
3457
|
+
httpOptions?: HttpOptions;
|
|
3458
|
+
/** Abort signal which can be used to cancel the request.
|
|
3459
|
+
|
|
3460
|
+
NOTE: AbortSignal is a client-only operation. Using it to cancel an
|
|
3461
|
+
operation will not cancel the request in the service. You will still
|
|
3462
|
+
be charged usage for any applicable operations.
|
|
3463
|
+
*/
|
|
3464
|
+
abortSignal?: AbortSignal;
|
|
3032
3465
|
/** The generation configuration for the session. */
|
|
3033
3466
|
generationConfig?: GenerationConfig;
|
|
3034
3467
|
/** The requested modalities of the response. Represents the set of
|
|
@@ -3067,6 +3500,8 @@ export declare interface LiveConnectConfig {
|
|
|
3067
3500
|
/** The speech generation configuration.
|
|
3068
3501
|
*/
|
|
3069
3502
|
speechConfig?: SpeechConfig;
|
|
3503
|
+
/** If enabled, the model will detect emotions and adapt its responses accordingly. */
|
|
3504
|
+
enableAffectiveDialog?: boolean;
|
|
3070
3505
|
/** The user provided system instructions for the model.
|
|
3071
3506
|
Note: only text should be used in parts and content in each part will be
|
|
3072
3507
|
in a separate paragraph. */
|
|
@@ -3094,6 +3529,9 @@ export declare interface LiveConnectConfig {
|
|
|
3094
3529
|
|
|
3095
3530
|
If included, server will compress context window to fit into given length. */
|
|
3096
3531
|
contextWindowCompression?: ContextWindowCompressionConfig;
|
|
3532
|
+
/** Configures the proactivity of the model. This allows the model to respond proactively to
|
|
3533
|
+
the input and to ignore irrelevant input. */
|
|
3534
|
+
proactivity?: ProactivityConfig;
|
|
3097
3535
|
}
|
|
3098
3536
|
|
|
3099
3537
|
/** Parameters for connecting to the live API. */
|
|
@@ -3108,23 +3546,315 @@ export declare interface LiveConnectParameters {
|
|
|
3108
3546
|
config?: LiveConnectConfig;
|
|
3109
3547
|
}
|
|
3110
3548
|
|
|
3111
|
-
/**
|
|
3112
|
-
export declare interface
|
|
3113
|
-
/**
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3549
|
+
/** Config for LiveEphemeralParameters for Auth Token creation. */
|
|
3550
|
+
export declare interface LiveEphemeralParameters {
|
|
3551
|
+
/** ID of the model to configure in the ephemeral token for Live API.
|
|
3552
|
+
For a list of models, see `Gemini models
|
|
3553
|
+
<https://ai.google.dev/gemini-api/docs/models>`. */
|
|
3554
|
+
model?: string;
|
|
3555
|
+
/** Configuration specific to Live API connections created using this token. */
|
|
3556
|
+
config?: LiveConnectConfig;
|
|
3119
3557
|
}
|
|
3120
3558
|
|
|
3121
|
-
/**
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3559
|
+
/**
|
|
3560
|
+
LiveMusic class encapsulates the configuration for live music
|
|
3561
|
+
generation via Lyria Live models.
|
|
3562
|
+
|
|
3563
|
+
@experimental
|
|
3564
|
+
*/
|
|
3565
|
+
declare class LiveMusic {
|
|
3566
|
+
private readonly apiClient;
|
|
3567
|
+
private readonly auth;
|
|
3568
|
+
private readonly webSocketFactory;
|
|
3569
|
+
constructor(apiClient: ApiClient, auth: Auth, webSocketFactory: WebSocketFactory);
|
|
3570
|
+
/**
|
|
3571
|
+
Establishes a connection to the specified model and returns a
|
|
3572
|
+
LiveMusicSession object representing that connection.
|
|
3573
|
+
|
|
3574
|
+
@experimental
|
|
3575
|
+
|
|
3576
|
+
@remarks
|
|
3577
|
+
|
|
3578
|
+
@param params - The parameters for establishing a connection to the model.
|
|
3579
|
+
@return A live session.
|
|
3580
|
+
|
|
3581
|
+
@example
|
|
3582
|
+
```ts
|
|
3583
|
+
let model = 'models/lyria-realtime-exp';
|
|
3584
|
+
const session = await ai.live.music.connect({
|
|
3585
|
+
model: model,
|
|
3586
|
+
callbacks: {
|
|
3587
|
+
onmessage: (e: MessageEvent) => {
|
|
3588
|
+
console.log('Received message from the server: %s\n', debug(e.data));
|
|
3589
|
+
},
|
|
3590
|
+
onerror: (e: ErrorEvent) => {
|
|
3591
|
+
console.log('Error occurred: %s\n', debug(e.error));
|
|
3592
|
+
},
|
|
3593
|
+
onclose: (e: CloseEvent) => {
|
|
3594
|
+
console.log('Connection closed.');
|
|
3595
|
+
},
|
|
3596
|
+
},
|
|
3597
|
+
});
|
|
3598
|
+
```
|
|
3599
|
+
*/
|
|
3600
|
+
connect(params: types.LiveMusicConnectParameters): Promise<LiveMusicSession>;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
/** Callbacks for the realtime music API. */
|
|
3604
|
+
export declare interface LiveMusicCallbacks {
|
|
3605
|
+
/**
|
|
3606
|
+
* Called when a message is received from the server.
|
|
3607
|
+
*/
|
|
3608
|
+
onmessage: (e: LiveMusicServerMessage) => void;
|
|
3609
|
+
/**
|
|
3610
|
+
* Called when an error occurs.
|
|
3611
|
+
*/
|
|
3612
|
+
onerror?: ((e: ErrorEvent) => void) | null;
|
|
3613
|
+
/**
|
|
3614
|
+
* Called when the websocket connection is closed.
|
|
3615
|
+
*/
|
|
3616
|
+
onclose?: ((e: CloseEvent) => void) | null;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
/** User input to start or steer the music. */
|
|
3620
|
+
export declare interface LiveMusicClientContent {
|
|
3621
|
+
/** Weighted prompts as the model input. */
|
|
3622
|
+
weightedPrompts?: WeightedPrompt[];
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
/** Messages sent by the client in the LiveMusicClientMessage call. */
|
|
3626
|
+
export declare interface LiveMusicClientMessage {
|
|
3627
|
+
/** Message to be sent in the first (and only in the first) `LiveMusicClientMessage`.
|
|
3628
|
+
Clients should wait for a `LiveMusicSetupComplete` message before
|
|
3629
|
+
sending any additional messages. */
|
|
3630
|
+
setup?: LiveMusicClientSetup;
|
|
3631
|
+
/** User input to influence music generation. */
|
|
3632
|
+
clientContent?: LiveMusicClientContent;
|
|
3633
|
+
/** Configuration for music generation. */
|
|
3634
|
+
musicGenerationConfig?: LiveMusicGenerationConfig;
|
|
3635
|
+
/** Playback control signal for the music generation. */
|
|
3636
|
+
playbackControl?: LiveMusicPlaybackControl;
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3639
|
+
/** Message to be sent by the system when connecting to the API. */
|
|
3640
|
+
export declare interface LiveMusicClientSetup {
|
|
3641
|
+
/** The model's resource name. Format: `models/{model}`. */
|
|
3642
|
+
model?: string;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
/** Parameters for connecting to the live API. */
|
|
3646
|
+
export declare interface LiveMusicConnectParameters {
|
|
3647
|
+
/** The model's resource name. */
|
|
3648
|
+
model: string;
|
|
3649
|
+
/** Callbacks invoked on server events. */
|
|
3650
|
+
callbacks: LiveMusicCallbacks;
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
/** A prompt that was filtered with the reason. */
|
|
3654
|
+
export declare interface LiveMusicFilteredPrompt {
|
|
3655
|
+
/** The text prompt that was filtered. */
|
|
3656
|
+
text?: string;
|
|
3657
|
+
/** The reason the prompt was filtered. */
|
|
3658
|
+
filteredReason?: string;
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
/** Configuration for music generation. */
|
|
3662
|
+
export declare interface LiveMusicGenerationConfig {
|
|
3663
|
+
/** Controls the variance in audio generation. Higher values produce
|
|
3664
|
+
higher variance. Range is [0.0, 3.0]. */
|
|
3665
|
+
temperature?: number;
|
|
3666
|
+
/** Controls how the model selects tokens for output. Samples the topK
|
|
3667
|
+
tokens with the highest probabilities. Range is [1, 1000]. */
|
|
3668
|
+
topK?: number;
|
|
3669
|
+
/** Seeds audio generation. If not set, the request uses a randomly
|
|
3670
|
+
generated seed. */
|
|
3671
|
+
seed?: number;
|
|
3672
|
+
/** Controls how closely the model follows prompts.
|
|
3673
|
+
Higher guidance follows more closely, but will make transitions more
|
|
3674
|
+
abrupt. Range is [0.0, 6.0]. */
|
|
3675
|
+
guidance?: number;
|
|
3676
|
+
/** Beats per minute. Range is [60, 200]. */
|
|
3677
|
+
bpm?: number;
|
|
3678
|
+
/** Density of sounds. Range is [0.0, 1.0]. */
|
|
3679
|
+
density?: number;
|
|
3680
|
+
/** Brightness of the music. Range is [0.0, 1.0]. */
|
|
3681
|
+
brightness?: number;
|
|
3682
|
+
/** Scale of the generated music. */
|
|
3683
|
+
scale?: Scale;
|
|
3684
|
+
/** Whether the audio output should contain bass. */
|
|
3685
|
+
muteBass?: boolean;
|
|
3686
|
+
/** Whether the audio output should contain drums. */
|
|
3687
|
+
muteDrums?: boolean;
|
|
3688
|
+
/** Whether the audio output should contain only bass and drums. */
|
|
3689
|
+
onlyBassAndDrums?: boolean;
|
|
3690
|
+
/** The mode of music generation. Default mode is QUALITY. */
|
|
3691
|
+
musicGenerationMode?: MusicGenerationMode;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
/** The playback control signal to apply to the music generation. */
|
|
3695
|
+
export declare enum LiveMusicPlaybackControl {
|
|
3696
|
+
/**
|
|
3697
|
+
* This value is unused.
|
|
3698
|
+
*/
|
|
3699
|
+
PLAYBACK_CONTROL_UNSPECIFIED = "PLAYBACK_CONTROL_UNSPECIFIED",
|
|
3700
|
+
/**
|
|
3701
|
+
* Start generating the music.
|
|
3702
|
+
*/
|
|
3703
|
+
PLAY = "PLAY",
|
|
3704
|
+
/**
|
|
3705
|
+
* Hold the music generation. Use PLAY to resume from the current position.
|
|
3706
|
+
*/
|
|
3707
|
+
PAUSE = "PAUSE",
|
|
3708
|
+
/**
|
|
3709
|
+
* Stop the music generation and reset the context (prompts retained).
|
|
3710
|
+
Use PLAY to restart the music generation.
|
|
3711
|
+
*/
|
|
3712
|
+
STOP = "STOP",
|
|
3713
|
+
/**
|
|
3714
|
+
* Reset the context of the music generation without stopping it.
|
|
3715
|
+
Retains the current prompts and config.
|
|
3716
|
+
*/
|
|
3717
|
+
RESET_CONTEXT = "RESET_CONTEXT"
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
/** Server update generated by the model in response to client messages.
|
|
3721
|
+
|
|
3722
|
+
Content is generated as quickly as possible, and not in real time.
|
|
3723
|
+
Clients may choose to buffer and play it out in real time.
|
|
3724
|
+
*/
|
|
3725
|
+
export declare interface LiveMusicServerContent {
|
|
3726
|
+
/** The audio chunks that the model has generated. */
|
|
3727
|
+
audioChunks?: AudioChunk[];
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
/** Response message for the LiveMusicClientMessage call. */
|
|
3731
|
+
export declare class LiveMusicServerMessage {
|
|
3732
|
+
/** Message sent in response to a `LiveMusicClientSetup` message from the client.
|
|
3733
|
+
Clients should wait for this message before sending any additional messages. */
|
|
3734
|
+
setupComplete?: LiveMusicServerSetupComplete;
|
|
3735
|
+
/** Content generated by the model in response to client messages. */
|
|
3736
|
+
serverContent?: LiveMusicServerContent;
|
|
3737
|
+
/** A prompt that was filtered with the reason. */
|
|
3738
|
+
filteredPrompt?: LiveMusicFilteredPrompt;
|
|
3739
|
+
/**
|
|
3740
|
+
* Returns the first audio chunk from the server content, if present.
|
|
3741
|
+
*
|
|
3742
|
+
* @remarks
|
|
3743
|
+
* If there are no audio chunks in the response, undefined will be returned.
|
|
3744
|
+
*/
|
|
3745
|
+
get audioChunk(): AudioChunk | undefined;
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
/** Sent in response to a `LiveMusicClientSetup` message from the client. */
|
|
3749
|
+
export declare interface LiveMusicServerSetupComplete {
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
Represents a connection to the API.
|
|
3754
|
+
|
|
3755
|
+
@experimental
|
|
3756
|
+
*/
|
|
3757
|
+
export declare class LiveMusicSession {
|
|
3758
|
+
readonly conn: WebSocket_2;
|
|
3759
|
+
private readonly apiClient;
|
|
3760
|
+
constructor(conn: WebSocket_2, apiClient: ApiClient);
|
|
3761
|
+
/**
|
|
3762
|
+
Sets inputs to steer music generation. Updates the session's current
|
|
3763
|
+
weighted prompts.
|
|
3764
|
+
|
|
3765
|
+
@param params - Contains one property, `weightedPrompts`.
|
|
3766
|
+
|
|
3767
|
+
- `weightedPrompts` to send to the model; weights are normalized to
|
|
3768
|
+
sum to 1.0.
|
|
3769
|
+
|
|
3770
|
+
@experimental
|
|
3771
|
+
*/
|
|
3772
|
+
setWeightedPrompts(params: types.LiveMusicSetWeightedPromptsParameters): Promise<void>;
|
|
3773
|
+
/**
|
|
3774
|
+
Sets a configuration to the model. Updates the session's current
|
|
3775
|
+
music generation config.
|
|
3776
|
+
|
|
3777
|
+
@param params - Contains one property, `musicGenerationConfig`.
|
|
3778
|
+
|
|
3779
|
+
- `musicGenerationConfig` to set in the model. Passing an empty or
|
|
3780
|
+
undefined config to the model will reset the config to defaults.
|
|
3781
|
+
|
|
3782
|
+
@experimental
|
|
3783
|
+
*/
|
|
3784
|
+
setMusicGenerationConfig(params: types.LiveMusicSetConfigParameters): Promise<void>;
|
|
3785
|
+
private sendPlaybackControl;
|
|
3786
|
+
/**
|
|
3787
|
+
* Start the music stream.
|
|
3788
|
+
*
|
|
3789
|
+
* @experimental
|
|
3790
|
+
*/
|
|
3791
|
+
play(): void;
|
|
3792
|
+
/**
|
|
3793
|
+
* Temporarily halt the music stream. Use `play` to resume from the current
|
|
3794
|
+
* position.
|
|
3795
|
+
*
|
|
3796
|
+
* @experimental
|
|
3797
|
+
*/
|
|
3798
|
+
pause(): void;
|
|
3799
|
+
/**
|
|
3800
|
+
* Stop the music stream and reset the state. Retains the current prompts
|
|
3801
|
+
* and config.
|
|
3802
|
+
*
|
|
3803
|
+
* @experimental
|
|
3804
|
+
*/
|
|
3805
|
+
stop(): void;
|
|
3806
|
+
/**
|
|
3807
|
+
* Resets the context of the music generation without stopping it.
|
|
3808
|
+
* Retains the current prompts and config.
|
|
3809
|
+
*
|
|
3810
|
+
* @experimental
|
|
3811
|
+
*/
|
|
3812
|
+
resetContext(): void;
|
|
3813
|
+
/**
|
|
3814
|
+
Terminates the WebSocket connection.
|
|
3815
|
+
|
|
3816
|
+
@experimental
|
|
3817
|
+
*/
|
|
3818
|
+
close(): void;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
/** Parameters for setting config for the live music API. */
|
|
3822
|
+
export declare interface LiveMusicSetConfigParameters {
|
|
3823
|
+
/** Configuration for music generation. */
|
|
3824
|
+
musicGenerationConfig: LiveMusicGenerationConfig;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/** Parameters for setting weighted prompts for the live music API. */
|
|
3828
|
+
export declare interface LiveMusicSetWeightedPromptsParameters {
|
|
3829
|
+
/** A map of text prompts to weights to use for the generation request. */
|
|
3830
|
+
weightedPrompts: WeightedPrompt[];
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
/** Prompts and config used for generating this audio chunk. */
|
|
3834
|
+
export declare interface LiveMusicSourceMetadata {
|
|
3835
|
+
/** Weighted prompts for generating this audio chunk. */
|
|
3836
|
+
clientContent?: LiveMusicClientContent;
|
|
3837
|
+
/** Music generation config for generating this audio chunk. */
|
|
3838
|
+
musicGenerationConfig?: LiveMusicGenerationConfig;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
/** Parameters for sending client content to the live API. */
|
|
3842
|
+
export declare interface LiveSendClientContentParameters {
|
|
3843
|
+
/** Client content to send to the session. */
|
|
3844
|
+
turns?: ContentListUnion;
|
|
3845
|
+
/** If true, indicates that the server content generation should start with
|
|
3846
|
+
the currently accumulated prompt. Otherwise, the server will await
|
|
3847
|
+
additional messages before starting generation. */
|
|
3848
|
+
turnComplete?: boolean;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
/** Parameters for sending realtime input to the live API. */
|
|
3852
|
+
export declare interface LiveSendRealtimeInputParameters {
|
|
3853
|
+
/** Realtime input to send to the session. */
|
|
3854
|
+
media?: BlobImageUnion;
|
|
3855
|
+
/** The realtime audio input stream. */
|
|
3856
|
+
audio?: Blob_2;
|
|
3857
|
+
/**
|
|
3128
3858
|
Indicates that the audio stream has ended, e.g. because the microphone was
|
|
3129
3859
|
turned off.
|
|
3130
3860
|
|
|
@@ -3182,6 +3912,8 @@ export declare interface LiveServerContent {
|
|
|
3182
3912
|
model turn.
|
|
3183
3913
|
*/
|
|
3184
3914
|
outputTranscription?: Transcription;
|
|
3915
|
+
/** Metadata related to url context retrieval tool. */
|
|
3916
|
+
urlContextMetadata?: UrlContextMetadata;
|
|
3185
3917
|
}
|
|
3186
3918
|
|
|
3187
3919
|
/** Server will not be able to service client soon. */
|
|
@@ -3331,29 +4063,83 @@ export declare enum MaskReferenceMode {
|
|
|
3331
4063
|
MASK_MODE_SEMANTIC = "MASK_MODE_SEMANTIC"
|
|
3332
4064
|
}
|
|
3333
4065
|
|
|
4066
|
+
/**
|
|
4067
|
+
* Creates a McpCallableTool from MCP clients and an optional config.
|
|
4068
|
+
*
|
|
4069
|
+
* The callable tool can invoke the MCP clients with given function call
|
|
4070
|
+
* arguments. (often for automatic function calling).
|
|
4071
|
+
* Use the config to modify tool parameters such as behavior.
|
|
4072
|
+
*
|
|
4073
|
+
* @experimental Built-in MCP support is an experimental feature, may change in future
|
|
4074
|
+
* versions.
|
|
4075
|
+
*/
|
|
4076
|
+
export declare function mcpToTool(...args: [...Client[], CallableToolConfig | Client]): CallableTool;
|
|
4077
|
+
|
|
3334
4078
|
/** Server content modalities. */
|
|
3335
4079
|
export declare enum MediaModality {
|
|
4080
|
+
/**
|
|
4081
|
+
* The modality is unspecified.
|
|
4082
|
+
*/
|
|
3336
4083
|
MODALITY_UNSPECIFIED = "MODALITY_UNSPECIFIED",
|
|
4084
|
+
/**
|
|
4085
|
+
* Plain text.
|
|
4086
|
+
*/
|
|
3337
4087
|
TEXT = "TEXT",
|
|
4088
|
+
/**
|
|
4089
|
+
* Images.
|
|
4090
|
+
*/
|
|
3338
4091
|
IMAGE = "IMAGE",
|
|
4092
|
+
/**
|
|
4093
|
+
* Video.
|
|
4094
|
+
*/
|
|
3339
4095
|
VIDEO = "VIDEO",
|
|
4096
|
+
/**
|
|
4097
|
+
* Audio.
|
|
4098
|
+
*/
|
|
3340
4099
|
AUDIO = "AUDIO",
|
|
4100
|
+
/**
|
|
4101
|
+
* Document, e.g. PDF.
|
|
4102
|
+
*/
|
|
3341
4103
|
DOCUMENT = "DOCUMENT"
|
|
3342
4104
|
}
|
|
3343
4105
|
|
|
3344
4106
|
/** The media resolution to use. */
|
|
3345
4107
|
export declare enum MediaResolution {
|
|
4108
|
+
/**
|
|
4109
|
+
* Media resolution has not been set
|
|
4110
|
+
*/
|
|
3346
4111
|
MEDIA_RESOLUTION_UNSPECIFIED = "MEDIA_RESOLUTION_UNSPECIFIED",
|
|
4112
|
+
/**
|
|
4113
|
+
* Media resolution set to low (64 tokens).
|
|
4114
|
+
*/
|
|
3347
4115
|
MEDIA_RESOLUTION_LOW = "MEDIA_RESOLUTION_LOW",
|
|
4116
|
+
/**
|
|
4117
|
+
* Media resolution set to medium (256 tokens).
|
|
4118
|
+
*/
|
|
3348
4119
|
MEDIA_RESOLUTION_MEDIUM = "MEDIA_RESOLUTION_MEDIUM",
|
|
4120
|
+
/**
|
|
4121
|
+
* Media resolution set to high (zoomed reframing with 256 tokens).
|
|
4122
|
+
*/
|
|
3349
4123
|
MEDIA_RESOLUTION_HIGH = "MEDIA_RESOLUTION_HIGH"
|
|
3350
4124
|
}
|
|
3351
4125
|
|
|
3352
4126
|
/** Server content modalities. */
|
|
3353
4127
|
export declare enum Modality {
|
|
4128
|
+
/**
|
|
4129
|
+
* The modality is unspecified.
|
|
4130
|
+
*/
|
|
3354
4131
|
MODALITY_UNSPECIFIED = "MODALITY_UNSPECIFIED",
|
|
4132
|
+
/**
|
|
4133
|
+
* Indicates the model should return text
|
|
4134
|
+
*/
|
|
3355
4135
|
TEXT = "TEXT",
|
|
4136
|
+
/**
|
|
4137
|
+
* Indicates the model should return images.
|
|
4138
|
+
*/
|
|
3356
4139
|
IMAGE = "IMAGE",
|
|
4140
|
+
/**
|
|
4141
|
+
* Indicates the model should return images.
|
|
4142
|
+
*/
|
|
3357
4143
|
AUDIO = "AUDIO"
|
|
3358
4144
|
}
|
|
3359
4145
|
|
|
@@ -3367,7 +4153,13 @@ export declare interface ModalityTokenCount {
|
|
|
3367
4153
|
|
|
3368
4154
|
/** The mode of the predictor to be used in dynamic retrieval. */
|
|
3369
4155
|
export declare enum Mode {
|
|
4156
|
+
/**
|
|
4157
|
+
* Always trigger retrieval.
|
|
4158
|
+
*/
|
|
3370
4159
|
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
4160
|
+
/**
|
|
4161
|
+
* Run retrieval only when system decides it is necessary.
|
|
4162
|
+
*/
|
|
3371
4163
|
MODE_DYNAMIC = "MODE_DYNAMIC"
|
|
3372
4164
|
}
|
|
3373
4165
|
|
|
@@ -3488,6 +4280,15 @@ export declare class Models extends BaseModule {
|
|
|
3488
4280
|
* ```
|
|
3489
4281
|
*/
|
|
3490
4282
|
generateContentStream: (params: types.GenerateContentParameters) => Promise<AsyncGenerator<types.GenerateContentResponse>>;
|
|
4283
|
+
/**
|
|
4284
|
+
* Transforms the CallableTools in the parameters to be simply Tools, it
|
|
4285
|
+
* copies the params into a new object and replaces the tools, it does not
|
|
4286
|
+
* modify the original params. Also sets the MCP usage header if there are
|
|
4287
|
+
* MCP tools in the parameters.
|
|
4288
|
+
*/
|
|
4289
|
+
private processParamsForMcpUsage;
|
|
4290
|
+
private initAfcToolsMap;
|
|
4291
|
+
private processAfcStream;
|
|
3491
4292
|
/**
|
|
3492
4293
|
* Generates an image based on a text description and configuration.
|
|
3493
4294
|
*
|
|
@@ -3705,6 +4506,30 @@ export declare interface ModelSelectionConfig {
|
|
|
3705
4506
|
featureSelectionPreference?: FeatureSelectionPreference;
|
|
3706
4507
|
}
|
|
3707
4508
|
|
|
4509
|
+
/** The configuration for the multi-speaker setup. */
|
|
4510
|
+
export declare interface MultiSpeakerVoiceConfig {
|
|
4511
|
+
/** The configuration for the speaker to use. */
|
|
4512
|
+
speakerVoiceConfigs?: SpeakerVoiceConfig[];
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
/** The mode of music generation. */
|
|
4516
|
+
export declare enum MusicGenerationMode {
|
|
4517
|
+
/**
|
|
4518
|
+
* This value is unused.
|
|
4519
|
+
*/
|
|
4520
|
+
MUSIC_GENERATION_MODE_UNSPECIFIED = "MUSIC_GENERATION_MODE_UNSPECIFIED",
|
|
4521
|
+
/**
|
|
4522
|
+
* Steer text prompts to regions of latent space with higher quality
|
|
4523
|
+
music.
|
|
4524
|
+
*/
|
|
4525
|
+
QUALITY = "QUALITY",
|
|
4526
|
+
/**
|
|
4527
|
+
* Steer text prompts to regions of latent space with a larger diversity
|
|
4528
|
+
of music.
|
|
4529
|
+
*/
|
|
4530
|
+
DIVERSITY = "DIVERSITY"
|
|
4531
|
+
}
|
|
4532
|
+
|
|
3708
4533
|
/** A long-running operation. */
|
|
3709
4534
|
export declare interface Operation {
|
|
3710
4535
|
/** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
|
|
@@ -3746,9 +4571,21 @@ export declare class Operations extends BaseModule {
|
|
|
3746
4571
|
*/
|
|
3747
4572
|
/** Required. Outcome of the code execution. */
|
|
3748
4573
|
export declare enum Outcome {
|
|
4574
|
+
/**
|
|
4575
|
+
* Unspecified status. This value should not be used.
|
|
4576
|
+
*/
|
|
3749
4577
|
OUTCOME_UNSPECIFIED = "OUTCOME_UNSPECIFIED",
|
|
4578
|
+
/**
|
|
4579
|
+
* Code execution completed successfully.
|
|
4580
|
+
*/
|
|
3750
4581
|
OUTCOME_OK = "OUTCOME_OK",
|
|
4582
|
+
/**
|
|
4583
|
+
* Code execution finished but with a failure. `stderr` should contain the reason.
|
|
4584
|
+
*/
|
|
3751
4585
|
OUTCOME_FAILED = "OUTCOME_FAILED",
|
|
4586
|
+
/**
|
|
4587
|
+
* Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
|
|
4588
|
+
*/
|
|
3752
4589
|
OUTCOME_DEADLINE_EXCEEDED = "OUTCOME_DEADLINE_EXCEEDED"
|
|
3753
4590
|
}
|
|
3754
4591
|
|
|
@@ -3929,11 +4766,18 @@ export declare enum PersonGeneration {
|
|
|
3929
4766
|
|
|
3930
4767
|
/** The configuration for the prebuilt speaker to use. */
|
|
3931
4768
|
export declare interface PrebuiltVoiceConfig {
|
|
3932
|
-
/** The name of the prebuilt voice to use.
|
|
3933
|
-
*/
|
|
4769
|
+
/** The name of the prebuilt voice to use. */
|
|
3934
4770
|
voiceName?: string;
|
|
3935
4771
|
}
|
|
3936
4772
|
|
|
4773
|
+
/** Config for proactivity features. */
|
|
4774
|
+
export declare interface ProactivityConfig {
|
|
4775
|
+
/** If enabled, the model can reject responding to the last prompt. For
|
|
4776
|
+
example, this allows the model to ignore out of context speech or to stay
|
|
4777
|
+
silent if the user did not make a request, yet. */
|
|
4778
|
+
proactiveAudio?: boolean;
|
|
4779
|
+
}
|
|
4780
|
+
|
|
3937
4781
|
/** Specifies the context retrieval config. */
|
|
3938
4782
|
export declare interface RagRetrievalConfig {
|
|
3939
4783
|
/** Optional. Config for filters. */
|
|
@@ -4114,6 +4958,62 @@ export declare interface SafetySetting {
|
|
|
4114
4958
|
threshold?: HarmBlockThreshold;
|
|
4115
4959
|
}
|
|
4116
4960
|
|
|
4961
|
+
/** Scale of the generated music. */
|
|
4962
|
+
export declare enum Scale {
|
|
4963
|
+
/**
|
|
4964
|
+
* Default value. This value is unused.
|
|
4965
|
+
*/
|
|
4966
|
+
SCALE_UNSPECIFIED = "SCALE_UNSPECIFIED",
|
|
4967
|
+
/**
|
|
4968
|
+
* C major or A minor.
|
|
4969
|
+
*/
|
|
4970
|
+
C_MAJOR_A_MINOR = "C_MAJOR_A_MINOR",
|
|
4971
|
+
/**
|
|
4972
|
+
* Db major or Bb minor.
|
|
4973
|
+
*/
|
|
4974
|
+
D_FLAT_MAJOR_B_FLAT_MINOR = "D_FLAT_MAJOR_B_FLAT_MINOR",
|
|
4975
|
+
/**
|
|
4976
|
+
* D major or B minor.
|
|
4977
|
+
*/
|
|
4978
|
+
D_MAJOR_B_MINOR = "D_MAJOR_B_MINOR",
|
|
4979
|
+
/**
|
|
4980
|
+
* Eb major or C minor
|
|
4981
|
+
*/
|
|
4982
|
+
E_FLAT_MAJOR_C_MINOR = "E_FLAT_MAJOR_C_MINOR",
|
|
4983
|
+
/**
|
|
4984
|
+
* E major or Db minor.
|
|
4985
|
+
*/
|
|
4986
|
+
E_MAJOR_D_FLAT_MINOR = "E_MAJOR_D_FLAT_MINOR",
|
|
4987
|
+
/**
|
|
4988
|
+
* F major or D minor.
|
|
4989
|
+
*/
|
|
4990
|
+
F_MAJOR_D_MINOR = "F_MAJOR_D_MINOR",
|
|
4991
|
+
/**
|
|
4992
|
+
* Gb major or Eb minor.
|
|
4993
|
+
*/
|
|
4994
|
+
G_FLAT_MAJOR_E_FLAT_MINOR = "G_FLAT_MAJOR_E_FLAT_MINOR",
|
|
4995
|
+
/**
|
|
4996
|
+
* G major or E minor.
|
|
4997
|
+
*/
|
|
4998
|
+
G_MAJOR_E_MINOR = "G_MAJOR_E_MINOR",
|
|
4999
|
+
/**
|
|
5000
|
+
* Ab major or F minor.
|
|
5001
|
+
*/
|
|
5002
|
+
A_FLAT_MAJOR_F_MINOR = "A_FLAT_MAJOR_F_MINOR",
|
|
5003
|
+
/**
|
|
5004
|
+
* A major or Gb minor.
|
|
5005
|
+
*/
|
|
5006
|
+
A_MAJOR_G_FLAT_MINOR = "A_MAJOR_G_FLAT_MINOR",
|
|
5007
|
+
/**
|
|
5008
|
+
* Bb major or G minor.
|
|
5009
|
+
*/
|
|
5010
|
+
B_FLAT_MAJOR_G_MINOR = "B_FLAT_MAJOR_G_MINOR",
|
|
5011
|
+
/**
|
|
5012
|
+
* B major or Ab minor.
|
|
5013
|
+
*/
|
|
5014
|
+
B_MAJOR_A_FLAT_MINOR = "B_MAJOR_A_FLAT_MINOR"
|
|
5015
|
+
}
|
|
5016
|
+
|
|
4117
5017
|
/** Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed. */
|
|
4118
5018
|
export declare interface Schema {
|
|
4119
5019
|
/** Optional. The value should be validated against any (one or more) of the subschemas in the list. */
|
|
@@ -4162,7 +5062,7 @@ export declare interface Schema {
|
|
|
4162
5062
|
type?: Type;
|
|
4163
5063
|
}
|
|
4164
5064
|
|
|
4165
|
-
export declare type SchemaUnion = Schema;
|
|
5065
|
+
export declare type SchemaUnion = Schema | unknown;
|
|
4166
5066
|
|
|
4167
5067
|
/** Google search entry point. */
|
|
4168
5068
|
export declare interface SearchEntryPoint {
|
|
@@ -4378,11 +5278,24 @@ export declare interface SlidingWindow {
|
|
|
4378
5278
|
targetTokens?: string;
|
|
4379
5279
|
}
|
|
4380
5280
|
|
|
5281
|
+
/** The configuration for the speaker to use. */
|
|
5282
|
+
export declare interface SpeakerVoiceConfig {
|
|
5283
|
+
/** The name of the speaker to use. Should be the same as in the
|
|
5284
|
+
prompt. */
|
|
5285
|
+
speaker?: string;
|
|
5286
|
+
/** The configuration for the voice to use. */
|
|
5287
|
+
voiceConfig?: VoiceConfig;
|
|
5288
|
+
}
|
|
5289
|
+
|
|
4381
5290
|
/** The speech generation configuration. */
|
|
4382
5291
|
export declare interface SpeechConfig {
|
|
4383
5292
|
/** The configuration for the speaker to use.
|
|
4384
5293
|
*/
|
|
4385
5294
|
voiceConfig?: VoiceConfig;
|
|
5295
|
+
/** The configuration for the multi-speaker setup.
|
|
5296
|
+
It is mutually exclusive with the voice_config field.
|
|
5297
|
+
*/
|
|
5298
|
+
multiSpeakerVoiceConfig?: MultiSpeakerVoiceConfig;
|
|
4386
5299
|
/** Language code (ISO 639. e.g. en-US) for the speech synthesization.
|
|
4387
5300
|
Only available for Live API.
|
|
4388
5301
|
*/
|
|
@@ -4393,8 +5306,17 @@ export declare type SpeechConfigUnion = SpeechConfig | string;
|
|
|
4393
5306
|
|
|
4394
5307
|
/** Start of speech sensitivity. */
|
|
4395
5308
|
export declare enum StartSensitivity {
|
|
5309
|
+
/**
|
|
5310
|
+
* The default is START_SENSITIVITY_LOW.
|
|
5311
|
+
*/
|
|
4396
5312
|
START_SENSITIVITY_UNSPECIFIED = "START_SENSITIVITY_UNSPECIFIED",
|
|
5313
|
+
/**
|
|
5314
|
+
* Automatic detection will detect the start of speech more often.
|
|
5315
|
+
*/
|
|
4397
5316
|
START_SENSITIVITY_HIGH = "START_SENSITIVITY_HIGH",
|
|
5317
|
+
/**
|
|
5318
|
+
* Automatic detection will detect the start of speech less often.
|
|
5319
|
+
*/
|
|
4398
5320
|
START_SENSITIVITY_LOW = "START_SENSITIVITY_LOW"
|
|
4399
5321
|
}
|
|
4400
5322
|
|
|
@@ -4589,6 +5511,8 @@ export declare interface TokensInfo {
|
|
|
4589
5511
|
|
|
4590
5512
|
/** Tool details of a tool that the model may use to generate a response. */
|
|
4591
5513
|
export declare interface Tool {
|
|
5514
|
+
/** List of function declarations that the tool supports. */
|
|
5515
|
+
functionDeclarations?: FunctionDeclaration[];
|
|
4592
5516
|
/** Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. */
|
|
4593
5517
|
retrieval?: Retrieval;
|
|
4594
5518
|
/** Optional. Google Search tool type. Specialized retrieval tool
|
|
@@ -4602,10 +5526,10 @@ export declare interface Tool {
|
|
|
4602
5526
|
/** Optional. Google Maps tool type. Specialized retrieval tool
|
|
4603
5527
|
that is powered by Google Maps. */
|
|
4604
5528
|
googleMaps?: GoogleMaps;
|
|
5529
|
+
/** Optional. Tool to support URL context retrieval. */
|
|
5530
|
+
urlContext?: UrlContext;
|
|
4605
5531
|
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services. */
|
|
4606
5532
|
codeExecution?: ToolCodeExecution;
|
|
4607
|
-
/** Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided. */
|
|
4608
|
-
functionDeclarations?: FunctionDeclaration[];
|
|
4609
5533
|
}
|
|
4610
5534
|
|
|
4611
5535
|
/** Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool. */
|
|
@@ -4623,12 +5547,23 @@ export declare interface ToolConfig {
|
|
|
4623
5547
|
retrievalConfig?: RetrievalConfig;
|
|
4624
5548
|
}
|
|
4625
5549
|
|
|
4626
|
-
export declare type ToolListUnion =
|
|
5550
|
+
export declare type ToolListUnion = ToolUnion[];
|
|
5551
|
+
|
|
5552
|
+
export declare type ToolUnion = Tool | CallableTool;
|
|
4627
5553
|
|
|
4628
5554
|
/** Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota. */
|
|
4629
5555
|
export declare enum TrafficType {
|
|
5556
|
+
/**
|
|
5557
|
+
* Unspecified request traffic type.
|
|
5558
|
+
*/
|
|
4630
5559
|
TRAFFIC_TYPE_UNSPECIFIED = "TRAFFIC_TYPE_UNSPECIFIED",
|
|
5560
|
+
/**
|
|
5561
|
+
* Type for Pay-As-You-Go traffic.
|
|
5562
|
+
*/
|
|
4631
5563
|
ON_DEMAND = "ON_DEMAND",
|
|
5564
|
+
/**
|
|
5565
|
+
* Type for Provisioned Throughput traffic.
|
|
5566
|
+
*/
|
|
4632
5567
|
PROVISIONED_THROUGHPUT = "PROVISIONED_THROUGHPUT"
|
|
4633
5568
|
}
|
|
4634
5569
|
|
|
@@ -4791,19 +5726,49 @@ export declare interface TuningValidationDataset {
|
|
|
4791
5726
|
|
|
4792
5727
|
/** Options about which input is included in the user's turn. */
|
|
4793
5728
|
export declare enum TurnCoverage {
|
|
5729
|
+
/**
|
|
5730
|
+
* If unspecified, the default behavior is `TURN_INCLUDES_ONLY_ACTIVITY`.
|
|
5731
|
+
*/
|
|
4794
5732
|
TURN_COVERAGE_UNSPECIFIED = "TURN_COVERAGE_UNSPECIFIED",
|
|
5733
|
+
/**
|
|
5734
|
+
* The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream). This is the default behavior.
|
|
5735
|
+
*/
|
|
4795
5736
|
TURN_INCLUDES_ONLY_ACTIVITY = "TURN_INCLUDES_ONLY_ACTIVITY",
|
|
5737
|
+
/**
|
|
5738
|
+
* The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
|
|
5739
|
+
*/
|
|
4796
5740
|
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
|
|
4797
5741
|
}
|
|
4798
5742
|
|
|
4799
5743
|
/** Optional. The type of the data. */
|
|
4800
5744
|
export declare enum Type {
|
|
5745
|
+
/**
|
|
5746
|
+
* Not specified, should not be used.
|
|
5747
|
+
*/
|
|
4801
5748
|
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
5749
|
+
/**
|
|
5750
|
+
* OpenAPI string type
|
|
5751
|
+
*/
|
|
4802
5752
|
STRING = "STRING",
|
|
5753
|
+
/**
|
|
5754
|
+
* OpenAPI number type
|
|
5755
|
+
*/
|
|
4803
5756
|
NUMBER = "NUMBER",
|
|
5757
|
+
/**
|
|
5758
|
+
* OpenAPI integer type
|
|
5759
|
+
*/
|
|
4804
5760
|
INTEGER = "INTEGER",
|
|
5761
|
+
/**
|
|
5762
|
+
* OpenAPI boolean type
|
|
5763
|
+
*/
|
|
4805
5764
|
BOOLEAN = "BOOLEAN",
|
|
5765
|
+
/**
|
|
5766
|
+
* OpenAPI array type
|
|
5767
|
+
*/
|
|
4806
5768
|
ARRAY = "ARRAY",
|
|
5769
|
+
/**
|
|
5770
|
+
* OpenAPI object type
|
|
5771
|
+
*/
|
|
4807
5772
|
OBJECT = "OBJECT"
|
|
4808
5773
|
}
|
|
4809
5774
|
|
|
@@ -4823,9 +5788,9 @@ declare namespace types {
|
|
|
4823
5788
|
HarmCategory,
|
|
4824
5789
|
HarmBlockMethod,
|
|
4825
5790
|
HarmBlockThreshold,
|
|
5791
|
+
Type,
|
|
4826
5792
|
Mode,
|
|
4827
5793
|
AuthType,
|
|
4828
|
-
Type,
|
|
4829
5794
|
FinishReason,
|
|
4830
5795
|
HarmProbability,
|
|
4831
5796
|
HarmSeverity,
|
|
@@ -4836,8 +5801,10 @@ declare namespace types {
|
|
|
4836
5801
|
JobState,
|
|
4837
5802
|
AdapterSize,
|
|
4838
5803
|
FeatureSelectionPreference,
|
|
5804
|
+
Behavior,
|
|
4839
5805
|
DynamicRetrievalConfigMode,
|
|
4840
5806
|
FunctionCallingConfigMode,
|
|
5807
|
+
UrlRetrievalStatus,
|
|
4841
5808
|
SafetyFilterLevel,
|
|
4842
5809
|
PersonGeneration,
|
|
4843
5810
|
ImagePromptLanguage,
|
|
@@ -4852,8 +5819,12 @@ declare namespace types {
|
|
|
4852
5819
|
EndSensitivity,
|
|
4853
5820
|
ActivityHandling,
|
|
4854
5821
|
TurnCoverage,
|
|
4855
|
-
|
|
5822
|
+
FunctionResponseScheduling,
|
|
5823
|
+
Scale,
|
|
5824
|
+
MusicGenerationMode,
|
|
5825
|
+
LiveMusicPlaybackControl,
|
|
4856
5826
|
VideoMetadata,
|
|
5827
|
+
Blob_2 as Blob,
|
|
4857
5828
|
CodeExecutionResult,
|
|
4858
5829
|
ExecutableCode,
|
|
4859
5830
|
FileData,
|
|
@@ -4864,6 +5835,9 @@ declare namespace types {
|
|
|
4864
5835
|
HttpOptions,
|
|
4865
5836
|
ModelSelectionConfig,
|
|
4866
5837
|
SafetySetting,
|
|
5838
|
+
Schema,
|
|
5839
|
+
FunctionDeclaration,
|
|
5840
|
+
Interval,
|
|
4867
5841
|
GoogleSearch,
|
|
4868
5842
|
DynamicRetrievalConfig,
|
|
4869
5843
|
GoogleSearchRetrieval,
|
|
@@ -4875,6 +5849,7 @@ declare namespace types {
|
|
|
4875
5849
|
AuthConfigOidcConfig,
|
|
4876
5850
|
AuthConfig,
|
|
4877
5851
|
GoogleMaps,
|
|
5852
|
+
UrlContext,
|
|
4878
5853
|
VertexAISearch,
|
|
4879
5854
|
VertexRagStoreRagResource,
|
|
4880
5855
|
RagRetrievalConfigFilter,
|
|
@@ -4886,8 +5861,6 @@ declare namespace types {
|
|
|
4886
5861
|
VertexRagStore,
|
|
4887
5862
|
Retrieval,
|
|
4888
5863
|
ToolCodeExecution,
|
|
4889
|
-
Schema,
|
|
4890
|
-
FunctionDeclaration,
|
|
4891
5864
|
Tool,
|
|
4892
5865
|
FunctionCallingConfig,
|
|
4893
5866
|
LatLng,
|
|
@@ -4895,7 +5868,10 @@ declare namespace types {
|
|
|
4895
5868
|
ToolConfig,
|
|
4896
5869
|
PrebuiltVoiceConfig,
|
|
4897
5870
|
VoiceConfig,
|
|
5871
|
+
SpeakerVoiceConfig,
|
|
5872
|
+
MultiSpeakerVoiceConfig,
|
|
4898
5873
|
SpeechConfig,
|
|
5874
|
+
AutomaticFunctionCallingConfig,
|
|
4899
5875
|
ThinkingConfig,
|
|
4900
5876
|
GenerationConfigRoutingConfigAutoRoutingMode,
|
|
4901
5877
|
GenerationConfigRoutingConfigManualRoutingMode,
|
|
@@ -4905,6 +5881,8 @@ declare namespace types {
|
|
|
4905
5881
|
GoogleTypeDate,
|
|
4906
5882
|
Citation,
|
|
4907
5883
|
CitationMetadata,
|
|
5884
|
+
UrlMetadata,
|
|
5885
|
+
UrlContextMetadata,
|
|
4908
5886
|
GroundingChunkRetrievedContext,
|
|
4909
5887
|
GroundingChunkWeb,
|
|
4910
5888
|
GroundingChunk,
|
|
@@ -5023,7 +6001,6 @@ declare namespace types {
|
|
|
5023
6001
|
CreateFileParameters,
|
|
5024
6002
|
HttpResponse,
|
|
5025
6003
|
LiveCallbacks,
|
|
5026
|
-
UploadFileParameters,
|
|
5027
6004
|
CreateFileResponse,
|
|
5028
6005
|
GetFileConfig,
|
|
5029
6006
|
GetFileParameters,
|
|
@@ -5065,6 +6042,7 @@ declare namespace types {
|
|
|
5065
6042
|
SlidingWindow,
|
|
5066
6043
|
ContextWindowCompressionConfig,
|
|
5067
6044
|
AudioTranscriptionConfig,
|
|
6045
|
+
ProactivityConfig,
|
|
5068
6046
|
LiveClientSetup,
|
|
5069
6047
|
LiveClientContent,
|
|
5070
6048
|
ActivityStart,
|
|
@@ -5079,6 +6057,26 @@ declare namespace types {
|
|
|
5079
6057
|
SendMessageParameters,
|
|
5080
6058
|
LiveSendClientContentParameters,
|
|
5081
6059
|
LiveSendToolResponseParameters,
|
|
6060
|
+
LiveMusicClientSetup,
|
|
6061
|
+
WeightedPrompt,
|
|
6062
|
+
LiveMusicClientContent,
|
|
6063
|
+
LiveMusicGenerationConfig,
|
|
6064
|
+
LiveMusicClientMessage,
|
|
6065
|
+
LiveMusicServerSetupComplete,
|
|
6066
|
+
LiveMusicSourceMetadata,
|
|
6067
|
+
AudioChunk,
|
|
6068
|
+
LiveMusicServerContent,
|
|
6069
|
+
LiveMusicFilteredPrompt,
|
|
6070
|
+
LiveMusicServerMessage,
|
|
6071
|
+
LiveMusicCallbacks,
|
|
6072
|
+
UploadFileParameters,
|
|
6073
|
+
CallableTool,
|
|
6074
|
+
CallableToolConfig,
|
|
6075
|
+
LiveMusicConnectParameters,
|
|
6076
|
+
LiveMusicSetConfigParameters,
|
|
6077
|
+
LiveMusicSetWeightedPromptsParameters,
|
|
6078
|
+
LiveEphemeralParameters,
|
|
6079
|
+
CreateAuthTokenConfig,
|
|
5082
6080
|
OperationGetParameters,
|
|
5083
6081
|
BlobImageUnion,
|
|
5084
6082
|
PartUnion,
|
|
@@ -5087,6 +6085,7 @@ declare namespace types {
|
|
|
5087
6085
|
ContentListUnion,
|
|
5088
6086
|
SchemaUnion,
|
|
5089
6087
|
SpeechConfigUnion,
|
|
6088
|
+
ToolUnion,
|
|
5090
6089
|
ToolListUnion,
|
|
5091
6090
|
DownloadableFileUnion
|
|
5092
6091
|
}
|
|
@@ -5233,6 +6232,40 @@ export declare class UpscaleImageResponse {
|
|
|
5233
6232
|
generatedImages?: GeneratedImage[];
|
|
5234
6233
|
}
|
|
5235
6234
|
|
|
6235
|
+
/** Tool to support URL context retrieval. */
|
|
6236
|
+
export declare interface UrlContext {
|
|
6237
|
+
}
|
|
6238
|
+
|
|
6239
|
+
/** Metadata related to url context retrieval tool. */
|
|
6240
|
+
export declare interface UrlContextMetadata {
|
|
6241
|
+
/** List of url context. */
|
|
6242
|
+
urlMetadata?: UrlMetadata[];
|
|
6243
|
+
}
|
|
6244
|
+
|
|
6245
|
+
/** Context for a single url retrieval. */
|
|
6246
|
+
export declare interface UrlMetadata {
|
|
6247
|
+
/** The URL retrieved by the tool. */
|
|
6248
|
+
retrievedUrl?: string;
|
|
6249
|
+
/** Status of the url retrieval. */
|
|
6250
|
+
urlRetrievalStatus?: UrlRetrievalStatus;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6253
|
+
/** Status of the url retrieval. */
|
|
6254
|
+
export declare enum UrlRetrievalStatus {
|
|
6255
|
+
/**
|
|
6256
|
+
* Default value. This value is unused
|
|
6257
|
+
*/
|
|
6258
|
+
URL_RETRIEVAL_STATUS_UNSPECIFIED = "URL_RETRIEVAL_STATUS_UNSPECIFIED",
|
|
6259
|
+
/**
|
|
6260
|
+
* Url retrieval is successful.
|
|
6261
|
+
*/
|
|
6262
|
+
URL_RETRIEVAL_STATUS_SUCCESS = "URL_RETRIEVAL_STATUS_SUCCESS",
|
|
6263
|
+
/**
|
|
6264
|
+
* Url retrieval is failed due to error.
|
|
6265
|
+
*/
|
|
6266
|
+
URL_RETRIEVAL_STATUS_ERROR = "URL_RETRIEVAL_STATUS_ERROR"
|
|
6267
|
+
}
|
|
6268
|
+
|
|
5236
6269
|
/** Usage metadata about response(s). */
|
|
5237
6270
|
export declare interface UsageMetadata {
|
|
5238
6271
|
/** Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. */
|
|
@@ -5300,8 +6333,11 @@ export declare interface Video {
|
|
|
5300
6333
|
mimeType?: string;
|
|
5301
6334
|
}
|
|
5302
6335
|
|
|
5303
|
-
/**
|
|
6336
|
+
/** Describes how the video in the Part should be used by the model. */
|
|
5304
6337
|
export declare interface VideoMetadata {
|
|
6338
|
+
/** The frame rate of the video sent to the model. If not specified, the
|
|
6339
|
+
default value will be 1.0. The fps range is (0.0, 24.0]. */
|
|
6340
|
+
fps?: number;
|
|
5305
6341
|
/** Optional. The end offset of the video. */
|
|
5306
6342
|
endOffset?: string;
|
|
5307
6343
|
/** Optional. The start offset of the video. */
|
|
@@ -5349,4 +6385,17 @@ declare interface WebSocketFactory {
|
|
|
5349
6385
|
create(url: string, headers: Record<string, string>, callbacks: WebSocketCallbacks): WebSocket_2;
|
|
5350
6386
|
}
|
|
5351
6387
|
|
|
6388
|
+
/** Maps a prompt to a relative weight to steer music generation. */
|
|
6389
|
+
export declare interface WeightedPrompt {
|
|
6390
|
+
/** Text prompt. */
|
|
6391
|
+
text?: string;
|
|
6392
|
+
/** Weight of the prompt. The weight is used to control the relative
|
|
6393
|
+
importance of the prompt. Higher weights are more important than lower
|
|
6394
|
+
weights.
|
|
6395
|
+
|
|
6396
|
+
Weight must not be 0. Weights of all weighted_prompts in this
|
|
6397
|
+
LiveMusicClientContent message will be normalized. */
|
|
6398
|
+
weight?: number;
|
|
6399
|
+
}
|
|
6400
|
+
|
|
5352
6401
|
export { }
|