智能体
x.com ·
@hwchase17
Managed DeepAgents 推出 Managed Connections,简化 Agent 认证
LangChain CEO 转发开发者帖子,宣布 managed-deepagents 0.7 推出 Managed Connections,通过单一参数即可让代理使用自身或用户令牌,免去 OAuth 流程。
AI推荐理由 讨论 Agent 认证难题,并宣布 Managed Connections 功能,提供具体解决方案和版本号,信息明确,对开发者有实际价值。
75
浏览 9,987
点赞 88
评论 22
转发 11
正文
an increasingly hard part of agents is handling auth
does the agent act as itself, or on behalf of a user
we're trying to make this as easy as possible in managed deepagents!

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)