Metadata-Version: 2.4
Name: llama-index-desearch
Version: 0.0.2
Summary: Llama-index integration with Desearch API for search and data-fetching tools.
Home-page: https://github.com/Desearch-ai/llama-index-desearch
Author: Desearch
Author-email: Desearch <support@desearch.ai>
License: MIT
Project-URL: Homepage, https://github.com/Desearch-ai/llama-index-desearch
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: llama-index>=0.12.34
Requires-Dist: desearch-py>=1.0.0
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

Here's a README for the `Desearch` integration, modeled after the example you provided:

---

# LlamaIndex Tools Integration: Desearch

This tool connects to Desearch to enable your agent to perform searches across various platforms like web, Twitter, and more.

To begin, you need to obtain an API key from the Desearch developer dashboard.

## Usage

Here's an example usage of the `DesearchToolSpec`.

```python
# %pip install llama-index llama-index-core desearch-py

from llama_index_desearch.tools import DesearchToolSpec
from llama_index.agent.openai import OpenAIAgent

desearch_tool = DesearchToolSpec(
    api_key=os.environ["DESEARCH_API_KEY"],
)
agent = OpenAIAgent.from_tools(desearch_tool.to_tool_list())

agent.chat(
    "Can you find the latest news on quantum computing?"
)
```

### Available Functions

- **ai_search_tool**: Perform a search using Desearch across multiple platforms like web, Twitter, Reddit, etc.
- **twitter_search_tool**: Perform a basic Twitter search using the Desearch API.
- **web_search_tool**: Perform a basic web search using the Desearch API.

This loader is designed to be used as a way to load data as a Tool in an Agent.

--- 

You can copy and paste this into your README file. Let me know if you need any more modifications!
