Microsoft released Agent Lightning, an open-source Python framework that lets you train and improve AI agents without rewriting your existing logic.
It works with existing setups such as LangChain, AutoGen, and the OpenAI Agents SDK, adding a training layer that helps agents learn from experience and feedback.
Key Highlights:
- Compatible with LangChain, AutoGen, and other agent frameworks
- Adds a training loop with minimal code changes
- Supports reinforcement learning, prompt tuning, and supervised fine-tuning
- Automatically captures prompts, actions, and rewards for optimization
- Allows defining custom reward functions for domain-specific tuning