Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The absolute trainer to light up AI agents.

License

NotificationsYou must be signed in to change notification settings

microsoft/agent-lightning

Repository files navigation

Agent-lightning-banner

Agent Lightning⚡

Unit TestsDocumentationPyPI versionLicenseAsk DeepWikiDiscord

The absolute trainer to light up AI agents.

Join ourDiscord community to connect with other users and contributors.

⚡ Core Features

  • Turn your agent into an optimizable beast withZERO CODE CHANGE (almost)! 💤
  • Build withANY agent framework (LangChain, OpenAI Agent SDK, AutoGen, CrewAI, Microsoft Agent Framework...); or even WITHOUT agent framework (Python OpenAI). You name it! 🤖
  • Selectively optimize one or more agents in a multi-agent system. 🎯
  • EmbracesAlgorithms like Reinforcement Learning, Automatic Prompt Optimization, Supervised Fine-tuning and more. 🤗

Read more on ourdocumentation website.

Agent-Lightning Core Quickstart

⚡ Installation

pip install agentlightning

For the latest nightly build (cutting-edge features), you can install from Test PyPI:

pip install --upgrade --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --pre agentlightning

Please refer to ourinstallation guide for more details.

To start using Agent-lightning, check out ourdocumentation andexamples.

⚡ Articles

⚡ Community Projects

⚡ Architecture

Agent Lightning keeps the moving parts to a minimum so you can focus on your idea, not the plumbing. Your agent continues to run as usual; you can still use any agent framework you like; you drop in the lightweightagl.emit_xxx() helper, or let the tracer collect every prompt, tool call, and reward. Those events become structured spans that flow into the LightningStore, a central hub that keeps tasks, resources, and traces in sync.

On the other side of the store sits the algorithm you choose, or write yourself. The algorithm reads spans, learns from them, and posts updated resources such as refined prompt templates or new policy weights. The Trainer ties it all together: it streams datasets to runners, ferries resources between the store and the algorithm, and updates the inference engine when improvements land. You can either stop there, or simply let the same loop keep turning.

No rewrites, no lock-in, just a clear path from first rollout to steady improvement.

Agent-lightning Architecture

⚡ CI Status

WorkflowStatus
CPU Teststests workflow status
Full Teststests summary workflow status
UI TestsUI Tests
Examples Integrationexamples summary workflow status
Latest Dependency Compatibilitylatest summary workflow status
Legacy Examples Compatibilitycompat summary workflow status

⚡ Citation

If you find Agent Lightning useful in your research or projects, please cite our paper:

@misc{luo2025agentlightningtrainai,title={Agent Lightning: Train ANY AI Agents with Reinforcement Learning},author={Xufang Luo and Yuge Zhang and Zhiyuan He and Zilong Wang and Siyun Zhao and Dongsheng Li and Luna K. Qiu and Yuqing Yang},year={2025},eprint={2508.03680},archivePrefix={arXiv},primaryClass={cs.AI},url={https://arxiv.org/abs/2508.03680},}

⚡ Contributing

This project welcomes contributions and suggestions. Start by reading theContributing Guide for recommended contribution points, environment setup, branching conventions, and pull request expectations. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted theMicrosoft Open Source Code of Conduct. For more information see theCode of Conduct FAQ or contactopencode@microsoft.com with any additional questions or comments.

⚡ Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must followMicrosoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

⚡ Responsible AI

This project has been evaluated and certified to comply with the Microsoft Responsible AI Standard. The team will continue to monitor and maintain the repository, addressing any severe issues, including potential harms, if they arise.

⚡ License

This project is licensed under the MIT License. See theLICENSE file for details.


[8]ページ先頭

©2009-2026 Movatter.jp