Skip to main content

llm-refract

Provider-neutral Python instrumentation for AI applications, plus an optional MCP interface to the Refract execution engine. Export portable .rfr files or submit snapshots to the Refract REST service.

Install

pip install llm-refract

MCP support is an optional extra:

pip install "llm-refract[mcp]"

SDK usage

import refract

with refract.run("agent", path="run.rfr"):
    refract.event(type="generation", name="answer", output={"text": "Hello"})

See the usage guide.

MCP server

Executable stdio interface to the Rust Refract API: ten read-only tools, plus import/fork tools when REFRACT_MCP_ALLOW_WRITES=1. Requires the mcp extra above. Start with:

refract-mcp

See configuration, tool inventory and limits. Implementation: server.py.

Release files for llm-refract 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-refract 0.1.2
File Size Uploaded
llm_refract-0.1.2.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-refract 0.1.2
File Interpreter ABI Platform
llm_refract-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 24.2 kB

Release files / llm_refract-0.1.2.tar.gz

Download URL llm_refract-0.1.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
546d89a8a2f593dc7e7ec1a4526816cbc1823e1744d043d2f79a4074e5546e30
BLAKE2b-256 checksum
How to use checksums
a023352c76e46ed1f031e80c1effd74e3814f292f0400f02e3d85bd13750283b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / llm_refract-0.1.2-py3-none-any.whl

Download URL llm_refract-0.1.2-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
182bbeb8c25e00db368b2b27a492a79a72753c3617e58f2d013cf92e3b301b53
BLAKE2b-256 checksum
How to use checksums
d1ae5db61531ed41ca0e5d2bd765b23f707bad0f2196021bcc8e94004499378b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release 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