Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Runlet Harness

PyPI version Python versions CI

Application integration helpers for Runlet.

runlet-harness keeps third-party adapters, environment-based configuration, and background delivery concerns outside the small Runlet runtime core.

Install

Base package:

pip install runlet-harness

With Langfuse support:

pip install "runlet-harness[langfuse]"

Langfuse

Cloud configuration:

LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...

Self-hosted configuration:

LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_BASE_URL=https://langfuse.example.com

Usage:

from runlet import CompositeEventSink, InMemoryObserver, Runtime
from runlet_harness.observability import LangfuseEventSink

observer = InMemoryObserver()
langfuse = LangfuseEventSink.from_env()

sinks = [observer]
if langfuse is not None:
    sinks.append(langfuse)

runtime = Runtime(event_sink=CompositeEventSink(sinks))

try:
    result = await runtime.run(agent, "hello")
finally:
    if langfuse is not None:
        await langfuse.shutdown()

By default, the Langfuse sink records metadata, status, timing, tool names, and final outputs. It does not record inputs, reasoning, streaming deltas, tool arguments, tool results, or human-submitted values unless explicitly configured.

Development

Run the test suite:

PYTHONPATH=src python -m unittest discover tests

Run type checking after installing development dependencies:

pyright

Release

Runlet Harness publishes to PyPI from Git tags through GitHub Actions.

Typical release flow:

  1. Update the version in pyproject.toml.
  2. Merge to main.
  3. Create a tag such as v0.1.0a1.
  4. Push the tag.
git tag v0.1.0a1
git push origin v0.1.0a1

Download files

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

Source Distribution

runlet_harness-0.1.0a3.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

runlet_harness-0.1.0a3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file runlet_harness-0.1.0a3.tar.gz.

File metadata

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

File hashes

Hashes for runlet_harness-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 61d1d9569f5c49dcb6b59a27af295e9fbb08c7663a0b7a073c63c09bbb04624e
MD5 0325862f2811d843aac121173f01aa88
BLAKE2b-256 17538723de21c9a861783d4e18b66e8049b621bd9df4df8e954ea5d15c1994eb

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on DMIAOCHEN/runlet-harness

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

File details

Details for the file runlet_harness-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for runlet_harness-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 8db2146ce68e256873eb889bee0b917f211143205e636437d31d7e9875878320
MD5 cef61d4efb998da0d964be2bb4629d8d
BLAKE2b-256 3457c775489fcac10f203c9a122c67e86befdb9f2eb64c1ae50841ade31d9526

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on DMIAOCHEN/runlet-harness

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.1.0a3 This release

2 files

Supported by

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