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.3.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.3.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 a94688434401d9cc4e3ca18bfb7be59a8094db52e36cd0a009ef7736db9671f1
MD5 8d77a425c4123e265c054abba2e99df4
BLAKE2b-256 d9e704721571dda62014910eceb13695f9f0f35a93311c14323718eaf48ef86a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_seltz-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc559bf2eb4c22dd16e7c5091c2742b85f41c6146dd62400d9c449383f3d68a
MD5 8a775447936c5d459896d2a56ac6190f
BLAKE2b-256 890c74cd31e4dce4a2d8702951e4e1166f37fa1114fcb1f5d51de1a6bdef1d37

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