Skip to main content

llama-index tools seltz integration

Project description

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.

Project details


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_seltz-0.4.0.tar.gz (4.0 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_seltz-0.4.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_seltz-0.4.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_seltz-0.4.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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}

File hashes

Hashes for llama_index_tools_seltz-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2d7d97988dc81dcd8167e9f876b32be8f29684a591b89714078e1ec542b8dc39
MD5 2f1910698c45346b5aa7f6433acc57ce
BLAKE2b-256 1b5a24d669499652641e4e3af4b510f24a0343cae851ef2a2bef3a43bf233e0c

See more details on using hashes here.

File details

Details for the file llama_index_tools_seltz-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_seltz-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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}

File hashes

Hashes for llama_index_tools_seltz-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed41e559be79411acf2430278c232b4c9f794080eba73bb915ef1ce0dc188b03
MD5 78240dfcd2cc513d3199a599b4ee58f7
BLAKE2b-256 4402c333e880edb10a2211d9fcc0a4b234c7d3df0acb044744299be2a3050140

See more details on using hashes here.

Supported by

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