←新闻详情

邵猛更新于 10月21日 22:46

LiteLLM 开源 agentchat,统一接入五个聊天平台的 Agent 传输层 SDK

LiteLLM 把 Agent 传输层 SDK 开源了

AI 导读

LiteLLM 开源了 agentchat,这是一个 Python SDK,让用任意框架写的 AI Agent 统一接入 Slack、Teams、iMessage、WhatsApp、Discord 五个聊天平台,开发者无需自行处理 OAuth、webhook 签名、Socket 连接、去重和会话隔离。其架构为平台事件经 Channel 适配器解码路由,进入 AgentChat 核心完成去重、加会话锁、入历史和分发,再交给应用 handler 授权并调用 Agent,回复原路送达。开源地址见原文链接。

推荐理由

AI 评分 58

原文给出了 agentchat 的接入平台清单与内部处理流程,读者可据此判断自建传输层是否还有必要。

主题

标签

引用

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…

展开完整原文

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.

查看原帖

正文

LiteLLM 把 Agent 传输层 SDK 开源了

agentchat 这个 Python SDK 让你可以用任意框架写的 AI Agent 统一接入 Slack、Teams、iMessage、WhatsApp、Discord 五个聊天平台。避免自己处理一遍 OAuth、webhook 签名、Socket 连接、去重、会话隔离这种接入工作。

架构:管道 + 协议 + 值对象 平台事件 → Channel 适配器(解码/路由)→ AgentChat 核心(去重→加会话锁→入历史→分发) → 应用 handler(授权、调用你的 agent)→ 回复原路送达

来源

邵猛