mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 10:43:36 +00:00
docs: update payman docs (#29479)
- **Description:** fix the import docs variables --------- Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
parent
db1693aa70
commit
0c782ee547
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# PaymanAI
|
# PaymanAI
|
||||||
|
|
||||||
PaymanAI provides functionality to send and receive payments (fiat and crypto) on behalf of an AI Agent. To get started:
|
PaymanAI 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
|
|||||||
|
|
||||||
| Class | Package | Serializable | JS support | Package latest |
|
| Class | Package | Serializable | JS support | Package latest |
|
||||||
| :--- | :--- | :---: | :---: | :--- |
|
| :--- | :--- | :---: | :---: | :--- |
|
||||||
| PaymanAI | `langchain_community` | ❌ | ❌ | [PyPI Version] |
|
| PaymanAI | `langchain-payman-tool` | ❌ | ❌ | [PyPI Version] |
|
||||||
|
|
||||||
If you're simply calling the PaymanAI SDK, you can do it directly or via the **Tool** interface in LangChain.
|
If you're simply calling the PaymanAI SDK, you can do it directly or via the **Tool** interface in LangChain.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. **Install** the `langchain-community` (or equivalent) package:
|
1. **Install** the PaymanAI tool package:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install --quiet -U langchain-community
|
pip install langchain-payman-tool
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Install** the PaymanAI SDK:
|
2. **Install** the PaymanAI SDK:
|
||||||
@ -54,7 +53,7 @@ Your `PAYMAN_API_SECRET` should be the secret key from app.paymanai.com. The `PA
|
|||||||
Here is an example of instantiating a PaymanAI tool. If you have multiple Payman methods, you can create multiple tools.
|
Here is an example of instantiating a PaymanAI tool. If you have multiple Payman methods, you can create multiple tools.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from langchain_community.tools.langchain_payman_tool.tool import PaymanAI
|
from langchain_payman_tool.tool import PaymanAI
|
||||||
|
|
||||||
# Instantiate the PaymanAI tool (example)
|
# Instantiate the PaymanAI tool (example)
|
||||||
tool = PaymanAI(
|
tool = PaymanAI(
|
||||||
@ -104,7 +103,7 @@ You can bind a PaymanAI tool to a LangChain agent or chain that supports tool-ca
|
|||||||
1. **Sign up** at app.paymanai.com to get your **API Key**.
|
1. **Sign up** at app.paymanai.com to get your **API Key**.
|
||||||
2. **Install** dependencies:
|
2. **Install** dependencies:
|
||||||
```bash
|
```bash
|
||||||
pip install paymanai langchain-community
|
pip install paymanai langchain-payman-tool
|
||||||
```
|
```
|
||||||
3. **Export** environment variables:
|
3. **Export** environment variables:
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user