Skip to content

Commit 3534e0f

Browse files
authored
fix: alaways append tools when self.skills is not empty (#517)
* fix: alaways append tools when self.skills is not empty * fix: alaways append tools when self.skills is not empty
1 parent 5b3453a commit 3534e0f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

veadk/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,12 @@ def load_skills(self):
490490
"You can use the skills by calling the `skills_tool` tool.\n\n"
491491
)
492492

493-
self.tools.append(SkillsToolset(self.skills_dict, self.skills_mode))
494493
else:
495494
logger.warning("No skills loaded.")
496495

497-
if self.enable_dynamic_load_skills and self.skills_dict:
496+
self.tools.append(SkillsToolset(self.skills_dict, self.skills_mode))
497+
498+
if self.enable_dynamic_load_skills:
498499
if self.before_agent_callback:
499500
if isinstance(self.before_agent_callback, list):
500501
self.before_agent_callback.append(check_skills)

0 commit comments

Comments
 (0)