Skip to main content
Pre-release

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

SingleAxis Fabric recorder SDK for Python

The Python SDK adds passive OpenTelemetry activity capture to an AI agent. It records enough identity and causal context to reconstruct model calls, tool calls, retrieval, memory activity, side effects, delegation, retries and failures. It does not block or alter the agent.

CAPTURE -> PROTECT -> DELIVER
   ^
   |
Python SDK (optional instrumentation)

Protection and delivery happen in the customer-controlled Fabric Node. Raw LLM content capture is disabled by default.

Install

pip install singleaxis-fabric

Add OTLP export and only the integrations you use:

pip install "singleaxis-fabric[otlp,openai]"

Capture one agent decision

from fabric import Fabric, FabricConfig

fabric = Fabric(FabricConfig(tenant_id="acme", agent_id="support-agent"))

with fabric.decision(session_id="session-42", request_id="request-7") as decision:
    with decision.llm_call(provider="provider-example", model="model-example") as call:
        # Invoke the customer's model client here.
        call.set_response(model="model-example")

    with decision.tool_call("lookup_order", call_id="tool-1") as tool:
        tool.set_arguments('{"order_id":"order-123"}')
        # Invoke the customer's tool here.
        tool.set_result('{"status":"shipped"}')

The SDK hashes tool payloads locally. It does not send telemetry by itself; configure the OpenTelemetry provider/exporter used by the host application to send to Fabric Node.

Use Fabric.execution(...) to correlate multiple decisions and the retrieval, memory, side-effect, checkpoint, delegation and generic-interaction methods on Decision to capture consequential activity beyond LLM and tool calls.

Stable recorder-v1 surface

The fabric package root exports capture, activity-correlation, governed content-reference and integrity primitives only. Framework and provider instrumentation remain optional extras.

It does not export or install judges, evaluation workers, guardrail engines, prompt-time PII/NeMo controls, policy engines, tool authorization, escalation enforcement or management-plane commands.

Recorder-v1 artifacts do not contain the former runtime-control, judge, evaluation, policy, authorization or escalation modules. Their former Decision methods and Fabric constructor parameters have also been removed; this is an intentional breaking boundary so installing the recorder cannot put enforcement behavior in an agent's request path.

See the SDK scope and recorder-v1 spec for the authoritative boundary.

Development

uv sync --all-extras --dev
uv run pytest
uv run ruff check src tests
uv run mypy src

Download files

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

Source Distribution

singleaxis_fabric-0.8.0rc2.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

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

singleaxis_fabric-0.8.0rc2-py3-none-any.whl (92.5 kB view details)

Uploaded Python 3

File details

Details for the file singleaxis_fabric-0.8.0rc2.tar.gz.

File metadata

  • Download URL: singleaxis_fabric-0.8.0rc2.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for singleaxis_fabric-0.8.0rc2.tar.gz
Algorithm Hash digest
SHA256 b216e33c7aa415793914ed2bacefe133d29b4b19ded860e5473ba7a688e11d14
MD5 21ff8e6d6feaef2add7c1d371a35751c
BLAKE2b-256 7bb75ce5bf4f401768426d1797a262a13e2cd632476fd487673011a5afe9afa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for singleaxis_fabric-0.8.0rc2.tar.gz:

Publisher: release.yml on singleaxis/singleaxis-fabric

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

File details

Details for the file singleaxis_fabric-0.8.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for singleaxis_fabric-0.8.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7b207402de33d0abe281b07169f457288b4c38a46482bf4b5cd2b5a8b61e83
MD5 9c7552bc0698ef6a42634ea0b52a2bae
BLAKE2b-256 0aa671aa004c93253d175a71b4ef54d50062a0c74f38e1a64f6490e7dded2afc

See more details on using hashes here.

Provenance

The following attestation bundles were made for singleaxis_fabric-0.8.0rc2-py3-none-any.whl:

Publisher: release.yml on singleaxis/singleaxis-fabric

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.8.0rc2 This release

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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