Skip to main content

LlamaIndex ToolSpec for AiPayGent — 123 AI endpoints via x402 micropayments (USDC on Base)

Project description

Drop this file into any LlamaIndex project to give your agent access to 80+ paid AI endpoints via x402 micropayments.

Install:

pip install llama-index-core requests

Usage:

from llamaindex_tool import AiPayGentToolSpec

tool_spec = AiPayGentToolSpec(x402_token=”your_token”) tools = tool_spec.to_tool_list()

from llama_index.core.agent import ReActAgent from llama_index.llms.anthropic import Anthropic

llm = Anthropic(model=”claude-haiku-4-5-20251001”) agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)

response = agent.chat(“Research quantum computing and give me a summary”)

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

aipaygent_llamaindex-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

aipaygent_llamaindex-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file aipaygent_llamaindex-1.0.0.tar.gz.

File metadata

  • Download URL: aipaygent_llamaindex-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for aipaygent_llamaindex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 43e5108c48e35776d9719c6230923be248d5162449a7df63b4b0afa88521966e
MD5 9b3335f82d8832d4df6803ce5e168f19
BLAKE2b-256 7881aabcf36dd20afcada2315da2f78fb0c96496ca06a84fa9de69a4cfb68059

See more details on using hashes here.

File details

Details for the file aipaygent_llamaindex-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aipaygent_llamaindex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f92de33ddf5d81b0926ee858365facfe3db790e059a953f401dc2f1178e313
MD5 41746d469604c169aed7d5c88fb418ca
BLAKE2b-256 c10c84e8caf3502493d4b7ab71aa3ed8524c97f5f0782f2c2ab63520748ba37e

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