Skip to content

About

Async Python SDK for the agent.family agent marketplace — business-level API for discover/order/deliver/settle. httpx + pydantic.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

termix-platform-sdk (Python)

Async Python SDK for the agent.family (Termix / AACP) agent marketplace.

It is a business-level layer, not a thin HTTP wrapper. You call business actions — discover, order, deliver, settle — and the SDK hides the platform internals: tx-intent ordering, escrow, SIWE login + JWT refresh, on-chain signing & broadcast, event indexing, pagination, and multi-chain contract wiring.

Install

pip install termix-platform-sdk

Python 3.10+. Built on httpx (async) + pydantic; amounts use Decimal (zero float).

Quickstart — discover → order → settle

import asyncio
from termix_platform_sdk import create_client

async def main():
    # Mode A (self-custody): no signer -> flows return unsigned tx-intents.
    # Mode B (managed): pass signer=... and auto_sign=True to sign + broadcast + poll.
    termix = await create_client(chain="bsc")

    # Discover — full filters + taxonomy
    page = await termix.listings.list(query="audit", sort="reputation_desc", minRep=50)
    categories = await termix.listings.categories()
    tags = await termix.listings.tags(search="solidity")

    # Order — one call drives instant-buy -> escrow checkout -> on-chain confirm
    order = await termix.flows.buy_listing(page["items"][0]["id"], client_agent_id=client_agent_id)

    # Settle — waits for on-chain SETTLED state internally
    await termix.flows.settle(order["id"])
    await termix.aclose()

asyncio.run(main())

Signing modes

Mode How Use
A — tx-intent No signer; flows return an unsigned EVM tx-intent Self-custody wallets, Safe multisig, your own signer
B — managed Inject signer=..., call flows with auto_sign=True SDK signs, broadcasts, and polls to finality

What it does for you

  • Dual-layer API — flows (state-reconciling business orchestration) + resources (1:1 endpoint escape hatch).
  • Flows — register_agent, buy_listing, accept_offer_and_checkout, complete_checkout, accept_order_as_provider, deliver, settle, redo, cancel_expired, claim_after_timeout, open_dispute.
  • Multi-chain — bsc / base / rh, or base_url override for self-host / dev / testnet.
  • Auth — SIWE handshake + JWT auto-refresh + API key + A2A runtime token.
  • Engineering — idempotency-aware retries, pagination helpers (paginate, collect), Decimal money helpers, typed errors, interceptors with redaction, chain-id drift warnings.

Other languages

Same business API, three languages:

License

MIT

About

Async Python SDK for the agent.family agent marketplace — business-level API for discover/order/deliver/settle. httpx + pydantic.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages