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.0a1.tar.gz (10.4 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.0a1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for runlet_harness-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 9cedc33948c35cf10240fd19602a98bce75408e9f7006ee41c75bdc8e102f9be
MD5 b34c6444773e1db9eb053c84029a5108
BLAKE2b-256 a6c06212df8fcf8017f2b4a6629e1ece336c525da6d8ea170d7260fcba5d6b24

See more details on using hashes here.

Provenance

The following attestation bundles were made for runlet_harness-0.1.0a1.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.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for runlet_harness-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddc43560a7a95fd1eb0b0bfb0e21f5c52372e1f5bc1a47363407641c0fe6743
MD5 b51e6978d80988c8d62dbf45ddb3c80e
BLAKE2b-256 945bdd5355e00fa168b511e3c1d8d3e219b7f7fa1afe895af94b5d31e6f6f2ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for runlet_harness-0.1.0a1-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.0a1 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