Skip to main content

An integration package connecting Cloudsway and LangChain

Project description

langchain-cloudsway

This package contains the LangChain integration with Cloudsway.

Installation

pip install -U langchain-cloudsway

Configuration

Set your Cloudsway API credentials as an environment variable:

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.

Tool

SmartsearchTool provides web search via the Cloudsway API.

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 for details.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_cloudsway-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_cloudsway-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_cloudsway-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_cloudsway-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for langchain_cloudsway-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a8d33c3a17734940488ff205fbcb9449a1001b3c19466f437daecd047de9856
MD5 e50db8cdca3111bb6a0df52a1da37e10
BLAKE2b-256 89c386a55efb357989a4bacf586798144c550e9ae20ddc1da63e5b0706fe0e9a

See more details on using hashes here.

File details

Details for the file langchain_cloudsway-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_cloudsway-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f0e5f60d9ef01e906b660f399c33220d8eab92759924429a7e65344d90bcf4f
MD5 8b6233966638d183bc5fa7c32cfcb5dd
BLAKE2b-256 979020b33b0893f3d9879b076dc56163100a47acbb219a9ec4790444a489010a

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 Pingdom Monitoring Sentry Error logging StatusPage Status page