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).

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.1.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.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","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.1.0.tar.gz
Algorithm Hash digest
SHA256 6c3e21f75edd727a92155a064e96b4633b5ada08dcd6b6252f44d7236ecb9aec
MD5 85867f65467def2f8626f94270ac6cfa
BLAKE2b-256 f2624570f2da3163e271fb6043496962e9335416bfdfe0b24107df7c9d237f91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 316e837d8793c71f3e01dfb4df3332f9180a5688d1f862d61894f924e0c4f3cc
MD5 2a7f5b015e3f4302702faa511addb63a
BLAKE2b-256 9b385e263347748946e8c0b8f4293c5e05b1b1ad1bed7887d0f8f5ab6f5c2115

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