This is Part 6 of my series on the Microsoft Agent Framework. You can read the original post over on lukaswalter.dev . When static prompts are no longer enough Most agents are created with fixed system prompts and tools. But as we need more intelligent systems, we sometimes need to adapt them to the situation, user, or time. The framework offers AIContextProviders for this purpose. These provide context to AI agents and can be chained together to connect multiple sources. Providers are executed in the order they are registered, allowing you to layer multiple context modifications in a predictable way. You can configure the sequence in your agent's setup, ensuring that context from earlier providers is available to those that run later in the chain. This lets you hook into the pipeline before and after the LLM call, helping avoid unexpected behavior by keeping the flow transparent. The Architecture of Context Providers To create a custom provider, we inherit from the AIContextProvider class.…