MagenticWorkflowBuilder(AIAgent) Constructor

Definition

Fluent builder for creating Magentic One multi-agent orchestration workflows.

Magentic One workflows use an LLM-powered manager to coordinate multiple agents through dynamic task planning, progress tracking, and adaptive replanning.The manager creates plans, selects agents, monitors progress, and determines when to replan or complete.

The builder provides a fluent API for configuring participants, the manager, optional plan review, checkpointing, and event callbacks.

Human-in-the-loop Support: Magentic provides specialized HITL mechanisms via:

  • RequirePlanSignoff - Review and approve/revise plans before execution
  • Tool approval via function_approval_request: Approve individual tool calls on participating agents. Note that tool calls are not supported on the ManagerAgent.
public MagenticWorkflowBuilder(Microsoft.Agents.AI.AIAgent managerAgent);
new Microsoft.Agents.AI.Workflows.MagenticWorkflowBuilder : Microsoft.Agents.AI.AIAgent -> Microsoft.Agents.AI.Workflows.MagenticWorkflowBuilder
Public Sub New (managerAgent As AIAgent)

Parameters

managerAgent
AIAgent

Applies to