How to display AI agent token usage in .NET Agent Framework and Ollama

Authorised Territory demonstrates how to show LLM token usage in a .NET console app built with the .NET Agent Framework while running a local model via Ollama, focusing on making token consumption visible during agent execution.

Overview

This tutorial shows how to display token usage for an AI agent in a .NET console application using the .NET Agent Framework with a locally hosted LLM running in Ollama.

Related starting solution referenced by the author: