Skip to main content

Trust verification for agentic commerce. Verify AI shopping agents before transactions.

Project description

nerq-commerce

Trust verification for agentic commerce. Verify AI shopping agents before they transact on your behalf.

Built on the Nerq Trust Protocol.

Install

pip install nerq-commerce

Quick Start — 3 Lines

from nerq_commerce import verify_transaction

result = verify_transaction("my-agent", "vendor-agent", "purchase", "medium")
if result.approved:
    execute_transaction()

CommerceGate — Production Use

from nerq_commerce import CommerceGate

gate = CommerceGate(default_threshold=70, cache_ttl=300)

# Verify before purchase
result = gate.verify("shopping-assistant", "amazon-agent", "purchase", "high")
print(result.verdict)              # "approve", "review", or "reject"
print(result.agent_trust_score)    # 88.5
print(result.risk_factors)         # []
print(result.approved)             # True

# Batch verify
results = gate.verify_batch([
    {"agent_id": "a1", "counterparty_id": "b1", "transaction_type": "purchase", "amount_range": "low"},
    {"agent_id": "a2", "counterparty_id": "b2", "transaction_type": "payment", "amount_range": "critical"},
])

Transaction Types

Type Description Threshold Range
purchase Agent buying goods/services 60-90
delegation Delegating tasks to another agent 50-85
data_exchange Sharing data between agents 40-80
payment Financial transactions 65-95

Amount Ranges

Range Description Effect
low < $100 equivalent Lowest thresholds
medium $100-$1,000 Standard thresholds
high $1,000-$10,000 Stricter verification
critical > $10,000 Maximum scrutiny

Links

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

nerq_commerce-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

nerq_commerce-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file nerq_commerce-0.1.0.tar.gz.

File metadata

  • Download URL: nerq_commerce-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for nerq_commerce-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b0f26ef807682d1be18de219504c78621d7ca1cd9d1c999ff35431a5059d5506
MD5 56f67137c4fe0c340bebdf0ae13e2449
BLAKE2b-256 441297fbdb4f300df789351467a6a267fa4693b4094c4e723074ba5d8b90aa30

See more details on using hashes here.

File details

Details for the file nerq_commerce-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nerq_commerce-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for nerq_commerce-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ac16731befa7b36cd32777d61c766f6f4ab36215aee12e0b12cfcbb0ca9e23
MD5 086618655772f48e0c7c18c6793b3659
BLAKE2b-256 2ceb29ce239fcefea907e9a5323244e5c3b43a1760ce5f448a37804ba35ce93b

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