@google/genai 2.11.0 → 2.12.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 +666 -25
- package/dist/index.cjs +848 -100
- package/dist/index.mjs +848 -100
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +913 -165
- package/dist/node/index.mjs +913 -165
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +666 -25
- 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 +16 -0
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +913 -165
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +666 -25
- package/package.json +1 -1
|
@@ -1087,6 +1087,9 @@ declare interface ContentEmbeddingStatistics {
|
|
|
1087
1087
|
/** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
|
|
1088
1088
|
*/
|
|
1089
1089
|
tokenCount?: number;
|
|
1090
|
+
/** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
|
|
1091
|
+
*/
|
|
1092
|
+
tokensDetails?: ModalityTokenCount[];
|
|
1090
1093
|
}
|
|
1091
1094
|
|
|
1092
1095
|
declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
|
|
@@ -4044,6 +4047,16 @@ declare enum HarmSeverity {
|
|
|
4044
4047
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
4045
4048
|
}
|
|
4046
4049
|
|
|
4050
|
+
/** Configuration for history exchange between client and server. */
|
|
4051
|
+
declare interface HistoryConfig {
|
|
4052
|
+
/** If true, after sending `setup_complete`, the server will wait
|
|
4053
|
+
and at first process `client_content` messages until `turn_complete` is
|
|
4054
|
+
`true`. This initial history will not trigger a model call and
|
|
4055
|
+
may end with model content. After `turn_complete` is `true`, the client
|
|
4056
|
+
can start the realtime conversation via `realtime_input`. */
|
|
4057
|
+
initialHistoryInClientContent?: boolean;
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4047
4060
|
/** The location of the API key. This enum is not supported in Gemini API. */
|
|
4048
4061
|
declare enum HttpElementLocation {
|
|
4049
4062
|
HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
|
|
@@ -4849,6 +4862,8 @@ declare interface LiveClientSetup {
|
|
|
4849
4862
|
response.
|
|
4850
4863
|
*/
|
|
4851
4864
|
safetySettings?: SafetySetting[];
|
|
4865
|
+
/** Configures the exchange of history between the client and the server. */
|
|
4866
|
+
historyConfig?: HistoryConfig;
|
|
4852
4867
|
}
|
|
4853
4868
|
|
|
4854
4869
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -8341,6 +8356,7 @@ declare namespace types {
|
|
|
8341
8356
|
LanguageHints,
|
|
8342
8357
|
AudioTranscriptionConfig,
|
|
8343
8358
|
ProactivityConfig,
|
|
8359
|
+
HistoryConfig,
|
|
8344
8360
|
CustomizedAvatar,
|
|
8345
8361
|
AvatarConfig,
|
|
8346
8362
|
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.12.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';
|