mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 08:33:10 +00:00
fix: restore skill filtering by agent permissions (#7042)
This commit is contained in:
committed by
GitHub
parent
d76d6db589
commit
485aadcbfa
@@ -675,7 +675,7 @@ export namespace SessionPrompt {
|
||||
},
|
||||
})
|
||||
|
||||
for (const item of await ToolRegistry.tools(input.model.providerID)) {
|
||||
for (const item of await ToolRegistry.tools(input.model.providerID, input.agent)) {
|
||||
const schema = ProviderTransform.schema(input.model, z.toJSONSchema(item.parameters))
|
||||
tools[item.id] = tool({
|
||||
id: item.id as any,
|
||||
|
||||
Reference in New Issue
Block a user