Microsoft just released a Python framework to light up AI agents!
Agent Lightning is an open source framework that lets you train and improve AI agents without rewriting the logic.
It works with existing setups like LangChain, AutoGen, or the OpenAI Agents SDK.
Agent frameworks could only run agents. They could not learn from experience or feedback. Improving them meant manual prompt tuning or retraining from scratch.
Agent Lightning changes that by adding a simple training layer on top of your current agent. You can define reward functions, capture traces of how the agent performs, and use reinforcement learning to make it better over time.
Key Features:
• Works with existing agent stacks like LangChain and AutoGen
• Adds a training loop with minimal code changes
• Supports reinforcement learning, prompt tuning, and supervised fine-tuning
• Automatically captures prompts, actions, and rewards for training
• Lets you define custom reward functions for your use case
It is 100% open source.