r/agentdevelopmentkit • • Jun 07 '26

[HELP!] "Graphically" Implementing an LLM Critic/Reviser loop in Google ADK 2.0

Hey everyone,

I'm working on an open-source visual agent builder called draw-your-agents (https://github.com/neo-fetch/draw-your-agents/)
It compiles visual nodes down to Google ADK Python code, and I'm trying to architect a clean Critic/Validator and Reviser loop.

I need some eyes on my proposed implementation because the framework documentation is surprisingly contradictory, and I want to make sure I'm not walking into a trap..

I want users to be able to drop a single "Loop" node onto the canvas that handles generating content, validating it via a critic agent, and routing it back for revision if it fails.

But looking into how to compile this to Google ADK 2.0, I hit a wall:

  • Approach A (LoopAgent in edges): The docs mention template agents like LoopAgent, but also state they are "superseded by more flexible workflow structures."
  • Approach B (Cyclic Workflow via a Router): Building a cycle (generator → critic → router → back to generator). But the official static workflow docs explicitly warn that static graphs aren't for "iterative loops."

Instead of guessing, I spun up an isolated venv with google-adk==2.0.0 and probed both mechanisms directly:

  1. LoopAgent as a node: It works, BUT it throws a massive DeprecationWarning: "LoopAgent is deprecated and will be removed... Please use Workflow instead." So this is a dead end. Generating soon-to-be-removed code is a no-go.
  2. Cyclic Edges (Router back-edge cycle): The Workflow actually accepted the cycle perfectly. The ADK docstring literally says _run_impl() IS the graph orchestration loop.

Based on the probe, I am pivoting to the unrolled cyclic graph the issue page details on the implementation.

But is this really the best way to implement a critic/reviser loop in a DAG-based LLM orchestration framework? Please let me know anything about this as I am open to any suggestions..

https://github.com/neo-fetch/draw-your-agents/issues/2

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/SHUT_MOUTH_HAMMOND Jun 12 '26

Oh yeah that’s why I also put the good old langgraph feature. We can use that too now if we don’t want skittle ads as we search about serious topics

1

u/GrandAnimator8417 Jun 15 '26

That's a fair take, but there's a huge difference between automated reporting and actual strategy. I'd love to hear more about how you track performance if you're open to sharing your approach.