1-
21# PaymanAI
32
43PaymanAI provides functionality to send and receive payments (fiat and crypto) on behalf of an AI Agent. To get started:
@@ -24,16 +23,16 @@ These can be wrapped as **LangChain Tools** for an LLM-based agent to call them
2423
2524| Class | Package | Serializable | JS support | Package latest |
2625| :--- | :--- | :---: | :---: | :--- |
27- | PaymanAI | ` langchain_community ` | ❌ | ❌ | [ PyPI Version] |
26+ | PaymanAI | ` langchain-payman-tool ` | ❌ | ❌ | [ PyPI Version] |
2827
2928If you're simply calling the PaymanAI SDK, you can do it directly or via the ** Tool** interface in LangChain.
3029
3130## Setup
3231
33- 1 . ** Install** the ` langchain-community ` (or equivalent) package:
32+ 1 . ** Install** the PaymanAI tool package:
3433
3534``` bash
36- pip install --quiet -U langchain-community
35+ pip install langchain-payman-tool
3736```
3837
39382 . ** Install** the PaymanAI SDK:
@@ -54,7 +53,7 @@ Your `PAYMAN_API_SECRET` should be the secret key from app.paymanai.com. The `PA
5453Here is an example of instantiating a PaymanAI tool. If you have multiple Payman methods, you can create multiple tools.
5554
5655``` python
57- from langchain_community.tools. langchain_payman_tool.tool import PaymanAI
56+ from langchain_payman_tool.tool import PaymanAI
5857
5958# Instantiate the PaymanAI tool (example)
6059tool = PaymanAI(
@@ -104,12 +103,12 @@ You can bind a PaymanAI tool to a LangChain agent or chain that supports tool-ca
1041031 . ** Sign up** at app.paymanai.com to get your ** API Key** .
1051042 . ** Install** dependencies:
106105 ``` bash
107- pip install paymanai langchain-community
106+ pip install paymanai langchain-payman-tool
108107 ```
1091083 . ** Export** environment variables:
110109 ``` bash
111110 export PAYMAN_API_SECRET=" YOUR_SECRET_KEY"
112111 export PAYMAN_ENVIRONMENT=" sandbox"
113112 ```
1141134 . ** Instantiate** a PaymanAI tool, passing your desired name/description.
115- 5 . ** Call** the tool with ` .invoke(...) ` or integrate it into a chain or agent.
114+ 5 . ** Call** the tool with ` .invoke(...) ` or integrate it into a chain or agent.
0 commit comments