8000 Start from root agent after any sub-agent is skipped by before agent callback · Issue #1311 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
Start from root agent after any sub-agent is skipped by before agent callback #1311
Open
@naitik-parekh

Description

@naitik-parekh

Problem description
I have designed a chat app using Google-ADK's multi-agent architecture. I am skipping certain agents using the before_agent_callback. Once a sub-agent is skipped, the processing of the next message in the same session starts from that same agent. In my use case, the condition in the before_agent_callback evaluates to the same value for a specific user. As a result, once an agent is skipped, the same agent is invoked repeatedly, leading to an infinite loop.

Desired solution
It would be nice to have a control on what next agent should be invoked after and agent is skipped by before_agent_callback.

Alternatives considered
Currently, I am clearing the session when any agent is skipped by before_agent_callback.

Additional context
I am using google-adk 1.2.1

Metadata

Metadata

Assignees

Labels

bot_triagedcoreIssues related to the core interface and implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0