Skip to content

Commit 76491d8

Browse files
committed
fix: check list for instruction
1 parent 320094d commit 76491d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

veadk/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,17 @@ def load_skills(self):
454454

455455
self.instruction += "\nYou have the following skills:\n"
456456

457+
has_checklist = False
457458
for skill in skills.values():
458459
self.instruction += (
459460
f"- name: {skill.name}\n- description: {skill.description}\n\n"
460461
)
462+
if skill.checklist:
463+
has_checklist = True
461464

462-
has_checklist = any(skill.checklist for skill in skills.values())
463465
if has_checklist:
464466
self.instruction += (
465-
"Each skill has a checklist that you must complete step by step. "
467+
"Some skills have a checklist that you must complete step by step. "
466468
"Use the `update_check_list` tool to mark each item as completed.\n\n"
467469
)
468470

0 commit comments

Comments
 (0)