Agent Framework made middleware much easier to work with.
Source generation makes it possible to build "strongly typed prompts"[0]
Middleware makes it possible to substitute those at runtime if necessary.
[0] https://github.com/CharlieDigital/SKPromptGenerator/tree/mai...
I've been fiddling around with many prototypes to try to figure out the right way to do this, but it feels challenging; I'm not yet familiar enough with how to do this ergonomically and idiomatically in dotnet haha