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.0a4.tar.gz (13.0 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.0a4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runlet_harness-0.1.0a4.tar.gz
  • Upload date:
  • Size: 13.0 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.0a4.tar.gz
Algorithm Hash digest
SHA256 7e36cbd7f905171d046b0fed31bbfc5258e954b66cc3d8cfb0e1bd0c1b1e846e
MD5 4fe93813c7dec0561920241aba0a3aba
BLAKE2b-256 5e3bbaad54fbd2fa8bb0431c65d23dcc2f758c5cb587b00896cb3d8e1227ee6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for runlet_harness-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 c41745abcc9df98165e1dac0fa5a30466ad7c8282ee6ff94fa8c970bb9ce7157
MD5 a51a8aeddf6d55449da46792ac5fbf6d
BLAKE2b-256 db4972da62cdedb18e86f546d0433dc28340af631358442ad3a1b87d3f40fe44

See more details on using hashes here.

Provenance

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