Overview

A proof of concept for graph engineering with Microsoft Agent Framework Workflows on .NET 10. The work is modeled as a graph of typed nodes and edges: the input fans out to several AI agents running in parallel, their results fan back in, a reasoning agent combines them, and extra checks run only on the branches where confidence is low. Anything still uncertain is flagged for a person to review instead of being guessed. The use case is a large scanned document package that is really dozens of separate documents: the graph finds where each one starts and ends, assigns its type with a confidence score, extracts the key fields from every page, and checks that signatures look consistent across the package. Models are reached through an OpenAI-compatible gateway (OpenRouter), so the provider is a configuration choice, and a React app shows live progress, tokens and cost.

How it works

  1. 1

    Upload

    React + Vite UI, an ASP.NET Core minimal API on .NET 10, or a CLI. Progress streams live over Server-Sent Events.

  2. 2

    Graph engineering

    Microsoft Agent Framework Workflows: typed executor nodes and edges with fan-out, fan-in and conditional routing.

  3. 3

    Parallel vision agents

    Vision LLMs process every page in parallel and return structured JSON. Weak results are retried with a stronger model.

  4. 4

    Reasoning and checks

    A reasoning agent groups pages into typed documents; a verifier and a signature checker run only where needed.

  5. 5

    Output

    JSON with confidence scores, review flags, and tokens and cost per stage. Models via OpenRouter (OpenAI-compatible); tests with xUnit.

The agents

  • Page scanners

    Parallel vision agents, one model call per page.

  • Segmenter

    Reasoning agent that groups pages into typed documents.

  • Verifier

    Conditional node, runs only on low-confidence results.

  • Signature checker

    Parallel branch that compares signatures across pages.

Key outcomes

  • Graph engineering on Microsoft Agent Framework
  • Parallel vision agents, one call per page
  • Confidence-driven rescan and verification
  • Live progress, cost and token tracking

Technologies

.NET 10Microsoft Agent FrameworkGraph EngineeringMulti-Agent WorkflowsVision LLMsOpenRouterReactServer-Sent Events