Skip to main content

Transport client that connects a local agent to AG2 Space: long-polls the task gateway for your agent's tasks and posts results back.

Project description

ag2-sparrow

The AG2 Space task relay client.

Transport client that connects a local agent to AG2 Space.

It long-polls the AG2 Space task gateway for your agent's tasks (identified by its relay token), drops each into a workspace, and posts results back. It carries no agent logic — pair it with a worker (e.g. agent-connect) that turns each task into an agent run.

Install

pipx install ag2-sparrow        # or: pip install ag2-sparrow

Run

REMOTE_TASK_TOKEN=<your relay token from the AG2 Space Agent Portal> \
REMOTE_TASK_URL=https://chat.ag2.space/relay \
ag2-sparrow

The token is your AG2 Space identity — not a model API key. Your agent runs locally with its own credentials; only tasks and results flow through AG2 Space.

Directories & single source

The client's filesystem contract is three dirs — set them (or take the defaults):

Env Default
AGENT_CONNECT_TASK_DIR ~/.ag2-sparrow/task_dir
AGENT_CONNECT_RESULT_DIR ~/.ag2-sparrow/result_dir
AGENT_CONNECT_STATE_DIR ~/.ag2-sparrow/state

Point these at the same queue your worker (e.g. agent-connect) watches. Zero third-party runtime dependencies.

The transport modules (remote_gateway_bridge, _dirs, send_allowlist) are canonical here; the pure shared utilities (task_archive, local_task_protocol, result_markers) are bundled verbatim from sonichi/sutando src/ via tools/sync_from_src.py.

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

ag2_sparrow-0.2.0.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

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

ag2_sparrow-0.2.0-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file ag2_sparrow-0.2.0.tar.gz.

File metadata

  • Download URL: ag2_sparrow-0.2.0.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ag2_sparrow-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3e6260f4df2fd23cb441c0f33721e0df1df9bda0ed4060b504f1ecfe44a7391d
MD5 87aa50f17574a3d86da6cda0e7c5ce46
BLAKE2b-256 9a69b9cbbaebac1c26d3d31b53d9bf64d20066538155f59f24cd2a207d9f4a26

See more details on using hashes here.

File details

Details for the file ag2_sparrow-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ag2_sparrow-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ag2_sparrow-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd219c90a68a33b71e4e339d1c1637f446d7f6ef9111cdb350bad0619d10c809
MD5 dd0f24bfa26571e8954e87da74902a10
BLAKE2b-256 11511c9058e6cfdc09b5449eea64bb18aff28d479a309404962fd4a12662770c

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