File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -455,15 +455,10 @@ def load_skills(self):
455455 if self .skills_dict :
456456 self .instruction += "\n You have the following skills:\n "
457457
458- for skill in self .skills_dict .values ():
459- skills [skill .name ] = skill
460- if skills :
461- self ._skills_with_checklist = skills
462-
463- self .instruction += "\n You have the following skills:\n "
458+ self ._skills_with_checklist = self .skills_dict
464459
465460 has_checklist = False
466- for skill in skills .values ():
461+ for skill in self . skills_dict .values ():
467462 self .instruction += (
468463 f"- name: { skill .name } \n - description: { skill .description } \n \n "
469464 )
Original file line number Diff line number Diff line change @@ -344,6 +344,7 @@ def check_skills(callback_context: CallbackContext) -> Optional[types.Content]:
344344
345345 # Update agent.skills_dict with reloaded skills
346346 agent .skills_dict = reloaded_skills_dict
347+ agent ._skills_with_checklist = reloaded_skills_dict
347348 logger .info (
348349 f"Updated agent.skills_dict with { len (reloaded_skills_dict )} skills"
349350 )
You can’t perform that action at this time.
0 commit comments