fix: hide available_skills section when skill tool is disabled

This commit is contained in:
M. Adel Alhashemi 2025-12-22 12:13:02 +08:00
parent a9542e282c
commit 22375fb7ef

View file

@ -534,7 +534,7 @@ export namespace SessionPrompt {
sessionID,
system: [
...(await SystemPrompt.environment()),
...(await SystemPrompt.skills(agent.name)),
...(tools.skill ? await SystemPrompt.skills(agent.name) : []),
...(await SystemPrompt.custom()),
],
messages: [