An agent is the model and the harness working together on a task over many steps. When an assistant, the app you chat with, works through a task on its own like this, it’s acting as an agent. Each of its steps follows the same cycle, called the agent loop:
- The app gathers what the model needs: your message, instructions, and results so far.
- The model reads all of it and either replies or asks for an action.
- The app checks whether it should go ahead, carries out the action, and passes the result back.
- The cycle repeats until the model has an answer for you.
Now you can try the loop from the app’s side. In the game below, you play the app. Someone has asked for a business trip to a client meeting, and the model’s requests arrive one at a time. You decide what to do with each one: