Skip to main content

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 (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 the KEENABLE_API_KEY environment variable. Blank → keyless public endpoints.
  • Endpoint (optional). KEENABLE_API_URL overrides the base URL (HTTPS enforced; plain http only 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_keenable-0.1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_keenable-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_keenable-0.1.2.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_keenable-0.1.2.tar.gz
Algorithm Hash digest
SHA256 462859ff69308cd23777adce019fb07859da7ddd7fea21301e3cf49800281bc4
MD5 d85d2541384a42041d26427355152016
BLAKE2b-256 54bb215df3e6ec3cd79c97e7164b077f28085726046e8ca9cde409d6120e05a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_keenable-0.1.2.tar.gz:

Publisher: publish.yml on keenableai/llama-index-tools-keenable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llama_index_tools_keenable-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_keenable-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e526cc5cdefe26b5fc9ff6556b17e5ce124d12c0faf4a298307d27b512744c34
MD5 b758b0429e6c64d4c9049f0e860a9206
BLAKE2b-256 521198d063020757cbce912253be15e20d74669ffeba891b495075cf91199b97

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_keenable-0.1.2-py3-none-any.whl:

Publisher: publish.yml on keenableai/llama-index-tools-keenable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page