|
|
|
@ -114,7 +114,7 @@ public class MCPSubClient { |
|
|
|
} |
|
|
|
|
|
|
|
private func processTools(_ toolList: [Tool]) { |
|
|
|
tools = toolList |
|
|
|
tools.removeAll() |
|
|
|
toolMaps.removeAll() |
|
|
|
|
|
|
|
for tool in toolList { |
|
|
|
@ -128,7 +128,7 @@ public class MCPSubClient { |
|
|
|
"description": tool.description ?? "", |
|
|
|
"parameters": parameters |
|
|
|
] |
|
|
|
|
|
|
|
tools.append(tool) |
|
|
|
toolMaps.append([ |
|
|
|
"type": "function", |
|
|
|
"function": functionMap |
|
|
|
|