Skip to main content

Sigmodx Python SDK

Install:

pip install sigmodx

Quickstart

from decimal import Decimal
from sigmodx import SigmodxClient, InvoiceDecision, hash_inputs

payload = {
    "invoice_amount": 142500.00,
    "vendor_id": "VENDOR-4821",
    "po_reference": "PO-4821",
    "invoice_reference": "INV-2026-0042",
}

client = SigmodxClient(api_key="sk_...", agent_id="your-agent-uuid")
decision = InvoiceDecision(
    decision_type="approve",
    input_hash=hash_inputs(payload),
    rationale="Within delegated authority; PO matches contract.",
    confidence=0.94,
    invoice_amount=Decimal("142500.00"),
    vendor_name="Acme Consulting LLC",
    vendor_id="VENDOR-4821",
    po_reference="PO-4821",
    invoice_reference="INV-2026-0042",
    delegated_authority_limit=Decimal("500000.00"),
)

result = client.submit_invoice_decision(decision)
print(result.decision_event_id, result.requires_human_approval)
client.close()

hash_inputs()

Include structural fields your agent used to decide (amounts, references, field names). Keys are sorted before hashing so the digest is stable.

Security: Never include sensitive field values in hash_inputs() if you do not want them derivable. Hash the structural payload — field names, amounts, references. Sigmodx stores only the hash.

Error handling

  • AgentBlockedError — agent reliability state is BLOCK (HTTP 403).
  • SigmodxError — other API failures.

Metadata

Release files for sigmodx 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 sigmodx 0.5.0
File Size Uploaded
sigmodx-0.5.0.tar.gz 7.1 kB Details

Built distribution (wheel)

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

Total release size: 13.4 kB

Release files / sigmodx-0.5.0.tar.gz

Download URL sigmodx-0.5.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
85f08e6d554afc0cce126e5f2aea392222ddf61abc8c9f115ccc6aabf731f66b
BLAKE2b-256 checksum
How to use checksums
cccf312aee379f47440322f7fe7197606f4a0d111e4182052cb9c14bab00c6a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL sigmodx-0.5.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
616e4a6e9e58cf4a91f8c3c7cb888e00f73c065706382f4c07f00d87e9e79bae
BLAKE2b-256 checksum
How to use checksums
9762ca8036f4b864ec8e9721f1008cc7c1146a8660775efb2afbac93aadf0917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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