跳到正文
TakoAPI
返回技能列表

agent-lightning

由 olmmlo-cmd 提供

Search & Research
419下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Microsoft Research's agent training framework.

描述

该技能的功能

Agent Lightning is Microsoft Research's framework for training AI agents using Reinforcement Learning, Automatic Prompt Optimization, and Supervised Fine-tuning. It instruments existing agents with minimal code changes via emit helpers or a tracer wrapper. Supports LangChain, AutoGen, CrewAI, and OpenAI Agent SDK out of the box.

Unlike manual prompt engineering or full model retraining, Agent Lightning applies RL and prompt optimization directly to your existing agent code without requiring a rewrite or framework switch.

何时使用

  • Improving a SQL-generation agent's accuracy through RL training
  • Tuning system prompts automatically for a customer support agent
  • Fine-tuning a coding assistant on preference data
  • Running benchmark evaluations on a multi-agent pipeline
  • Exporting optimized prompts or model weights for production deployment

示例工作流

输入

User asks: train my LangChain agent on SQL generation tasks using reinforcement learning

智能体
  1. 1

    Instrument the agent by wrapping it with agentlightning tracer or adding emit_tool_call helpers

  2. 2

    Create a config.yaml specifying agent type as langchain, algorithm as grpo, and eval tasks including sql-generation

  3. 3

    Run agent-lightning train --config config.yaml to start training

  4. 4

    Monitor loss curves and reward metrics via agent-lightning dashboard --port 8080

  5. 5

    Export the trained prompts or model with agent-lightning export for deployment

输出

Optimized agent with improved SQL generation accuracy, exportable for production use

前置要求

  • OPENAI_API_KEY environment variable

安装

clawhub install olmmlo-cmd/agent-lightning

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接