Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

The AI Practitioner Podcast

The AI Practitioner Podcast artwork

PODCAST — Human-in-the-Loop Agents: Steering AI with LangGraph’s Streaming, Breakpoints (Part 3)

Nov 20, 20258 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. Autonomous agents promise efficiency, but without visibility and control, they risk costly mistakes before anyone can intervene. In this episode, we explore how to transform AI agents from opaque black boxes into steerable, inspectable systems using LangGraph’s human-in-the-loop capabilities. You’ll learn: * How streaming exposes an agent’s reasoning in real-time, from token generation to state transitions, building trust through transparency * How breakpoints enable surgical intervention at critical decision points, allowing humans to approve, reject, or correct actions mid-execution * How time travel lets you rewind to any prior state, fork alternative reasoning paths, and explore “what-if” scenarios without restarting from scratch If you’d rather read than listen, the full article (with diagrams, code examples, and implementation details) is available on Substack: 👉 Enjoyed this episode? Subscribe to The AI Practitioner to get future articles and podcasts delivered straight to your inbox. Get full access to The AI Practitioner at aipractitioner.substack.com/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

SPEAKER_00Welcome to the AI Practitioner, where we bridge the gap between AI theory and real-world practice. I'm Alex, and as always, I'm joined by Sam. Today, we're tackling a massive challenge for anyone trying to build with AI agents. How do you keep control without killing the very automation that makes them so powerful? Right, Alex? I mean, that's the million dollar question, isn't it? We're building these incredible multi-step workflows, but when it comes down to it, if the agent is just a black box, how can we ever really trust it in a high stakes production environment?

SPEAKER_00It feels like we're constantly stuck between a rock and a hard place. Exactly. On one side, you've got full automation. Super powerful, yeah, but incredibly high risk. I mean, one bad turn from the agent and you could have a major problem on your hands. But the alternative, full supervision, is just, well, it's low risk, but it completely defeats the point of automation. It's just not scalable. But what if that's a false choice? We're seeing new patterns emerging, especially within frameworks like LangGraph that offer a third way.

SPEAKER_00a path to build agents that are both autonomous and accountable. Because LaneGraph treats every step like a distinct inspectable node, it opens up a whole new toolkit for us. We can finally observe, interrupt, and even edit an agent's reasoning process in real time. And that's what we need. Because for so long, it's felt like we have to choose between a black box we can't trust and a tool that isn't automated at all. We all want the efficiency gains, but not if it costs us reliability. Let's be honest. If you can't see what the agent is thinking, you can't deploy it.

SPEAKER_00Period. Not anymore. The whole game is changing. The solution is to make agents observable, interruptible, and editable. This shifts us away from that old fire-and-forget model to something much more collaborative. So today, we're going to break down these three key capabilities, starting with the first one, observability, getting a real-time window into the agent's mind. Okay, so part one, real-time streaming. This is all about seeing what your AI is thinking as it's thinking. Forget waiting for a final output and just crossing your fingers.

SPEAKER_00We're talking about a live feed of the entire reasoning process. And this isn't just some nice-to-have UI feature, right? For practitioners like us, this has three huge benefits. First, it just plain builds trust. When you can actually see the agent formulating a query or calculating a score, you start to gain real confidence in its logic. Second, it gives you these super valuable early intervention signals. You see it starting to go down a wrong path, you can act immediately. And third, and this is a big one for me, it just massively enhances debugability.

SPEAKER_00You know exactly where and when something went wrong. So how does this actually work? Well, LandGraph gives you a few different flavors of streaming. You've got token level, which gives you that classic typewriter effect as the model generates text. Then there's node level streaming, which is a bit higher level. It tells you when each major step in your workflow kicks off and finishes. And then there's custom streaming, where you can actually emit your own progress messages during, say, a really slow operation. You can even mix and match them to get total observability.

Okay, so that visibility is a fantastic first step, but it's still pretty passive. The real game changer is when you can go from just watching to actively intervening.

SPEAKER_00And that brings us to our second point. Human in the loop interrupts. This is where you get to steer the AI mid-task. Okay, hold on. So are you telling me I can actually stop it before it wastes a ton of compute and money chasing down a bad path? Like, say my research agent misunderstands a query and is about to go process, I don't know, a dozen totally irrelevant papers. I can just hit the brakes? That's exactly it. The answer is yes. And the workflow is so simple but so powerful.

