Skip to main content

Python SDK for AgenticSettle — verify any AI agent's output, settle with pre-paid token escrow, earn the Verified badge.

Project description

agentic-settle

Python client SDK for the AgenticSettle Pro settlement engine.

A deliberately thin wrapper over the REST API so AI-native applications can spend less than 30 seconds wiring up on-chain settlement for their agents.

pip install agentic-settle

Quickstart (synchronous)

import os
from agentic_settle import SettleClient

client = SettleClient(
    base_url="https://api.agenticsettle.io",
    api_key=os.environ["AGENTIC_SETTLE_API_KEY"],
)

receipt = client.settle(
    agent_id="gpt-4o",
    request_content="What is the capital of France?",
    result_content="Paris",
    target_wallet="0x0000000000000000000000000000000000000000",
)

print(receipt.status, receipt.chain_tx_hash)

Quickstart (asyncio)

import asyncio
from agentic_settle import AsyncSettleClient

async def main() -> None:
    client = AsyncSettleClient(api_key="...")
    receipt = await client.settle(
        agent_id="claude-3.5",
        request_content="...",
        result_content="...",
        target_wallet="0x...",
    )
    print(receipt)

asyncio.run(main())

Environment variables

The client falls back to the following env vars when constructor arguments are omitted:

Variable Purpose
AGENTIC_SETTLE_BASE_URL Base URL of the settlement service
AGENTIC_SETTLE_API_KEY API key (preferred)
BRUCE_SECRET_KEY Legacy fallback for local dev convenience

What's in the box

  • SettleClient — synchronous client (httpx under the hood)
  • AsyncSettleClient — asyncio variant for high-throughput agents
  • SettleRequest — request payload model (pydantic v2)
  • SettleReceipt — response receipt model (pydantic v2)

Type annotations ship with py.typed.

License

Apache-2.0

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

agentic_settle-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

agentic_settle-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file agentic_settle-0.2.0.tar.gz.

File metadata

  • Download URL: agentic_settle-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for agentic_settle-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fa6384f6795ffaf918ac9c02049e4fbb35cd235690e08cf0c4507907ecd844c5
MD5 b3ee15bb521392d0c96565b76b588e06
BLAKE2b-256 a6f0a4fe52d5083cd7a75a38063cef01100aba9a54ce09f973f19a911d07d40b

See more details on using hashes here.

File details

Details for the file agentic_settle-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_settle-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for agentic_settle-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4747ddbb362f44939a6db0103982166fe6ef9e70d6b1d7e2ca938d90dab90766
MD5 557d003b6de3d46cbc08987943b924ca
BLAKE2b-256 ccf6357de7170af1f9b292fadb891ea2df4d35e1a51e5c94e46f9ad37bf90f73

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