Skip to main content

Overseer 客户端:其他 AI agent 安装此包连接 overseer 服务器,上报工具、领取任务、参与多AI协同

Project description

overseer-client

Overseer 多 AI 协同平台的客户端库。

其他 AI agent 安装此包后可连接 overseer 服务器:

  • 注册为 worker(首个连接者自动成为 overseer)
  • 上报本地 MCP 工具与资源
  • 主动领取任务并执行
  • 接收 overseer 审查反馈
  • 通过 SSE 订阅事件流

安装

pip install overseer-client

# 如需启用本地工具回调服务(供服务器反向调用本 agent 工具):
pip install "overseer-client[callback]"

快速开始

import asyncio
from overseer_client import OverseerClient, ClientConfig

async def main():
    cfg = ClientConfig(
        server_url="http://127.0.0.1:8787",
        agent_name="my-worker",
        # token="your-token",  # 服务器启用鉴权时填写
    )
    async with OverseerClient(cfg) as client:
        print(f"connected: {client.agent_id} as {client.role}")
        # client 会自动心跳、轮询领取任务、订阅事件
        await asyncio.sleep(60)

asyncio.run(main())

配置

支持配置文件(~/.overseer/client.json)和环境变量:

环境变量 说明
OVERSEER_SERVER_URL 服务器地址,默认 http://127.0.0.1:8787
OVERSEER_AGENT_NAME agent 名称
OVERSEER_TOKEN 鉴权 token(服务器启用时必填)
OVERSEER_CALLBACK_PORT 本地回调端口,0 表示不启用

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

overseer_client-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

overseer_client-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file overseer_client-0.1.0.tar.gz.

File metadata

  • Download URL: overseer_client-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for overseer_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02320be8e02ec9dfff91b2115b876b7ca9506e63ec91be4a26fc1051e6556e01
MD5 cff275f9c6b981617a5f30624c63290f
BLAKE2b-256 0bd3bcf3e99ccf4a0e7244c34b6ef4c1aaf1ecb783c745a2ada79d5deb726b23

See more details on using hashes here.

File details

Details for the file overseer_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for overseer_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ba2f20058dd2b329813114dcd6255e7dd02cd6a1989cf26c524d3910469ba5
MD5 c67a774ad3d21a0143ec2211e65925f6
BLAKE2b-256 5a70831e1d69abaaea53e7fa0dea5338c3389cec33d29088cdb9c96a395a3030

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page