Metadata-Version: 2.4
Name: smolagents-nory
Version: 0.1.0
Summary: Smolagents tools for x402 payments - let agents pay for APIs autonomously
Author-email: Nory <hello@noryx402.com>
License: MIT
Project-URL: Homepage, https://noryx402.com
Project-URL: Repository, https://github.com/TheMemeBanker/smolagents-nory
Keywords: smolagents,huggingface,ai-agents,payments,x402,solana,usdc
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: smolagents>=1.0.0
Requires-Dist: requests>=2.28.0

# smolagents-nory

**HuggingFace Smolagents tools for x402 payments** - Let your agents pay for APIs autonomously.

## Installation

```bash
pip install smolagents-nory
```

## Quick Start

```python
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

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

## Links

- [Website](https://noryx402.com) | [Docs](https://noryx402.com/docs) | [x402 Protocol](https://github.com/coinbase/x402)
