Skip to main content

AutoGen tools for x402 payments - let agents pay for APIs autonomously

Project description

autogen-nory

Microsoft AutoGen tools for x402 payments - Let your agents pay for APIs autonomously.

Installation

pip install autogen-nory

Quick Start

from autogen import AssistantAgent, UserProxyAgent
from autogen_nory import register_nory_tools

# Create agents
assistant = AssistantAgent("assistant", llm_config={"model": "gpt-4"})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"use_docker": False})

# Register all Nory payment tools
register_nory_tools(assistant, user_proxy)

# Now your agents can pay for premium APIs!
user_proxy.initiate_chat(assistant, message="Get the current price of Bitcoin")

Available Tools

Tool Description Cost
nory_fetch Fetch any URL with auto x402 payment Varies
nory_crypto_prices Real-time crypto prices $0.001
nory_weather Weather + 7-day forecast $0.002
nory_translate Translate 20+ languages $0.005
nory_qrcode Generate QR codes $0.001
nory_web_summary Extract webpage content $0.01

Environment

export NORY_WALLET_KEY="your-solana-private-key"

Links

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

autogen_nory-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

autogen_nory-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for autogen_nory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59e1abb0f07f035db202e9f77c8a90e1b2bcca82415654c76ec802aeb7212935
MD5 9fa4b8550ef4695d4723fb9209b12edf
BLAKE2b-256 d6a4c4a9c9fea459df9a2b244bbf650e5dcd18bf66e5682d9e111f84d4af42ca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for autogen_nory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef1c07dd1969cd661616ade4a0d16947406de244408fab9ae86dcc1ad61fc0c1
MD5 8309da4eed920f57fc36e514babf5923
BLAKE2b-256 ce7270095f0983e8b7c32e5d904ddbc5aed171e84946cf24f52e4713bc744590

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