llama-index tools querit integration
Project description
Querit Search Tool
This tool connects to the Querit Search API and allows an Agent to perform web searches with optional filters for language, geography, site whitelist/blacklist, and time range.
Installation
pip install llama-index-tools-querit
Usage
from llama_index.tools.querit import QueritToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = QueritToolSpec(api_key="YOUR_QUERIT_API_KEY")
agent = FunctionAgent(
tools=tool_spec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("Search for the latest news about AI in 2025"))
Available Tools
search: Basic web search by query text.search_with_language: Search filtered by language (e.g."english","japanese").search_with_geo: Search restricted to a specific country (e.g."united states","japan").search_with_site_filter: Search with domain whitelist / blacklist.search_with_time_range: Search filtered to a time range (e.g."d1"past day,"m1"past month,"y1"past year).
API Key
Obtain your Querit API key from the Querit platform.
Parameters
QueritToolSpec(api_key, base_url, timeout)
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
required | Querit API key |
base_url |
str |
"https://api.querit.ai" |
API base URL |
timeout |
float |
60.0 |
Request timeout in seconds |
This loader is designed to be used as a way to load data as a Tool in an Agent.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_querit-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_tools_querit-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd573394894854c066e1aa099df5dd7f9ba1dbc595ce59276f89386412007e1
|
|
| MD5 |
4effb7d3508c5f7ee3d39ca420193908
|
|
| BLAKE2b-256 |
41f3fac8619c616cf02bd2792bc84525c8730048df72fcd3633a48014d57e216
|
File details
Details for the file llama_index_tools_querit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_querit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
878492978c77793b76dd34d5c7a36e0addedd98ffa954f62d7a2bb514c90b5dc
|
|
| MD5 |
bd2e4f3d3a32cd5600a6ca55d9ffddf4
|
|
| BLAKE2b-256 |
514566c11f66f649217a89b1fdef9b1dcf33d8cd1a6adc19455c26b8cfe23d81
|