Skip to main content

reef_client

Stdlib-only client SDK for the Reef protocol. reef_client is a client of Reef's HTTP wire protocol, not of the reef package: it never imports reef and has no dependencies, so external harnesses can install it or copy it into environments that cannot take the reef wheel's dependencies.

The distribution is reef-client (pyproject.toml); the import package is the inner reef_client/ directory:

  • client.py is ReefClient, the ask/observe/report loop every example shares (see the Reef docs), plus the harness update channel reads: harness_versions (the version catalog with gate metrics) and harness_pull (write one served tree, head or version-addressed, into a directory).
  • skill.py fetches and syncs the scenario's served skill file (fetch_skill/sync_skill);
  • sse.py converts between buffered chat completions and OpenAI-style SSE chunk streams in both directions (synthesize_sse_events / SSEAccumulator).
  • serve.py is serve mode: a local sidecar that agents treat as their model endpoint (python -m reef_client.serve), owning session stamping, trajectory capture, receipt collection, and SSE passthrough/synthesis so reef-oblivious agents need no SDK. See the reference.

The client and skill helpers are re-exported at the package root: from reef_client import ReefClient, fetch_skill, sync_skill. Import the sse/serve submodules directly.

Install

pip install reef-client

For development:

git clone https://github.com/Human-Agent-Society/reef-client && cd reef-client
pip install -e .

The package is standard library only — copying the inner reef_client/ directory into your harness works too.

Download files

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

Source Distribution

reef_client-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

reef_client-0.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reef_client-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for reef_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd8a073f09d2d840c12954d8eb0e03e9c31627d2b30fdb28a98587cd12843fed
MD5 c5e98802b95c53f3a0eeb0f0c78f188a
BLAKE2b-256 177a863a2723b1896e5125163d3c6c6581c78c7416107010244b38188b063d4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for reef_client-0.1.0.tar.gz:

Publisher: release.yml on Human-Agent-Society/reef-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: reef_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for reef_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2968f66be20c8eedd76884a8069378e4d1129e0109d6e05a73fbe48ae7cce73a
MD5 c8475e150847d09989f1fe4903716181
BLAKE2b-256 e9aed56289e24cbcfed05ca47768b7f098043142670d74222e62ff2d26a92090

See more details on using hashes here.

Provenance

The following attestation bundles were made for reef_client-0.1.0-py3-none-any.whl:

Publisher: release.yml on Human-Agent-Society/reef-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page