fix: invalid web search tool schema when using deepseek api
This commit is contained in:
parent
ed5a2d0fa4
commit
6142fbf64a
1 changed files with 2 additions and 3 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BaseTool, Icon, ToolResult } from './tools.js';
|
import { BaseTool, Icon, ToolResult } from './tools.js';
|
||||||
import { Type } from '@google/genai';
|
|
||||||
import { SchemaValidator } from '../utils/schemaValidator.js';
|
import { SchemaValidator } from '../utils/schemaValidator.js';
|
||||||
import { getErrorMessage } from '../utils/errors.js';
|
import { getErrorMessage } from '../utils/errors.js';
|
||||||
import { Config } from '../config/config.js';
|
import { Config } from '../config/config.js';
|
||||||
|
|
@ -57,10 +56,10 @@ export class WebSearchTool extends BaseTool<
|
||||||
'Performs a web search using the Tavily API and returns a concise answer with sources. Requires the TAVILY_API_KEY environment variable.',
|
'Performs a web search using the Tavily API and returns a concise answer with sources. Requires the TAVILY_API_KEY environment variable.',
|
||||||
Icon.Globe,
|
Icon.Globe,
|
||||||
{
|
{
|
||||||
type: Type.OBJECT,
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
query: {
|
query: {
|
||||||
type: Type.STRING,
|
type: 'string',
|
||||||
description: 'The search query to find information on the web.',
|
description: 'The search query to find information on the web.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue