Smolagents tools for x402 payments - let agents pay for APIs autonomously
Project description
smolagents-nory
HuggingFace Smolagents tools for x402 payments - Let your agents pay for APIs autonomously.
Installation
pip install smolagents-nory
Quick Start
from smolagents import CodeAgent, HfApiModel
from smolagents_nory import get_nory_tools
# Get all Nory payment tools
tools = get_nory_tools()
# Create agent with tools
model = HfApiModel()
agent = CodeAgent(tools=tools, model=model)
# Agent can now pay for premium data!
result = agent.run("Get the current price of Bitcoin")
print(result)
Available Tools
| Tool | Description | Cost |
|---|---|---|
NoryFetchTool |
Fetch any URL with auto x402 payment | Varies |
NoryCryptoPricesTool |
Real-time crypto prices | $0.001 |
NoryWeatherTool |
Weather + 7-day forecast | $0.002 |
NoryTranslateTool |
Translate 20+ languages | $0.005 |
Environment
export NORY_WALLET_KEY="your-solana-private-key"
Links
- Website | Docs | x402 Protocol
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smolagents_nory-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smolagents_nory-0.1.0.tar.gz.
File metadata
- Download URL: smolagents_nory-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de035b52f5b8d8e8656274c1f6f3636938f4d7d723f1364d0ebe3851b471de5e
|
|
| MD5 |
c7473dc0d2df5171f228e748e5f2f183
|
|
| BLAKE2b-256 |
a33b858c5f92f667a31da4e6b5e12c5b4b949e024df41aec2b6769f8e51817e5
|
File details
Details for the file smolagents_nory-0.1.0-py3-none-any.whl.
File metadata
- Download URL: smolagents_nory-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ade3105457bad24bc5e69c19e6d81a1e1581e52f746e79accb81d97aadcfdcc
|
|
| MD5 |
b887f822d7567dc7c42c64219b7eefcb
|
|
| BLAKE2b-256 |
8aa5ef3b36612f2ba92352a26a33735a00e20fc241dc644baf55dfd3949a50d0
|