Skip to main content

langchain-ucash

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 ucash_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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_ucash-0.1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

langchain_ucash-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_ucash-0.1.3.tar.gz.

File metadata

  • Download URL: langchain_ucash-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for langchain_ucash-0.1.3.tar.gz
Algorithm Hash digest
SHA256 622ee686c6fac443f0505d7f9b5d783284506bf668d1583eaee807b3b32aca95
MD5 f8197d8d9cef407da6b9da80669e661a
BLAKE2b-256 ccea42ec08e141a2dab62e6c4cd724558ff151e07505fcd5193661d87c03ef30

See more details on using hashes here.

File details

Details for the file langchain_ucash-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_ucash-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 351da0111fee483affdce1ffbc3204f0d83693307c3da6b9b45e9312afe0b854
MD5 6f12900ef0a8c5462007923f1b7af6f2
BLAKE2b-256 d662d7cf70014412e516ab28f75af8de701c3d0d81079833297a0d82909e9499

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 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