Skip to content

Loading search…

中文

checklist

Show the user a checklist of task steps and check them off as they are done.

  • Layer: base (optional: only where a configuration enables it)
  • Needs: –
  • Requires: –
  • Conflicts with: –
  • Never dropped: no
  • Mixin: skills.checklist:Checklist
  • Manifest: skills/checklist/skill.toml
def plan(*steps)

Show the user your plan: the task’s steps in order, short and in their language, as strings (or one list). Call it again to change the plan; the steps done so far stay checked when their text is the same. Returns the number of steps.

def step_done(number)

Check off step number of your plan (1 for the first).

From the workspace prompt pack, with the core skills enabled:

plan(*steps) show your plan: the task's steps in order, short, in
the user's language: plan("Open Google Flights",
"Search Beijing to New York on 2 Nov", "Pick three
cheap flights"); call it again to change it
step_done(number) check off step `number` (1 for the first)