Python

Agent Client Protocol 的 Python 库

agentclientprotocol/python-sdk 仓库打包了 Pydantic 模型、异步基类和 JSON-RPC 管道,让你可以用 Python 构建 ACP 兼容的 agent 和客户端。它映射了官方 ACP schema,并为协议双端提供了辅助工具。

要开始使用,请将 SDK 添加到你的项目中:

pip install agent-client-protocol

(使用 uv?运行 uv add agent-client-protocol。)

该仓库在 examples/ 目录下包含 agent、客户端、Gemini CLI 桥接和双 agent/客户端演示的可运行示例。

浏览完整文档——包括快速入门、贡献辅助工具和 API 参考——请访问 agentclientprotocol.github.io/python-sdk