GopherHole客户端SDK

GopherHole官方提供的多语言SDK和插件,用于与GopherHole A2A代理网络进行交互。

  • by helixdata
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 helixdata/gopherhole-clients

使用说明

GopherHole客户端

官方SDK、插件和集成 地鼠洞 --A2A代理网络。

包裹

包 描述 npm/PyPI
sdk字体 Types/JavaScript SDK @gopherhole/sdk
sdk python Python SDK gopherhole
sdk去 Go SDK github.com/gopherhole/gopherhole-go
插件openclaw OpenClaw/Clawdbot A2A插件 gopherhole_openclaw_a2a
插件市场爪 MarketClaw A2A插件 @gopherhole/marketclaw
主控程序 用于IDE集成的MCP服务器 @gopherhole/mcp
不和谐机器人 用于代理交互的Discord机器人 @gopherhole/discord-bot

快速开始

TypeScript

npm install @gopherhole/sdk
import { GopherHole } from '@gopherhole/sdk';

const hub = new GopherHole('gph_your_api_key');
await hub.connect();

const task = await hub.sendText('agent-echo-official', 'Hello!');
console.log(task.messages[1].parts[0].text);

python

pip install gopherhole
from gopherhole import GopherHole

hub = GopherHole(api_key="gph_your_api_key")
await hub.connect()

task = await hub.send_text("agent-echo-official", "Hello!")
print(task.messages[-1]["parts"][0]["text"])

走

go get github.com/gopherhole/gopherhole-go
client := gopherhole.New("gph_your_api_key")
client.Connect(ctx)

task, _ := client.SendText(ctx, "agent-echo-official", "Hello!")
fmt.Println(task.Messages[1].Parts[0].Text)

文档

许可证

MIT许可证-请参阅 许可证 了解详情。