Skip to content

Python: Nested HandoffBuilder Workflows #3170

@moonbox3

Description

@moonbox3

Discussed in #2999

Originally posted by eddieahn December 22, 2025
I have a use case involving nested handoff workflows in the Microsoft Agent Framework:

Parent Workflow:

  • Uses HandoffBuilder with enable_return_to_previous=False
  • For most questions, after an agent completes its task, control should return to the coordinator
  • However, for certain specific questions, the coordinator needs to hand off to a child/sub-workflow

Child/Sub Workflow:

  • Should be triggered for specific question types that require a multi-step process
  • Within this sub-workflow, I need enable_return_to_previous=True
  • Each agent in the sub-workflow requires substantial user input
  • Agents should return to each other sequentially to complete their tasks
  • Only when the entire sub-workflow is complete should control return to the parent workflow's coordinator

Question:
Is there a way to achieve this nested handoff behavior using HandoffBuilder, or does this require building a fully custom workflow? If HandoffBuilder doesn't currently support this, would this be considered a viable feature enhancement?

Metadata

Metadata

Assignees

Labels

agent orchestrationIssues related to agent orchestrationagentsIssues related to single agentspythonworkflowsRelated to Workflows in agent-framework

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions