Skip to main content
SeltzTools enable an Agent to perform AI-powered semantic search using the Seltz API.

Prerequisites

The following example require the seltz library and an API key from Seltz.
uv pip install -U seltz
export SELTZ_API_KEY=***

Example

The following agent will search Seltz for AI safety reports.
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.seltz import SeltzTools

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    tools=[SeltzTools(show_results=True)],
    markdown=True,
)

agent.print_response("Search for current AI safety reports")

Toolkit Params

ParameterTypeDefaultDescription
api_keyOptional[str]NoneSeltz API key. If not provided, uses SELTZ_API_KEY environment variable.
endpointOptional[str]NoneCustom Seltz gRPC endpoint. If not provided, uses SDK default.
insecureboolFalseUse an insecure gRPC channel.
max_documentsint10Default maximum number of documents to return per search.
show_resultsboolFalseLog search results for debugging.
enable_searchboolTrueEnable search tool functionality.
allboolFalseEnable all tools. Overrides individual flags when True.

Toolkit Functions

FunctionDescription
search_seltzSearch Seltz for a query. Returns results as JSON with document URLs and content. Accepts query (str) and optional max_documents (int) parameters.

Developer Resources