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.2.0.tar.gz (22.7 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.2.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reef_client-0.2.0.tar.gz
  • Upload date:
  • Size: 22.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 04d2db3c5cb450333ee0ce830219bbb398c874941927a37fb9910134dffe2ab1
MD5 c65df72a6b20e2658ef02a662b345598
BLAKE2b-256 23f5d483408ec1d6be0ee4852c58d878604cb30b4754b725788754b97e7920c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for reef_client-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: reef_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dbc2a83277d94f421188400f0238c03bb7b8fc8799c75c50f607aeccfeb3b4c
MD5 efbf2c8944e15379a3c1de6fa902eaf5
BLAKE2b-256 fc5f2f1d4771ecae7f858a9b045b16c0cd03a0d6ef19973ee4c04a5301ec312c

See more details on using hashes here.

Provenance

The following attestation bundles were made for reef_client-0.2.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

This release

0.2.0 This release

2 files

0.1.0

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