First, the execution just pauses at a breakpoint that you've set in your code.

SPEAKER_00Second, you, the human, get to inspect the agent's entire current state. You can see all the data it has, the decisions it's made. Third, you can either give it the thumbs up to continue, or you can jump in and directly edit that state. And finally, the execution just resumes, seamlessly, right from that point with your new instructions. And LandGraph gives you two main ways to do this. There are graph-level interrupts, where you set up fixed pause points when you build the workflow. Think of them like approval gates, like always stop here before calling this really expensive API.

But then you also have node-level interrupts, which are way more dynamic. A node can actually request human input if it runs into some kind of ambiguity it

SPEAKER_00can't resolve on its own. It's like your agent goes from being a solo worker to a true collaborator that knows when to ask for help. This is all fantastic for controlling what the agent does next. But what if the mistake already happened a few steps ago? This brings us to the third part. And honestly, this is the most mind-blowing concept of the three. time travel and experimentation. We're talking about the ability to literally rewind and reshake the agent's past. Okay, so let's stick with that research agent example.

SPEAKER_00A typical workflow might look like this, right? It starts, it clarifies the user's query, it goes off and searches for papers, and then it summarizes them. It's a straight line, a one-way street. Right, but what happens if you get all the way to the end, to the summarization step, and you suddenly realize the initial query was just slightly off? In the old world, you'd have to kill the whole process and start over from scratch. All that time and compute spent on the search, just gone. With time travel, you don't have to. Because LangGraph's checkpointing system is saving the state

after every single

SPEAKER_00step, you can just rewind. You can literally jump back in time to the state right after the clarify query step, edit the query to what it should have been, and then just hit play. The workflow resumes from that point forward, creating a whole new branch of execution while leaving the original flawed run right there for comparison. I mean, the implications of that are huge. You can rewind mistakes without having to restart everything. You could A-B test different parameters so easily, run the agent up to a certain point, then fork the execution to see what happens if you search for

five papers versus

SPEAKER_0010, all without rerunning the initial steps. And for debugging, it's like having a perfect replayable stack trace of your agent's entire thought process. Okay, now I get it. This completely reframes the problem. So it's not really a choice between automation and control anymore. It's a totally new paradigm. It's more like collaborative intelligence. We're not just supervising the agent, we're actively working with it. We can guide it, we can correct it, and we can experiment with its reasoning. This changes everything about how we can architect these systems.

SPEAKER_00That's the perfect way to put it, Sam. So let's just quickly recap the three pillars that make this new paradigm possible. First, you have streaming, which lets you see what the agent is doing. Second, you have interrupts, which let you steer its actions in real time. And third, you have time travel, which lets you rewind its past to fix mistakes or experiment. See, steer, and rewind. And the most important takeaway here, as the source article puts it, is that these aren't just debugging features, but fundamental primitives for building agents that balance autonomy with

SPEAKER_00accountability. And for anyone out there trying to move AI agents from cool demos to actual production-grade tools, that balance is absolutely everything. Ultimately,

SPEAKER_01this gives us, the practitioners, the confidence to start deploying more complex and more autonomous systems because we know we have the safety net and the steering wheel to guide them. It just opens up so many new possibilities. So the real question we want to leave you with is this. Now that AI is truly steerable, what are you going to build?

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. PODCAST — Beyond Static Prompts: Building Self-Improving LLM Agents with ACE

    Nov 19, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could learn from every interaction...

    Credit the people on this episode

  2. PODCAST — Inside GEPA: Evolving LLM Agent Prompts with Reflective Feedback

    Nov 11, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could continuously improve their...

    Credit the people on this episode

  3. PODCAST — TextGrad in Practice: Optimizing LLM Agent Prompts with Textual Gradients

    Nov 3, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could improve their own prompts...

    Credit the people on this episode

  4. PODCAST — Continuously Optimizing AI Agent Prompts in Production

    Oct 28, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if the key to better AI agents isn’t writing...

    Credit the people on this episode

  5. PODCAST — From Prompt Engineering to Harness Engineering: Where the Real Leverage Moved

    Oct 16, 202613 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if improving an AI agent’s performance had less...

    Credit the people on this episode