mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 23:22:22 +00:00
fix: correct input schema property name in getTools method (#5095)
This commit is contained in:
@@ -78,13 +78,15 @@ export class MCPClient {
|
||||
const tools = response.tools.map((tool) => ({
|
||||
name: tool.name,
|
||||
description: tool.description || '',
|
||||
input_schema: tool.inputSchema ? {
|
||||
...tool.inputSchema,
|
||||
properties: tool.inputSchema.properties || {}
|
||||
} : {
|
||||
type: 'object',
|
||||
properties: {}
|
||||
}
|
||||
inputSchema: tool.inputSchema
|
||||
? {
|
||||
...tool.inputSchema,
|
||||
properties: tool.inputSchema.properties || {}
|
||||
}
|
||||
: {
|
||||
type: 'object',
|
||||
properties: {}
|
||||
}
|
||||
}));
|
||||
|
||||
// @ts-ignore
|
||||
|
Reference in New Issue
Block a user