Skip to main content

nexus-a2a-sdk

NEXUS Python SDK: deterministic governance for agent, tool, and payment execution.

Version License Python

The Python SDK for NEXUS, an optional AI SAFE² reference implementation for governed agent actions.

Install

pip install nexus-a2a-sdk

# Full production stack (embeddings + OPA client + OpenTelemetry)
pip install "nexus-a2a-sdk[full]"

What's Included

Module What it does
nexus_sdk.cael CAEL envelope, APEM message types, JouleWork economic accounting
nexus_sdk.memory Memory Vaccine: injection detection, drift scoring, provenance
nexus_sdk.guardian Guardian Integration Profile: per-call argument inspection
nexus_sdk.otel NOR output receipts, OpenTelemetry/OCSF audit export
nexus_sdk.agbom Dynamic Agent Bill of Materials: real-time, hash-chained
nexus_sdk.bridges Protocol bridges: MCP, ACS, A2A, LangChain, CrewAI, n8n, REST
nexus_sdk.payments Sovereign Payment Gateway contracts, deterministic controls, evidence, and readiness gates

Quick Example

from nexus_sdk.guardian import GuardianPolicy, NEXUSGuardianClient, build_tool_call_step

policy   = GuardianPolicy(blocked_argument_patterns=["../"])
guardian = NEXUSGuardianClient(inline_policy=policy,
                               fail_mode=NEXUSGuardianClient.FAIL_CLOSED)

step    = build_tool_call_step(
    agent_did="did:nexus:agent:my-agent",
    spiffe_id="spiffe://nexus.local/agent/my-agent",
    tool_name="read_file",
    tool_arguments={"path": "../../etc/passwd"},
    act_tier=2,
)
verdict = guardian.evaluate(step)
print(verdict.decision)   # deny

Documentation

Full documentation, reference deployment, OPA policies, JSON schemas, and the IETF draft: github.com/CyberStrategyInstitute/ai-safe2-framework/NEXUS

License

Apache 2.0. See LICENSE.

Metadata

Release files for nexus-a2a-sdk 0.5.0

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

Source distribution (sdist)

Source distribution for nexus-a2a-sdk 0.5.0
File Size Uploaded
nexus_a2a_sdk-0.5.0.tar.gz 138.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexus-a2a-sdk 0.5.0
File Interpreter ABI Platform
nexus_a2a_sdk-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 294.8 kB

Release files / nexus_a2a_sdk-0.5.0.tar.gz

Download URL nexus_a2a_sdk-0.5.0.tar.gz
Size 138.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3e73d184b9ff5546412edb5abe44fb59686cdde370e6f98856b62a75565d966f
BLAKE2b-256 checksum
How to use checksums
ac4a086c592658ba5dca8de62ef9e9d1bb600b586787851794d345013fe4e745
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 Oct 4, 2026.

Transparency log

Release files / nexus_a2a_sdk-0.5.0-py3-none-any.whl

Download URL nexus_a2a_sdk-0.5.0-py3-none-any.whl
Size 156.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4c3471521879f5b88d956a4dd142af592f556cb7aa8467e52678149e7145212
BLAKE2b-256 checksum
How to use checksums
65459c934fcda084babcba3f635ed5670551225dc0b828fddd0a58f6ce84bc46
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 Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 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