The video for this lesson is being recorded.
Meanwhile, the notes below and the 60-second cards cover the same ideas.
Practise this topicThe agent loop
An agent repeats a loop: decide an action, run a tool, look at the result, until the task is done.
Remember: Agents suit open-ended tasks; workflows suit known ones.
Planning
Planning breaks a big task into steps, and good agents update the plan when something changes.
Remember: Re-plan when new information arrives.
Try the example in Code Lab
steps, done = 0, False
while not done and steps < 5:
steps += 1
done = steps == 3
print(steps, done)