← All transcripts

4 Types of AI Agent Loops: From Human-Led to Autonomous Transcript, AI Summary & Key Points

IBM Technology · 4 days ago · Education · 09:08 · EN

Watch on YouTube

Answer

The four types of AI agent loops are the interactive loop, the delegated loop, the scheduled loop and the event-driven loop, arranged from human-led to most autonomous.

AI Summary

AI agents work autonomously using loops, and the level of autonomy varies across four agentic loop types. All loops share the same basic cycle: an agent takes in a goal, performs an action (like editing a file or running a command), observes what comes back, and adjusts, going round and round until the job is done. The key design questions are who sets the goal and who decides when the loop is done. In the interactive loop, a human sets the goal with a prompt and judges every turn of the result, suiting fuzzy tasks with no measurable finish line but hard to scale for repetitive work. The delegated loop keeps the human setting the goal but adds an AI check that judges a stopping condition — for example 'upgrade the out-of-date libraries and stop when the build turns green' — with a human reviewing only the finished work. The scheduled loop keeps everything from the delegated loop but a clock starts it, running a once-written goal on a schedule such as nightly, suiting work that goes stale over time or recurs, with the human cancelling or adjusting the schedule and reviewing results. The event-driven loop replaces the clock with an event like a pull request being opened, each event starting its own run with a tailored goal; human review is replaced by a reviewer agent with its own fresh context, possibly a different AI model, and only exception cases the reviewer is unsure about go to a human — making it the most autonomous of the four.

Key Points

  • All agentic loops share the same cycle: the agent takes in a goal, performs an action, observes what came back, and adjusts, looping until the job is done.
  • Two design questions shape every loop: who sets the goal, and who decides when the loop is done.
  • Interactive loop — a human sets the goal via a prompt and judges each turn; suited to fuzzy tasks with no measurable finish line, but hard to scale when the same judgments repeat.
  • Delegated loop — the human sets the goal with a stopping condition (e.g. 'upgrade the out-of-date libraries and stop when the build turns green'), an AI check judges when the loop exits, and a human reviews only the finished result.
  • Scheduled loop — a clock starts the loop: a human writes a goal once, such as 'find any out-of-date libraries and upgrade them', and a schedule runs it, say, every night; good for work that goes stale or recurs, with the human reviewing results and cancelling or adjusting the schedule as needed.
  • Event-driven loop — an event such as a pull request being opened replaces the clock, kicking off a run with a goal tailored to that event; a reviewer agent with fresh context, maybe a different AI model, checks the work, and only exceptions it is unsure about reach human review, making it the most autonomous of the four.
  • Summary: interactive means a human starts and judges every turn; delegated keeps the human at the start but a check does the judging; scheduled is started by a clock; event-driven is started by whatever just happened with an agent reviewing the result.

Tools & resources

1 item

Links mentioned

🔒 Full analysis locked

Unlock more videos and the full analysis

A credit unlocks one video's full analysis for good — the build steps, the tools and how each was used, the methods behind every use case. Pro opens the whole library instead, and raises how many videos you can analyse a day.

Unlock full analysis — free

Transcript

Searchable transcript of 4 Types of AI Agent Loops: From Human-Led to Autonomous — IBM Technology (09:08). Search for a phrase, then click its timestamp to jump straight to that moment in the video.

Captions sourced from the original video on YouTube, published by IBM Technology. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.

00:00 AI agents work autonomously, and they do so using loops. But the level of autonomy and the form of the loop, well they can differ. So let's take a look at four types of agentic loop and why you might opt for each one. So at a high level, all agentic loops, they share the same basic patterns. So we have an agent and the agent takes in a goal. That is the goal it's going to meet.

00:21 Then, it performs an action to help it achieve that goal. It might be something like editing a file, or maybe running a command. But next stage in the loop is really that it observes what comes back from the action, so what happened? Maybe like reading some of the output. And then, the next stage in the loop is that it adjusts based upon what it has observed, and it kind of goes round and round again until the job is done.

01:10 So two things about that. Who sets the goal? And who decides when the loop's done? When the goal is achieved? Well, it's often a human, a human in the loop, so to speak. Not always, but often. So let me introduce the first of the agentic loops I want to cover, the interactive loop. So, the interactive loop is this loop cycle, where human involvement is going to be added in, in two places.

