mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
仅保留mcp2.x行为
This commit is contained in:
parent
ef2fcdbcb1
commit
01289b8fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class ServerMCPClient:
|
||||||
"function": {
|
"function": {
|
||||||
"name": name,
|
"name": name,
|
||||||
"description": tool.description,
|
"description": tool.description,
|
||||||
"parameters": getattr(tool, "input_schema", None) or getattr(tool, "inputSchema", {}),
|
"parameters": tool.input_schema,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for name, tool in self.tools_dict.items()
|
for name, tool in self.tools_dict.items()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue