Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: For creating a sequence of tasks, the SequentialAgent is the recommended and architecturally sound approach. Using an LLM agent inside an after_agent_callback is an anti-pattern that can lead to performance issues and unnecessary complexity.


Hello! That's an excellent question about ADK workflow design. Here’s a breakdown of the trade-offs between the two approaches you've described.

Option 1: Sequential Agent (Recommended)

This is the idiomatic and intended way to build multi-step workflows in ADK. The SequentialAgent is a specialized "workflow agent" designed specifically to execute a list of sub-agents in…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VenkataSakethDakuri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants