Skip to main content

Sigmodx SDK for agent instrumentation (invoice approval, GL review, anomaly detection, trade execution, forecast generation)

Project description

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.

Project details


Download files

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

Source Distribution

sigmodx-0.5.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

sigmodx-0.5.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file sigmodx-0.5.0.tar.gz.

File metadata

  • Download URL: sigmodx-0.5.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sigmodx-0.5.0.tar.gz
Algorithm Hash digest
SHA256 85f08e6d554afc0cce126e5f2aea392222ddf61abc8c9f115ccc6aabf731f66b
MD5 fe37f8891d6d388ccccb9d7c2def5171
BLAKE2b-256 cccf312aee379f47440322f7fe7197606f4a0d111e4182052cb9c14bab00c6a9

See more details on using hashes here.

File details

Details for the file sigmodx-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: sigmodx-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sigmodx-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 616e4a6e9e58cf4a91f8c3c7cb888e00f73c065706382f4c07f00d87e9e79bae
MD5 6eda8cab74e9c247f0be21af174e4a17
BLAKE2b-256 9762ca8036f4b864ec8e9721f1008cc7c1146a8660775efb2afbac93aadf0917

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page