Microsoft officially launched Agent Framework 1.0, a production-ready platform for building and deploying AI agents that applies middleware pipeline patterns to agent architectures. The framework supports three middleware types—Agent middleware for turn-level concerns like security screening and audit logging, Function middleware for wrapping individual tool calls with validation and performance monitoring, and Chat middleware for wrapping raw LLM inference calls. Middleware executes in nested order (A1→A2→R1→R2→Agent→R2→R1→A2→A1) and can short-circuit execution by omitting call_next(), though terminating the function calling loop may leave chat history inconsistent. The framework supports both function-based and class-based implementations, with middleware registered during agent construction and automatically routed to the correct pipeline layer.
Story comments
Loading comments…