Skip to main content

langchain-ucashpay

LangChain tools for U.CASH agent monetization over HTTP-402. Give a LangChain agent the ability to create priced resources and check its earnings.

pip install agents-u-cash langchain-core
from ucashpay_langchain import tools
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI

ucash = tools(api_key="uxc_...")  # your U.CASH agent API key
agent = initialize_agent(ucash, ChatOpenAI(), agent=AgentType.OPENAI_FUNCTIONS, verbose=True)
agent.run("Create a $0.05 resource for my endpoint, then list my resources.")

Tools: create_priced_resource(amount, currency), list_resources(), get_settlements(). Each buyer pays per request via U.CASH Pay (HTTP-402); settlement is non-custodial, direct to your wallet.

License

MIT.

Metadata

Release files for langchain-ucashpay 0.1.2

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

Source distribution (sdist)

Source distribution for langchain-ucashpay 0.1.2
File Size Uploaded
langchain_ucashpay-0.1.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-ucashpay 0.1.2
File Interpreter ABI Platform
langchain_ucashpay-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / langchain_ucashpay-0.1.2.tar.gz

Download URL langchain_ucashpay-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
06f1160f38231866f3a3004abeaaefa913d72501bdf5fe144f0d986d55465a5b
BLAKE2b-256 checksum
How to use checksums
e9389978029cd78eabb640f721877af4986d3bd4ed24bf3786c55f08625b7fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / langchain_ucashpay-0.1.2-py3-none-any.whl

Download URL langchain_ucashpay-0.1.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7822a5fe3a573a8136c17a0415079bb48b599c2ff33979c6a2cf57f194580e5
BLAKE2b-256 checksum
How to use checksums
4079b934514127f0c70287041f66110075c0d44bb0c39538566fef45ad52fb9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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