Skip to main content

Seltz Web Knowledge Tool

Seltz provides fast, up-to-date web data with context-engineered web content and sources for real-time AI reasoning. Web content is processed and shaped to maximize usefulness for LLMs, AI agents, and RAG pipelines.

To begin, you need to obtain an API key from Seltz.

Installation

pip install llama-index-tools-seltz

Usage

from llama_index.tools.seltz import SeltzToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

seltz_tool = SeltzToolSpec(api_key="your-seltz-api-key")

agent = FunctionAgent(
    tools=seltz_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4o"),
)

await agent.run("What are the latest developments in AI reasoning?")

Available Functions

search: Search the web using Seltz and return relevant documents with sources. Returns a list of Document objects containing web content and source URLs.

Parameters

  • query (str): The search query text.
  • max_documents (int, optional): Maximum number of documents to return (default: 10).
  • context (str, optional): Additional context to refine search results.
  • profile (str, optional): Profile to customize search behavior.

Example

from llama_index.tools.seltz import SeltzToolSpec

seltz_tool = SeltzToolSpec(api_key="your-seltz-api-key")

documents = seltz_tool.search("web knowledge for AI agents", max_documents=5)

for doc in documents:
    print(f"URL: {doc.metadata['url']}")
    print(f"Content: {doc.text[:200]}...")

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

Metadata

Release files for llama-index-tools-seltz 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-seltz 0.5.0
File Size Uploaded
llama_index_tools_seltz-0.5.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-seltz 0.5.0
File Interpreter ABI Platform
llama_index_tools_seltz-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / llama_index_tools_seltz-0.5.0.tar.gz

Download URL llama_index_tools_seltz-0.5.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b6ef3b5c34c531742136cdd9482bc898b7dd79e077f13279664bc26005a6b747
BLAKE2b-256 checksum
How to use checksums
141a512d35333a3ed0cddbe8aa364c1304aeab5f758505f7eaffc2d54ee2206d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_tools_seltz-0.5.0-py3-none-any.whl

Download URL llama_index_tools_seltz-0.5.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28d5d8161cbdf7afc528a23bc736f4dd7b8867c14a69dfd274470a9087b3aa63
BLAKE2b-256 checksum
How to use checksums
c246c0b9997e52671956a1375eee8d05ec1aa76cbdf089bb86ce05d63d06ebd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page