This release is a pre-release and may not be stable for production use.
Runlet Harness
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:
- Update the version in
pyproject.toml. - Merge to
main. - Create a tag such as
v0.1.0a1. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runlet_harness-0.1.0a2.tar.gz.
File metadata
- Download URL: runlet_harness-0.1.0a2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad36ddae9fd52135eec2dec556804ebedbfab8936bd24aa4d022e9295b09e05
|
|
| MD5 |
201ff7b8419fd48816b0adfd08c6a0bc
|
|
| BLAKE2b-256 |
b8801f60d1e5ec2423d68e73c086e735c98c8c2a9ea5a50ec203ba7312d8b8eb
|
Provenance
The following attestation bundles were made for runlet_harness-0.1.0a2.tar.gz:
Publisher:
publish.yml on DMIAOCHEN/runlet-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runlet_harness-0.1.0a2.tar.gz -
Subject digest:
3ad36ddae9fd52135eec2dec556804ebedbfab8936bd24aa4d022e9295b09e05 - Sigstore transparency entry: 2530968441
- Sigstore integration time:
-
Permalink:
DMIAOCHEN/runlet-harness@2a42ca2f4ac284651fccd024f9ee1497b3da5f84 -
Branch / Tag:
refs/tags/v0.1.0a2 - Owner: https://github.com/DMIAOCHEN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2a42ca2f4ac284651fccd024f9ee1497b3da5f84 -
Trigger Event:
push
-
Statement type:
File details
Details for the file runlet_harness-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: runlet_harness-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68f03467072c62dedc7b65dc3ebbb5f5606ebb8185742e635f9903bd5f0498ad
|
|
| MD5 |
8b7047e39cf01d4e14935b6b0c34dcd7
|
|
| BLAKE2b-256 |
32518bf4ad3580191ffe14bc703ab7ed844eefb96ec11eb3b3f7e39041d8f60c
|
Provenance
The following attestation bundles were made for runlet_harness-0.1.0a2-py3-none-any.whl:
Publisher:
publish.yml on DMIAOCHEN/runlet-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runlet_harness-0.1.0a2-py3-none-any.whl -
Subject digest:
68f03467072c62dedc7b65dc3ebbb5f5606ebb8185742e635f9903bd5f0498ad - Sigstore transparency entry: 2530968503
- Sigstore integration time:
-
Permalink:
DMIAOCHEN/runlet-harness@2a42ca2f4ac284651fccd024f9ee1497b3da5f84 -
Branch / Tag:
refs/tags/v0.1.0a2 - Owner: https://github.com/DMIAOCHEN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2a42ca2f4ac284651fccd024f9ee1497b3da5f84 -
Trigger Event:
push
-
Statement type: