Concepts and Examples

Why We Need Loops

Multi-Step Tasks

When a task requires multiple operations:

  1. Getting information
  2. Processing results
  3. Making decisions
  4. Taking further actions

Example: "Book me a trip to NYC"

Dependent Actions

When next steps depend on previous results:

Interactive Problem Solving