Agents as Tools in Microsoft Agent Framework

Series Deep Dive: Microsoft Agent Framework Part 11 of 19

How to delegate work between Microsoft Agent Framework agents by exposing focused agents as function tools, and when this is better than manual routing or a workflow engine.

May 27, 2026 · 11 min · Lukas Walter

Why CancellationToken Matters More in .NET AI Systems

Why CancellationToken matters more in .NET AI systems, and how to pass it through LLM calls, streaming responses, embeddings, retrieval, and tool execution.

May 24, 2026 · 12 min · Lukas Walter

Manual Multi-Agent Routing in .NET

Series Deep Dive: Microsoft Agent Framework Part 10 of 19

How to route requests between specialized Microsoft Agent Framework agents with a cheap intent agent, structured output, and a normal C# switch statement.

May 20, 2026 · 10 min · Lukas Walter

Extending .NET Agents with MCP and Agent Skills

Series Deep Dive: Microsoft Agent Framework Part 9 of 19

How to extend Microsoft Agent Framework agents with MCP tools and Agent Skills, when to use each model, and what trust boundaries to keep around external servers, local files, and scripts.

May 12, 2026 · 11 min · Lukas Walter

Structured Output in .NET Agents

Series Deep Dive: Microsoft Agent Framework Part 8 of 19

Use structured output in Microsoft Agent Framework to turn LLM responses into typed C# objects that can be validated, tested, and used safely in application code.

May 10, 2026 · 9 min · Lukas Walter

Tools and Dependency Injection in Microsoft Agent Framework

Series Deep Dive: Microsoft Agent Framework Part 7 of 19

How to expose small C# methods as Microsoft Agent Framework tools, pass application services through dependency injection, and protect side-effecting actions.

May 6, 2026 · 7 min · Lukas Walter

RAG with EF Core and pgvector

How to build RAG retrieval in .NET by storing embeddings in PostgreSQL with pgvector and querying them through EF Core.

May 2, 2026 · 6 min · Lukas Walter

Dynamic Agent Context with AIContextProvider

Series Deep Dive: Microsoft Agent Framework Part 6 of 19

How to use AIContextProvider in Microsoft Agent Framework to inject dynamic memory, reduce tool-token overhead, add guardrails, and extend agent context at runtime.

April 30, 2026 · 7 min · Lukas Walter

Controlling Token Growth with Chat Reducers

Series Deep Dive: Microsoft Agent Framework Part 5 of 19

How to control token growth in Microsoft Agent Framework with message-count and summarizing chat reducers, including setup, tradeoffs, and when each approach fits.

April 28, 2026 · 6 min · Lukas Walter

State Management and Chat History

Series Deep Dive: Microsoft Agent Framework Part 4 of 19

How to manage short-term and persistent conversation state in Microsoft Agent Framework using AgentSession, StateBag, and a custom ChatHistoryProvider.

April 23, 2026 · 4 min · Lukas Walter