Microsoft Agent Framework: custom workflow tutorial
Daniel Costea explains .NET agent workflows with executors, edges and entity extraction, including demo failures and local Ollama connectivity.
Player not loading? Watch on YouTube
Daniel Costea explains Microsoft Agent Framework workflows through a .NET entity extraction example. Ontology files define entity and relationship types, and agents turn the extracted data into a Mermaid diagram. He calls this a learning exercise and recommends generating diagrams programmatically for production.
The session compares a solo agent, built-in orchestration patterns and a custom workflow. The custom design sends extraction tasks to three agents, collects their responses through a fan-in barrier and aggregates the results. A builder and reviewer refine the diagram until approval or an iteration limit ends the exchange.
Executors contain agents or conventional code; edges connect the steps. Costea uses workflow events and DevUI to explain how custom orchestration exposes individual inputs and outputs. He recommends trying built-in orchestrators first and considering custom workflows when auditability requires more control.
The demos have limits. Costea encounters a bug in the solo-agent example and later reports that the high-level workflow produced a diagram. Screen-sharing failures and crashes interrupt the session, including the custom workflow run. He suspects poor memory cleanup in his generated console dashboard, but does not confirm the cause.
Costea says the application connects to OpenAI and a local Ollama server through IChatClient. Structured output requires explicit configuration, and schema support depends on the model.