Metadata-Version: 2.4
Name: fetchium-langchain
Version: 1.0.0
Summary: LangChain Retriever adapter for Fetchium — token-efficient AI-native web search
Project-URL: Homepage, https://github.com/zuhabul/Fetchium
Project-URL: Repository, https://github.com/zuhabul/Fetchium
Project-URL: Issues, https://github.com/zuhabul/Fetchium/issues
License: MIT
Keywords: fetchium,langchain,rag,retriever,search
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
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: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: langchain-core>=0.2
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: rest
Requires-Dist: requests>=2.31; extra == 'rest'
Description-Content-Type: text/markdown

# fetchium-langchain

LangChain retriever adapter for Fetchium.

## Install

```bash
pip install fetchium-langchain
```

REST mode:

```bash
pip install fetchium-langchain[rest]
```

## Usage

```python
from fetchium_langchain import FetchiumRetriever

retriever = FetchiumRetriever(
    rest_base_url="https://api.fetchium.com",
    rest_api_key="fetchium_...",
    token_budget=2000,
    max_sources=5,
)

docs = retriever.invoke("Rust async runtimes")
```

CLI mode works if `fetchium` is installed on PATH.
