Tools and Dependency Injection in Microsoft Agent Framework
How to expose small C# methods as Microsoft Agent Framework tools, pass application services through dependency injection, and protect side-effecting actions.
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.
Dynamic Agent Context with AIContextProvider
How to use AIContextProvider in Microsoft Agent Framework to inject dynamic memory, reduce tool-token overhead, add guardrails, and extend agent context at runtime.
Controlling Token Growth with Chat Reducers
How to control token growth in Microsoft Agent Framework with message-count and summarizing chat reducers, including setup, tradeoffs, and when each approach fits.
State Management and Chat History
How to manage short-term and persistent conversation state in Microsoft Agent Framework using AgentSession, StateBag, and a custom ChatHistoryProvider.
