AI产品精选

LangChain与AWS推出AgentCore Payments,Agent可自动支付API费用

Your agents can now pay for the APIs they use. We worked with AWS on the AgentCore Payments middlew...

精选理由

LangChain和AWS搞了个AgentCore Payments,智能体调用付费API时自动付钱,不用你手动处理402,花钱记录还进LangSmith,方便查账。

AI 摘要

LangChain与AWS合作发布了AgentCore Payments中间件,让智能体在调用付费API时自动完成支付。当工具请求遇到402错误时,中间件会对照会话预算检查价格、签名支付并重试请求。每次支付记录都会同步到LangSmith,与触发支付的推理步骤关联,便于追踪智能体消费原因。该中间件旨在消除智能体调用外部服务的付费障碍,同时保留完整的可审计日志。

原文 · LangChain

Your agents can now pay for the APIs they use. We worked with AWS on the AgentCore Payments middlew...

Your agents can now pay for the APIs they use. We worked with AWS on the AgentCore Payments middleware. When a tool hits a paid API that returns a 402, it checks the price against your session budget, signs the payment, and retries. The agent gets its data and never has to handle the paywall. Every payment also lands in LangSmith next to the reasoning that caused it. It's not enough that the agent worked and paid, somebody is going to ask what it bought and why. Link to blog - langchain.com/blog/langchain… 💬 3 🔄 1 ❤️ 12 👀 1654 📊 5 ⚡