内容讨论 图片 1

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
添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论