智能体
x.com ·
@LangChain(@LangChainAI)
Managed Deep Agents 0.7发布:新增Connections功能,简化Agent认证
LangChain发布Managed Deep Agents 0.7,新增Connections功能,允许开发者通过代码定义Agent身份(agent或user),自动处理OAuth、令牌存储和刷新,避免复杂的认证流程。
AI推荐理由 LangChain官方发布Managed Deep Agents 0.7新增Connections功能,解决Agent认证难题,支持agent和user两种身份模式,简化OAuth流程。信息具体,对Agent开发者有实用价值。
75
正文
New in Managed Deep Agents 0.7: Connections

Caspar@caspar\_br
Agent auth is hard, but it shouldn't be!
Your agent needs to act as someone: sometimes that's one shared identity, sometimes it's the person asking. To get either right you'll need an OAuth app for each service, a token store, refresh logic, and a consent flow
Today we're fixing this with Managed Connections: define who your agent acts as in code, and the rest is handled for you:
𝚊𝚐𝚎𝚗𝚝 -> agent uses its own token
𝚞𝚜𝚎𝚛 -> agent uses the user's token, guiding them through the consent flow if they haven't connected yet
With a single argument you avoid the whole OAuth dance. Available now, in 𝚖𝚊𝚗𝚊𝚐𝚎𝚍-𝚍𝚎𝚎𝚙𝚊𝚐𝚎𝚗𝚝𝚜 0.7

[🔗 View Quoted Tweet](https://x.com/caspar_br/status/2097424144459874412)
💬7🔄5❤️22👀7973📊8