Keenable web-search and page-fetch tool spec for LlamaIndex. Keyless by default.
Project description
LlamaIndex Tools Integration: Keenable
Keenable is a web search and page-fetch API built for AI
agents. This package provides KeenableToolSpec, a LlamaIndex tool spec with
two tools, search and fetch, usable from any LlamaIndex agent.
Keyless by default: with no API key the keyless public endpoints are used.
Provide a key to use the authenticated endpoints (required for mode="realtime"
and for higher rate limits).
Install
pip install llama-index-tools-keenable
Usage
from llama_index.tools.keenable import KeenableToolSpec
from llama_index.agent.openai import OpenAIAgent
# No api_key -> keyless public endpoints. Pass api_key=... or set
# KEENABLE_API_KEY to use the authenticated endpoints.
keenable_tool = KeenableToolSpec()
agent = OpenAIAgent.from_tools(keenable_tool.to_tool_list())
agent.chat("Find recent TypeScript best practices and summarize the top result")
Call the tools directly:
docs = keenable_tool.search("typescript best practices", site="github.com")
page = keenable_tool.fetch(docs[0].metadata["url"])
print(page[0].text)
search accepts optional per-query filters (site, published_after/before,
acquired_after/before, mode) and returns one Document per result. fetch
returns the page's main content as markdown. There is no max_results argument:
the API returns a fixed-size result set as-is.
Configuration
- API key (optional). Constructor
api_key=...or theKEENABLE_API_KEYenvironment variable. Blank → keyless public endpoints. - Endpoint (optional).
KEENABLE_API_URLoverrides the base URL (HTTPS enforced; plainhttponly for loopback). The endpoint is never a tool argument the model can set, so it cannot be used to redirect requests.
The fetch tool rejects non-http(s) schemes and private/internal hosts
client-side before sending.
License
MIT © Keenable
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_keenable-0.1.1.tar.gz.
File metadata
- Download URL: llama_index_tools_keenable-0.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4af53912590598fa30943837b1e9fbc288186ce59ac1cbcfddf04ed1ccd820a
|
|
| MD5 |
117d22a5a31509455af1bebcf49c8f52
|
|
| BLAKE2b-256 |
0740fef72d6d4cd87ee1f614c94464f7657a734cde1efea1c026bee92b3a7e0a
|
Provenance
The following attestation bundles were made for llama_index_tools_keenable-0.1.1.tar.gz:
Publisher:
publish.yml on keenableai/llama-index-tools-keenable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_keenable-0.1.1.tar.gz -
Subject digest:
e4af53912590598fa30943837b1e9fbc288186ce59ac1cbcfddf04ed1ccd820a - Sigstore transparency entry: 1908603420
- Sigstore integration time:
-
Permalink:
keenableai/llama-index-tools-keenable@c1015496a8f10e5697b2a94655068bc250075630 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/keenableai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c1015496a8f10e5697b2a94655068bc250075630 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llama_index_tools_keenable-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_keenable-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0151edd7a54d4f06571607e15b084b1cf2b7a5995bda271dbce2d809f073c907
|
|
| MD5 |
c71556ac472016171b181b110092de4f
|
|
| BLAKE2b-256 |
d8e744e4065ed96866c78c1f11a217fb3f22964744f266cf8358606f29e62e92
|
Provenance
The following attestation bundles were made for llama_index_tools_keenable-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on keenableai/llama-index-tools-keenable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_keenable-0.1.1-py3-none-any.whl -
Subject digest:
0151edd7a54d4f06571607e15b084b1cf2b7a5995bda271dbce2d809f073c907 - Sigstore transparency entry: 1908603529
- Sigstore integration time:
-
Permalink:
keenableai/llama-index-tools-keenable@c1015496a8f10e5697b2a94655068bc250075630 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/keenableai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c1015496a8f10e5697b2a94655068bc250075630 -
Trigger Event:
release
-
Statement type: