llama-index-integrations/tools/llama-index-tools-desearch/README.md
Here's a README for the Desearch integration, modeled after the example you provided:
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.
Website: https://desearch.io
Here's an example usage of the DesearchToolSpec.
To get started, you will need an Desearch API key
# %pip install llama-index llama-index-core desearch-py
from llama_index_desearch.tools import DesearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
desearch_tool = DesearchToolSpec(
api_key=os.environ["DESEARCH_API_KEY"],
)
agent = FunctionAgent(
tools=desearch_tool.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("Can you find the latest news on quantum computing?"))
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!