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.

Download files

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

Source Distribution

langchain_ucashpay-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

langchain_ucashpay-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_ucashpay-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for langchain_ucashpay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e4461ccf58dd37a0638dc35694c7cfd43964a3f179721138c6ef45a79e16a6a5
MD5 d1cd9cf6debd1aaf6a80272ffd26478c
BLAKE2b-256 ef1d6b28fe6d50f5c69067d679bc1c3331f2e9f880a7aa15989d7608530397cc

See more details on using hashes here.

File details

Details for the file langchain_ucashpay-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_ucashpay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8142810e6b658bc76f56d923e9cbe05fd7d1f02a3ab52d0f9e1fc597c5db54f
MD5 5e1ee1c62380b5643512bcfe89c91e97
BLAKE2b-256 181b5248f6bc8e48b5eb3060517bd244199ced72d98e722ccc21fa4ab57e1075

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 Sentry Error logging StatusPage Status page