This commit is contained in:
Aiden Cline
2026-01-17 14:25:29 -06:00
parent 58f7da6e9f
commit 78f8cc9418
11 changed files with 289 additions and 273 deletions
+4 -1
View File
@@ -685,7 +685,10 @@ export namespace SessionPrompt {
},
})
for (const item of await ToolRegistry.tools(input.model.providerID, input.agent)) {
for (const item of await ToolRegistry.tools(
{ modelID: input.model.api.id, providerID: input.model.providerID },
input.agent,
)) {
const schema = ProviderTransform.schema(input.model, z.toJSONSchema(item.parameters))
tools[item.id] = tool({
id: item.id as any,