
GitHub - Danau5tin/ai-trains-ai: RL-training an AI agent to RL-train AI agents.
RL-training an AI agent to RL-train AI agents. Contribute to Danau5tin/ai-trains-ai development by creating an account on GitHub.
AI developers and researchers building or optimizing LLM-based agents who want to apply reinforcement learning or prompt optimization without rewriting their agent code
Agent Lightning is a Microsoft open-source Python library for training AI agents via reinforcement learning, automatic prompt optimization, and supervised fine-tuning.
It integrates with any agent framework (LangChain, AutoGen, CrewAI, OpenAI Agent SDK, or raw OpenAI) by inserting a tracer that collects prompts, tool calls, and rewards as structured spans without modifying existing agent code. A LightningStore routes those spans to a selected algorithm that outputs refined prompts or policy weights, while a Trainer orchestrates dataset streaming, resource updates, and inference engine refresh.