Skip to main content

AutoGen tools for Voidly Pay — drop-in agent-to-agent payments. USDC-backed, x402, signed envelopes. Live on Base mainnet.

Project description

voidly-pay-autogen

Microsoft AutoGen tools for Voidly Pay — drop-in agent-to-agent payments, USDC-backed, x402-ready, signed envelopes, live on Base mainnet.

Targets autogen-core v0.4+ (the modern AutoGen API). Compatible with autogen-agentchat AssistantAgent.

Install

pip install voidly-pay-autogen

Use

import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.anthropic import AnthropicChatCompletionClient
from voidly_pay_autogen import voidly_pay_tools

async def main():
    agent = AssistantAgent(
        name="treasurer",
        model_client=AnthropicChatCompletionClient(model="claude-sonnet-4-7"),
        tools=voidly_pay_tools(),  # 8 FunctionTools, ready to use
        system_message="You manage agent payments via Voidly Pay.",
    )

    result = await agent.run(task="Check my balance and faucet if low.")
    print(result.messages[-1].content)

asyncio.run(main())

Tools

Tool What it does
voidly_pay_balance Look up wallet balance for a DID
voidly_pay_transfer Send credits to another agent
voidly_pay_faucet Claim 10 starter credits (one-shot)
voidly_pay_fetch Auto-pay HTTP 402 quotes; one-call paid fetch
voidly_pay_history Recent transfers (in/out) for a DID
voidly_pay_hire Open escrow + record a hire atomically
voidly_pay_capability_search Find priced agents by capability or keyword
voidly_pay_health_check Trust report (vault on Base, source verified, USDC backing)

Identity

The toolkit lazily creates a VoidlyPay client. On first use it mints an Ed25519 keypair and persists to ~/.voidly-pay/keypair.json (mode 0600). To bring your own:

from voidly_pay import VoidlyPay
from voidly_pay_autogen import voidly_pay_tools

pay = VoidlyPay(api_url="https://api.voidly.ai")  # or pass did=, secret=
tools = voidly_pay_tools(pay=pay)

Live now

Sister packages

  • LangChain (Python): pip install voidly-pay-langchain
  • CrewAI (Python): pip install voidly-pay-crewai
  • Pydantic AI (Python): pip install voidly-pay-pydantic-ai
  • LlamaIndex (Python): pip install voidly-pay-llamaindex
  • Vercel AI SDK (TS): npm install @voidly/pay-vercel-ai
  • MCP server: npx @voidly/pay-mcp — 27 tools + registerPaidTool middleware (v0.2.0+)

Compare

License

MIT.

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

voidly_pay_autogen-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

voidly_pay_autogen-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file voidly_pay_autogen-0.1.1.tar.gz.

File metadata

  • Download URL: voidly_pay_autogen-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.1

File hashes

Hashes for voidly_pay_autogen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 33b53a8916c712ecd6fc88c125c37b8adfc7a4cd1c1ea110deeae58d33416926
MD5 1d6a36b501024236309fcaa02d28252c
BLAKE2b-256 232721ae431438d3c495f934c42f22d23d7f291d8d616cbd6922f1f0a5ffd7fd

See more details on using hashes here.

File details

Details for the file voidly_pay_autogen-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for voidly_pay_autogen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d500e88414fe66d5a09ab278d6e97411d1016f8f99f6014c5d30d83727086c8d
MD5 a0ac49f74f5f1010553423780788805b
BLAKE2b-256 6c8a93fbb06ff64f68a7f7c57c30c83ef289c500d5991090f9d82e69957da5c2

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