@google/genai 2.1.0 → 2.2.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 +12 -1
- package/dist/index.cjs +188 -188
- package/dist/index.mjs +188 -188
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +188 -188
- package/dist/node/index.mjs +188 -188
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +12 -1
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +188 -188
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +12 -1
- package/package.json +1 -1
package/dist/node/node.d.ts
CHANGED
|
@@ -9974,7 +9974,7 @@ export declare enum StartSensitivity {
|
|
|
9974
9974
|
declare type Step = UserInputStep | ModelOutputStep | ThoughtStep | FunctionCallStep | CodeExecutionCallStep | URLContextCallStep | MCPServerToolCallStep | GoogleSearchCallStep | FileSearchCallStep | GoogleMapsCallStep | FunctionResultStep | CodeExecutionResultStep | URLContextResultStep | GoogleSearchResultStep | MCPServerToolResultStep | FileSearchResultStep | GoogleMapsResultStep;
|
|
9975
9975
|
|
|
9976
9976
|
declare interface StepDelta {
|
|
9977
|
-
delta: StepDelta.Text | StepDelta.Image | StepDelta.Audio | StepDelta.Document | StepDelta.Video | StepDelta.ThoughtSummary | StepDelta.ThoughtSignature | StepDelta.TextAnnotationDelta | StepDelta.ArgumentsDelta | StepDelta.CodeExecutionCall | StepDelta.URLContextCall | StepDelta.GoogleSearchCall | StepDelta.MCPServerToolCall | StepDelta.FileSearchCall | StepDelta.GoogleMapsCall | StepDelta.CodeExecutionResult | StepDelta.URLContextResult | StepDelta.GoogleSearchResult | StepDelta.MCPServerToolResult | StepDelta.FileSearchResult | StepDelta.GoogleMapsResult;
|
|
9977
|
+
delta: StepDelta.Text | StepDelta.Image | StepDelta.Audio | StepDelta.Document | StepDelta.Video | StepDelta.ThoughtSummary | StepDelta.ThoughtSignature | StepDelta.TextAnnotationDelta | StepDelta.ArgumentsDelta | StepDelta.CodeExecutionCall | StepDelta.URLContextCall | StepDelta.GoogleSearchCall | StepDelta.MCPServerToolCall | StepDelta.FileSearchCall | StepDelta.GoogleMapsCall | StepDelta.CodeExecutionResult | StepDelta.URLContextResult | StepDelta.GoogleSearchResult | StepDelta.MCPServerToolResult | StepDelta.FileSearchResult | StepDelta.GoogleMapsResult | StepDelta.FunctionResult;
|
|
9978
9978
|
event_type: 'step.delta';
|
|
9979
9979
|
index: number;
|
|
9980
9980
|
/**
|
|
@@ -10055,6 +10055,7 @@ declare namespace StepDelta {
|
|
|
10055
10055
|
}
|
|
10056
10056
|
interface ArgumentsDelta {
|
|
10057
10057
|
type: 'arguments_delta';
|
|
10058
|
+
arguments?: string;
|
|
10058
10059
|
}
|
|
10059
10060
|
interface CodeExecutionCall {
|
|
10060
10061
|
/**
|
|
@@ -10175,6 +10176,16 @@ declare namespace StepDelta {
|
|
|
10175
10176
|
*/
|
|
10176
10177
|
signature?: string;
|
|
10177
10178
|
}
|
|
10179
|
+
interface FunctionResult {
|
|
10180
|
+
/**
|
|
10181
|
+
* Required. ID to match the ID from the function call block.
|
|
10182
|
+
*/
|
|
10183
|
+
call_id: string;
|
|
10184
|
+
result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
|
|
10185
|
+
type: 'function_result';
|
|
10186
|
+
is_error?: boolean;
|
|
10187
|
+
name?: string;
|
|
10188
|
+
}
|
|
10178
10189
|
}
|
|
10179
10190
|
|
|
10180
10191
|
declare interface StepStart {
|
|
@@ -2071,7 +2071,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2071
2071
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2072
2072
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2073
2073
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2074
|
-
const SDK_VERSION = '2.
|
|
2074
|
+
const SDK_VERSION = '2.2.0'; // x-release-please-version
|
|
2075
2075
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2076
2076
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2077
2077
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|