@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.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var zod = require('zod');
4
- var types_js = require('@modelcontextprotocol/sdk/types.js');
5
4
  var googleAuthLibrary = require('google-auth-library');
6
5
  var fs = require('fs');
7
6
  var node_stream = require('node:stream');
@@ -10724,7 +10723,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
10724
10723
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
10725
10724
  const USER_AGENT_HEADER = 'User-Agent';
10726
10725
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
10727
- const SDK_VERSION = '1.5.0'; // x-release-please-version
10726
+ const SDK_VERSION = '1.5.1'; // x-release-please-version
10728
10727
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
10729
10728
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
10730
10729
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -11377,9 +11376,10 @@ class McpCallableTool {
11377
11376
  const callToolResponse = await mcpClient.callTool({
11378
11377
  name: functionCall.name,
11379
11378
  arguments: functionCall.args,
11380
- CallToolResultSchema: types_js.CallToolResultSchema,
11381
- requestOptions,
11382
- });
11379
+ },
11380
+ // Set the result schema to undefined to allow MCP to rely on the
11381
+ // default schema.
11382
+ undefined, requestOptions);
11383
11383
  functionCallResponseParts.push({
11384
11384
  functionResponse: {
11385
11385
  name: functionCall.name,
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types.js';
3
2
  import { GoogleAuth } from 'google-auth-library';
4
3
  import { createWriteStream, writeFile } from 'fs';
5
4
  import { Readable } from 'node:stream';
@@ -10702,7 +10701,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
10702
10701
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
10703
10702
  const USER_AGENT_HEADER = 'User-Agent';
10704
10703
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
10705
- const SDK_VERSION = '1.5.0'; // x-release-please-version
10704
+ const SDK_VERSION = '1.5.1'; // x-release-please-version
10706
10705
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
10707
10706
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
10708
10707
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -11355,9 +11354,10 @@ class McpCallableTool {
11355
11354
  const callToolResponse = await mcpClient.callTool({
11356
11355
  name: functionCall.name,
11357
11356
  arguments: functionCall.args,
11358
- CallToolResultSchema,
11359
- requestOptions,
11360
- });
11357
+ },
11358
+ // Set the result schema to undefined to allow MCP to rely on the
11359
+ // default schema.
11360
+ undefined, requestOptions);
11361
11361
  functionCallResponseParts.push({
11362
11362
  functionResponse: {
11363
11363
  name: functionCall.name,