Metadata-Version: 2.4
Name: langchain-ucashpay
Version: 0.1.1
Summary: LangChain tools for U.CASH agent monetization over HTTP-402.
Author: U.CASH
License: MIT
Project-URL: Homepage, https://agents.u.cash
Project-URL: Repository, https://github.com/UdotCASH/langchain-ucashpay
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: agents-u-cash
Requires-Dist: langchain-core
Dynamic: license-file

# langchain-ucashpay

[LangChain](https://www.langchain.com) tools for **U.CASH** agent monetization over **HTTP-402**. Give a LangChain agent the ability to create priced resources and check its earnings.

```bash
pip install agents-u-cash langchain-core
```

```python
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.
