How to locally evaluate AI agents in .NET Microsoft Agent Framework

Authorised Territory demonstrates how to build an AI agent with the .NET Microsoft Agent Framework using a local Ollama model, then evaluate the agent locally with built-in checks to confirm response quality and that required tools were actually invoked.

Overview

The video walks through building and evaluating an AI agent in a .NET console application.

Scenario: travel blogger agent with an email tool

Connecting Microsoft Agent Framework to a local Ollama model

Adding and using tools with an AI agent

Local evaluation with LocalEvaluator

Inspecting evaluation results and metrics