Agent Framework 1.23: Function Middleware Can Finally Swap the Tool It Is Calling
Microsoft Agent Framework .NET 1.23.0 honors assignments to FunctionInvocationContext.Function, so middleware can redirect a tool call to a different AIFunction. A new WrapWithPendingMiddleware helper keeps the rest of the chain in the loop.