Profile photo

Hi, I’m Lukas 馃憢

Software Engineering | AI Engineering | .NET

Tools and Dependency Injection in Microsoft Agent Framework

Series Deep Dive: Microsoft Agent Framework Part 7 of 7 (ongoing)

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 路 6 min 路 1224 words

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 路 5 min 路 1060 words

Dynamic Agent Context with AIContextProvider

Series Deep Dive: Microsoft Agent Framework Part 6 of 7 (ongoing)

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 路 6 min 路 1258 words

Controlling Token Growth with Chat Reducers

Series Deep Dive: Microsoft Agent Framework Part 5 of 7 (ongoing)

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 路 5 min 路 960 words

State Management and Chat History

Series Deep Dive: Microsoft Agent Framework Part 4 of 7 (ongoing)

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 路 714 words