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.2.0.tar.gz (4.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_seltz-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.0.tar.gz
Algorithm Hash digest
SHA256 0c80cafdde647f4aadb066628f45891498c0bec8994e8300e0f4d91fc2a7b558
MD5 e53533c9510b9278950f9817d3556abc
BLAKE2b-256 59139d4107762de5c8f1980e7f0e171cb66b17b7d4eb9f736078c5fb03e16c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 004d36825ad4fe6cb66b4ad163458e624f0ee30156ece9cea4e0cbb4ce439dc1
MD5 bb798ea40131416f0cf8a9519574ef03
BLAKE2b-256 085b1f47f62dd67b404c2273b5d3a5c6027cf09dbff19a8a241cd5114dce20fb

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