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.0.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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for voidly_pay_autogen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ed938bb943f5959f724b3271f23bb6f19f4166b2942cde78799bf23a5fd0c59
MD5 d73f8402277341573a7aea27fc479fa1
BLAKE2b-256 fe0c11dc78580e99777d6996cff50155131310326c53b038e52c594d4d92452d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for voidly_pay_autogen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5c0e4c7caf90617b699452b456daee43833b62a6d2ca669b811a0019641ace
MD5 cda4066472d2bb0010558053390a70eb
BLAKE2b-256 c5dd32329cfdfcb2667bb25c903ec2c7868f9b440683819a738b7e4f2eba1cc1

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