AI Agent Quality Control Loop with AI Judge | .NET 10, Microsoft Agent Framework & Ollama

Authorised Territory demonstrates how to build a .NET agent that generates an answer, has a second model judge it against criteria, and retries automatically until it passes or hits an iteration limit, using Microsoft Agent Framework with local models running in Ollama.

Overview

The video walks through implementing a quality-control loop for an AI agent using two different LLM roles:

Architecture: worker, judge, and orchestrator

Worker model (answer generation)

Judge model (answer evaluation)

LoopAgent (control loop)

Local model runtime with Ollama