@google/genai 1.5.0 → 1.5.1
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/index.cjs +6 -8
- package/dist/index.mjs +6 -8
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +5 -5
- package/dist/node/index.mjs +5 -5
- package/dist/node/index.mjs.map +1 -1
- package/dist/web/index.mjs +5 -8
- package/dist/web/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/web/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @license
|
|
@@ -10697,7 +10696,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
10697
10696
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
10698
10697
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
10699
10698
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
10700
|
-
const SDK_VERSION = '1.5.
|
|
10699
|
+
const SDK_VERSION = '1.5.1'; // x-release-please-version
|
|
10701
10700
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
10702
10701
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
10703
10702
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -11350,9 +11349,10 @@ class McpCallableTool {
|
|
|
11350
11349
|
const callToolResponse = await mcpClient.callTool({
|
|
11351
11350
|
name: functionCall.name,
|
|
11352
11351
|
arguments: functionCall.args,
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
11352
|
+
},
|
|
11353
|
+
// Set the result schema to undefined to allow MCP to rely on the
|
|
11354
|
+
// default schema.
|
|
11355
|
+
undefined, requestOptions);
|
|
11356
11356
|
functionCallResponseParts.push({
|
|
11357
11357
|
functionResponse: {
|
|
11358
11358
|
name: functionCall.name,
|
|
@@ -15418,9 +15418,6 @@ class BrowserUploader {
|
|
|
15418
15418
|
* Copyright 2025 Google LLC
|
|
15419
15419
|
* SPDX-License-Identifier: Apache-2.0
|
|
15420
15420
|
*/
|
|
15421
|
-
// TODO((b/401271082): re-enable lint once BrowserWebSocketFactory is
|
|
15422
|
-
// implemented.
|
|
15423
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
15424
15421
|
class BrowserWebSocketFactory {
|
|
15425
15422
|
create(url, headers, callbacks) {
|
|
15426
15423
|
return new BrowserWebSocket(url, headers, callbacks);
|