Metadata-Version: 2.3
Name: langchain-cloudsway
Version: 0.1.0
Summary: An integration package connecting Cloudsway and LangChain
License: MIT
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: langchain-core (>=0.3.15,<0.4.0)
Project-URL: Repository, https://github.com/langchain-ai/langchain
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22cloudsway%3D%3D0%22&expanded=true
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/cloudsway
Description-Content-Type: text/markdown

# langchain-cloudsway

This package contains the LangChain integration with Cloudsway.

## Installation

```bash
pip install -U langchain-cloudsway
```

## Configuration

Set your Cloudsway API credentials as an environment variable:

```bash
export CLOUDSWAY_SERVER_KEY="your-endpoint-accesskey"
```

The value should be in the format:  
`endpoint-accesskey` 
 
To get your token and subscribe to a plan, please register at [console.cloudsway.ai](console.cloudsway.ai).

## Tool

`SmartsearchTool` provides web search via the Cloudsway API.

```python
from langchain_cloudsway.smartsearch import SmartsearchTool

tool = SmartsearchTool()
result = tool.invoke({
    "query": "2024 global AI summit highlights",
    "count": 5,
    "setLang": "en"
})
print(result)
```

---

## License

This project is open-sourced under the MIT License. See [LICENSE](./LICENSE) for details.

---
