Skip to content

Commit 473cf63

Browse files
fix(agent_builder): correct sub-agent tuple return format
1 parent 6f1d274 commit 473cf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/adk/agent_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async def _get_sub_agents(
214214
else:
215215
raise ValueError(f"Invalid agent type: {agent.type}")
216216

217-
sub_agents.append(sub_agent)
217+
sub_agents.append((sub_agent, exit_stack))
218218
logger.info(f"Sub-agent added: {agent.name}")
219219

220220
logger.info(f"Sub-agents created: {len(sub_agents)}")

0 commit comments

Comments
 (0)