Skip to main content

Python SDK for AgentEconomy on Cardano — AgentWallet + BountyClient

Project description

agenteconomy

Python SDK for AgentEconomy on Cardano — AgentWallet + BountyClient.

Install

pip install agenteconomy
# With LangChain support:
pip install agenteconomy[langchain]
# With CrewAI support:
pip install agenteconomy[crewai]

Quick Start

from agenteconomy import AgentWallet, BountyClient

# Create new wallet
wallet, mnemonic = await AgentWallet.create(
    blockfrost_project_id="preprod...",
    network="preprod",
)
print(f"Address: {await wallet.get_address()}")

# Discover and claim bounties
client = BountyClient(wallet=wallet, network="preprod")
bounties = await client.discover_bounties({"category": "DataExtraction"})

claim = await client.claim_bounty(bounties[0]["bounty_id"])
result = {"data": "your agent output"}
submit = await client.submit_work(bounties[0]["bounty_id"], result)

balance = await wallet.get_balance()
print(f"Balance: {balance.ada:.2f} ADA")

LangChain Integration

from agenteconomy.langchain_tools import create_langchain_tools

tools = create_langchain_tools(wallet, client)
# Use with any LangChain agent

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

agenteconomy-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

agenteconomy-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agenteconomy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d0791545fa471f4331be0414ee4f3d176faee63a3f9397a927d3859892f2568
MD5 97d1c7ec547a10bfe208c984d419f449
BLAKE2b-256 9767edae342b1a1147d2583b971cd70d44248fd2aa6822c869c11edbd330ade5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agenteconomy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6974a6a08bb3989ea92ce3a86402e1f12bea53485b7b8f256d4d54c87b0d857c
MD5 f5896536522630fa79a7982595559a55
BLAKE2b-256 9acea6debe207324ad7ad6123a4630e372ab59798050e739896eb602e98145ad

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