LangChain toolkit for AiPayGent — 123 AI endpoints via x402 micropayments (USDC on Base)
Project description
Drop this file into any LangChain project to give your agent access to 80+ paid AI endpoints via x402 micropayments.
- Install:
pip install langchain-core requests
- Usage:
from aipaygent_langchain import AiPayGentToolkit from langchain.agents import AgentExecutor, create_openai_tools_agent
tools = AiPayGentToolkit(x402_token=”your_token”).get_tools() agent = create_openai_tools_agent(llm, tools, prompt) executor = AgentExecutor(agent=agent, tools=tools)
result = executor.invoke({“input”: “Research quantum computing and summarize it”})
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 Distributions
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 aipaygent_langchain-1.0.1-py3-none-any.whl.
File metadata
- Download URL: aipaygent_langchain-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0574d81762a2ec67f36605fb42a133750219fd17c6ab23af98aa3b1875e35b59
|
|
| MD5 |
5954e5b06710302711897b622d7c5219
|
|
| BLAKE2b-256 |
2f635763740bb8bdfd51c0e9644a9e02028718d8129aaacd63a2c453cfd2ac08
|