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.2.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_ucashpay-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_ucashpay-0.1.2.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_ucashpay-0.1.2.tar.gz
Algorithm Hash digest
SHA256 06f1160f38231866f3a3004abeaaefa913d72501bdf5fe144f0d986d55465a5b
MD5 a3dafc3324a163719973956bc2736f8d
BLAKE2b-256 e9389978029cd78eabb640f721877af4986d3bd4ed24bf3786c55f08625b7fac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_ucashpay-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7822a5fe3a573a8136c17a0415079bb48b599c2ff33979c6a2cf57f194580e5
MD5 79a58864870ec233e49f5c5d6cf23b1d
BLAKE2b-256 4079b934514127f0c70287041f66110075c0d44bb0c39538566fef45ad52fb9a

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