@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
|
@@ -404,7 +404,9 @@ declare interface AudioTranscriptionConfig {
|
|
|
404
404
|
languageAuto?: LanguageAuto;
|
|
405
405
|
/** Specifies one or more languages in the audio. Do not use together with LanguageAuto. */
|
|
406
406
|
languageHints?: LanguageHints;
|
|
407
|
-
/** A list of
|
|
407
|
+
/** A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms. */
|
|
408
|
+
customVocabulary?: string[];
|
|
409
|
+
/** Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. */
|
|
408
410
|
adaptationPhrases?: string[];
|
|
409
411
|
}
|
|
410
412
|
|
|
@@ -1087,6 +1089,9 @@ declare interface ContentEmbeddingStatistics {
|
|
|
1087
1089
|
/** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
|
|
1088
1090
|
*/
|
|
1089
1091
|
tokenCount?: number;
|
|
1092
|
+
/** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
|
|
1093
|
+
*/
|
|
1094
|
+
tokensDetails?: ModalityTokenCount[];
|
|
1090
1095
|
}
|
|
1091
1096
|
|
|
1092
1097
|
declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
|
|
@@ -4044,6 +4049,16 @@ declare enum HarmSeverity {
|
|
|
4044
4049
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
4045
4050
|
}
|
|
4046
4051
|
|
|
4052
|
+
/** Configuration for history exchange between client and server. */
|
|
4053
|
+
declare interface HistoryConfig {
|
|
4054
|
+
/** If true, after sending `setup_complete`, the server will wait
|
|
4055
|
+
and at first process `client_content` messages until `turn_complete` is
|
|
4056
|
+
`true`. This initial history will not trigger a model call and
|
|
4057
|
+
may end with model content. After `turn_complete` is `true`, the client
|
|
4058
|
+
can start the realtime conversation via `realtime_input`. */
|
|
4059
|
+
initialHistoryInClientContent?: boolean;
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4047
4062
|
/** The location of the API key. This enum is not supported in Gemini API. */
|
|
4048
4063
|
declare enum HttpElementLocation {
|
|
4049
4064
|
HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
|
|
@@ -4849,6 +4864,8 @@ declare interface LiveClientSetup {
|
|
|
4849
4864
|
response.
|
|
4850
4865
|
*/
|
|
4851
4866
|
safetySettings?: SafetySetting[];
|
|
4867
|
+
/** Configures the exchange of history between the client and the server. */
|
|
4868
|
+
historyConfig?: HistoryConfig;
|
|
4852
4869
|
}
|
|
4853
4870
|
|
|
4854
4871
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -8341,6 +8358,7 @@ declare namespace types {
|
|
|
8341
8358
|
LanguageHints,
|
|
8342
8359
|
AudioTranscriptionConfig,
|
|
8343
8360
|
ProactivityConfig,
|
|
8361
|
+
HistoryConfig,
|
|
8344
8362
|
CustomizedAvatar,
|
|
8345
8363
|
AvatarConfig,
|
|
8346
8364
|
LiveClientSetup,
|
|
@@ -2286,7 +2286,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2286
2286
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2287
2287
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2288
2288
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2289
|
-
const SDK_VERSION = '2.
|
|
2289
|
+
const SDK_VERSION = '2.13.0'; // x-release-please-version
|
|
2290
2290
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2291
2291
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2292
2292
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|