Skip to main content

llamaindex-nory

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

Installation

pip install llamaindex-nory

Quick Start

from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
from llamaindex_nory import NoryPaymentToolSpec

# Create tool spec
tool_spec = NoryPaymentToolSpec()

# Create agent with Nory tools
llm = OpenAI(model="gpt-4")
agent = ReActAgent.from_tools(tool_spec.to_tool_list(), llm=llm)

# Agent can now pay for premium data!
response = agent.chat("Get the current price of Bitcoin")
print(response)

Available Tools

Tool Description Cost
fetch_paid Fetch any URL with auto x402 payment Varies
crypto_prices Real-time crypto prices $0.001
weather Weather + 7-day forecast $0.002
translate Translate 20+ languages $0.005
web_summary Extract webpage content $0.01

Environment

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

Links

Metadata

Release files for llamaindex-nory 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llamaindex-nory 0.1.0
File Size Uploaded
llamaindex_nory-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llamaindex-nory 0.1.0
File Interpreter ABI Platform
llamaindex_nory-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / llamaindex_nory-0.1.0.tar.gz

Download URL llamaindex_nory-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
85dc4ba5109afd491162523737d4a58c7954aa6feb0c660ebf5feccbffdfe82e
BLAKE2b-256 checksum
How to use checksums
399547143692152924945e23f7419bafd3dbc943d1590256e804180236ee4018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release files / llamaindex_nory-0.1.0-py3-none-any.whl

Download URL llamaindex_nory-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6529046847dbf4b8c0283640ea73ce7061fe716c4843ba10235a6bce4f6573af
BLAKE2b-256 checksum
How to use checksums
dbb9b2990e6d0fe436a625f2a398ae8e20ffa811deee962b7785f7775b368826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page