01:48 So first of all, we have a human here at the start, and the human's job at the start is to set the goal. What do we want the loop to achieve? So the human sets the goal. Now, in practice, what this means is the human types in a prompt specifying what they want, and the human judges at the end as well. So we've got another human step here, where the human judges what has been produced.

02:25 And they look at this to see. Is the job done? What came back? Is the goal achieved? So if the goal was to upgrade library X, then if the upgrade happened then, well, the human would judge the loop as being done. If it wasn't, or if there's more to do, the human is going type the next prompt and round we go again. So the agent runs inside of the loop, and a person controls when the loop starts, and when the loop ends.

03:04 So if the task is a bit fuzzy, or there's not really a measurable finish line, an interactive loop with a person controlling start and stop conditions is probably a good idea. but, the interactive loop is hard to scale when the job is basically doing the same thing over and over again. Well, these poor humans will have a lot of judgments to make. So what if we handed that judging job off to the AI?

03:35 Well, that's the second type of loop, the delegated loop. The human still sets the goal, but the goal comes with a little extra here. The goal comes with a stopping condition. Simply when should the loop actually be done. So, a goal isn't going be upgrade library X, it's going to be something a bit more specific, like upgrade the out of date libraries and stop when the build turns green.

04:09 Now, at the end of the loop, we now have a check that we go to after adjust and the check is going to judge this stopping condition. And it's an AI check. So every time the agent thinks it's finished after this adjust stage, the check is run. And if it fails, then the agent will go round the loop again. And if it passes, the loop now exits comes out of the check because we think the goal has been completed, and now it goes to another stage.

04:49 Basically, the result comes back and it's provided for a human to review the result of that job. So the delegated loop here delegates the judging away from a human until it's time to review the finished work. So like go off and do that task I sent you Mr. Agent, and, uh, let me know when you're done, then I'll see how well you did. But a delegated loop still has a human setting the goal and starting the loop.

05:23 So what if we handed that off as well? Well, that's the third loop. The scheduled loop. Most everything from the delegated loop stays the same in the, there's a check that's going to judge the stopping condition. And the result comes back to a human to review. But what does change here, is how this loop gets started. Because the thing that starts it now is not a person, it's a clock, basically.

05:46 It's a human writing a goal once, something like find any out-of-date libraries and upgrade them, and then a schedule is going to run it, say, every night. So a scheduled loop suits work that goes stale over time, like libraries going out of date. But it's also really good for work that needs doing recurrently. The human's job is to read what comes back, and when this loop stops being useful to then, we'll cancel the loop when we don't need to keep scheduling it anymore, or to adjust the schedule as needed.

06:24 So now the clock starts in place of a person having to kick the loop off, but there's still a human reviewing every result. Yeah, what if we handed that one off as well? Well then we have the fourth type of loop, the event-driven loop. And a couple of things change here. So first, the clock is replaced with something else, it's replaced with an event.

06:48 So the loop only runs when something happens. An event, like a pull request has been opened. And each event is going to kick off its own run of the loop with the goal tailored to whatever the event was about. Now there's still an AI-powered check to decide when that run is done, but now the human review at the end has gone away, and it's replaced with an AI option.

07:23 Basically another agent, a reviewer agent that now does the checking. Now this is a second agent with its own fresh context, maybe powered by a different AI model, and it looks over the finished work before it moves on. Now, if it approves, the work is done, so we can say the loop is complete, and if there's still more to do, we're in the not done stage and we would go back around the loop again.

07:48 The loop gets restarted. And if the reviewer agent isn't sure what to do, if it doesn't know if it's done or not done, well, then that's when we go to a human review stage. So at this point, the human will only see certain cases to review. They will effectively only see exceptions at this point. So this is the most autonomous of the four. It's still got a review step, but it's usually an agent doing most of the reviews that are not the exception cases.

08:31 So that's for agentic loops, an interactive loop, a human starts the loop and judges every turn. A delegated loop keeps the human at the start, but a check does the judging. A scheduled loop has a clock to start it, and an event-driven loop is started by whatever just happened with an agent reviewing the result. Which agentic loops you running today? Let me know in the comments!