LangChain 分享编码 Agent 降本三步法,成本连续两月下降
LangChain 把自家编码 Agent 的账单连续两个月打下来了,三个做法都能直接抄:LangSmith 记账、gateway 设上限、OpenSWE 做模型路由。
LangChain 团队发文称其编码 Agent 成本连续第二个月显著下降。第一步是把所有用量追踪到 LangSmith,获得谁在用什么、怎么用的细粒度可见性。
第二步通过 LLM gateway 设置用户级成本上限,避免意外超支。第三步是优化自家的开源云端 Agent 框架 OpenSWE,用模型路由等方式降低调用成本。
we're seeing our coding agent costs decrease significantly for second month in row longer blog on this later, but three quick steps we took 1/ cost visibility. you cant control what you cant measure. Start tracking everything to langsmith. This gives us super granular visibility into who is using what, how they are using it, etc. LangSmith supports first party integrations with all main coding harnesses langchain.com/blog/your-codi… 2/ cost controls. Through our LLM gateway, set user level cost caps. (You can increase your cap by talking to our VPE). This helps curb unexpected or accidental spend. docs.langchain.com/langsmith/llm-… 3/ optimize the harness. Obviously 3rd party harnesses are tougher to optimize, but we are doing more and more coding through OpenSWE, our open source cloud agent harness. Things like model routing help bring the cost down langchain.com/blog/how-to-bu… feel free to reach out if you want help implementing these at your co!📊 24 ⚡
本条情报归属 AITOP「技巧」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:LangChain、LangSmith、OpenSWE、模型路由,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「Harrison Chase」(@hwchase17),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 shao__meng 等),属于近期高关注度行业信号。
- shao__meng10-02 11:40原文