Skip to content

Confusion regarding sub-agent patterns #2686

@jeremypeters

Description

@jeremypeters

I'm not sure if this is the best place to post this question - if there is somewhere more suitable please let me know.

I'm making a fairly simple chatbot comprised of a manager agent and three distinct sub-agents.

I think this is a pretty standard use-case but it is unclear the proper way to do this.

As far as I understand it there are three options:

1/ Sub-agents argument

From what I understand in order for the correct sub-agent to be used the sub-agents description is used to decide which sub-agent to use - in practise though it seems pretty flaky.

2/ Sub-agents with disallow_transfer_to_parent=True

As far as I understand this, what happens here is that after the sub-agent is used the control is transfered back to the parent (which is the opposite of it's name...) and any follow-up question would be routed through the manager agent again. Also it's just very briefly mentioned in the docs, so that suggests that its use is pretty specialized and not meant for something as standard as my use case.

3/ AgentTool

As far as I understand this, control always remains with the parent agent, and has drawbacks such as it's more difficult to debug, and handling follow-up questions.

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botcore[Component] This issue is 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