Curriculum

Curriculum

Give the Agent a Checkable Task

Scenario

You have a booking flowchart and know what should happen for 0, 1, and 2 free seats.

Selected choicePick a choice below
Result—

Try it yourself

Which request would let you check the work?

Reveal the explanation
  1. Make booking better

    The agent must guess the problem and the result.

  2. Implement canBook for the drawn rule

    Add the exact checks 0 → false, 1 → true, 2 → true. Ask for the plan, then the diff and actual test output.

Attach the flowchart and name the function or file. Give the agent only the context it needs for the task.

Shared booking contract

Accept a booking when at least one seat is free.

Read free seats
Is the count greater than zero?
Yes
Accept
No
Decline
Free seatsExpected
0false
1true
2true
Runnable reference files

Your turn

Write an agent task with the booking rule, scope, and checks for zero, one, and two seats.

Common mistake Giving the agent only a feature name and letting it invent the rules.

Check your work

The task asks for a plan first, then a focused diff and the actual test output.