产品多源确认精选

LiteLLM 开源 agentchat:一套 Python SDK 统一接入 Slack、Teams 等 5 个聊天平台

精选理由

LiteLLM 开源了 agentchat,两行代码把你的 agent 接进 Slack、Teams、WhatsApp 这五个平台,OAuth 和去重它全帮你做了。

LiteLLM 团队开源了 agentchat 这个 Python SDK,用 2 行代码就能把任意 agent SDK 写的 Agent 接入 Slack、Teams、iMessage、email、WhatsApp 五个渠道。它替开发者处理 OAuth、webhook 签名、Socket 连接、消息去重、会话隔离这些重复工作。架构上采用管道式设计:平台事件先经过 Channel 适配器解码路由,再由核心层完成去重、加会话锁、写入历史后分发给应用 handler,回复按原路送回。开发者的精力可以集中在 agent 本身的逻辑上。源码托管在 GitHub 的 BerriAI/agentchat 仓库。

原文 · shao__meng

LiteLLM 把 Agent 传输层 SDK 开源了 agentchat 这个 Python SDK 让你可以用任意框架写的 AI Agent 统一接入 Slack、Teams、iMessage、WhatsApp、Discord 五个聊天平台。避免自己处理一遍 OAuth、webhook 签名、Socket 连接、去重、会话隔离这种接入工作。 架构:管道 + 协议 + 值对象 平台事件 → Channel 适配器(解码/路由)→ AgentChat 核心(去重→加会话锁→入历史→分发) → 应用 handler(授权、调用你的 agent)→ 回复原路送达 开源地址: github.com/BerriAI/agentc… Ishaan @ishaan_jaff We're open sourcing agentchat, it's a unified SDK that allows you to connect your agent to Slack, Teams, iMessage, email, and WhatsApp in 2 lines of code and works with any agent SDK We noticed we kept on rebuilding the stack to connect our agents to different channels and ended up building the same shared layer. That's where agentchat came in. This allows you as a developer to focus on your core agent's brain and let the SDK manage your connections with different channels. 🔗 View Quoted Tweet 💬 3 🔄 1 ❤️ 4 👀 410 📊 3 ⚡