Skip to main content
The langchain-cloro Python package wraps cloro’s sync monitor endpoints as LangChain tools, so your agents can query AI engines and Google Search and reason over structured results with sources. It’s listed in the LangChain tools index, and the source lives in the langchain-cloro repository.

Prerequisites

Install the package

Configure your API key

Set the key as an environment variable:
Or pass it directly when initializing a tool:

Available tools

Every tool accepts country (ISO 3166-1 alpha-2, defaults to "US") and include_html. CloroGoogleSearch takes a query plus device ("desktop" or "mobile"), pages (1–10), include_aioverview, and aioverview_markdown; the assistant tools take a prompt and include_markdown, and CloroChatGPT additionally supports include_raw_response and include_search_queries (query fan-out). CloroBingAIMode also takes state for a US state, and its prompt can have a maximum of 3,500 characters after URL encoding (fewer for non-Latin scripts). The package also exports get_countries() for the supported countries, optionally filtered by provider.

Invoke a tool directly

Use with an agent

Each tool call is a sync request, billed at the provider’s rate plus the +2 sync surcharge, and counts against your concurrency limits. For large batches (tracking many prompts across engines), use the async API directly instead of looping tool calls.