SkyAICampus
HomePracticeLearnCode LabFocus
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus
Log inSign up

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

  1. 1Tool use
  2. 2Agent loops
  3. 3Memory and context
  4. 4Safety and evaluation
← Agentic AI

Lesson 2 of 4

Agent loops

Watch, read the card, then practise. The agent loop · Planning

Video coming soon

The video for this lesson is being recorded.

Meanwhile, the notes below and the 60-second cards cover the same ideas.

Practise this topic
  • The 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)
← Tool useNext: Memory and context →

In this lesson

  • The agent loop
  • Planning

Practise this topic

5 questions at your level. The best way to make it stick.

Practise 5 questions