产品

Managed Deep Agents 0.7 推出 Connections 功能

New in Managed Deep Agents 0.7: Connections

精选理由

LangChain 新版代理工具简化了 OAuth 认证,一行代码就能搞定代理身份切换。

LangChain 发布 Managed Deep Agents 0.7 版本,新增 Connections 功能简化代理认证流程。开发者可通过代码定义代理使用自身令牌或用户令牌,避免复杂的 OAuth 配置。该功能现已可在 managed-deepagents 0.7 版本中使用。

原文 · LangChain

New in Managed Deep Agents 0.7: Connections

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 💬 1 🔄 2 ❤️ 3 👀 1932 📊 2 ⚡