SeltzSearchTool integration enables your Langroid agents to perform real-time web searches and retrieve context-engineered content.
Installation
Install Langroid with the Seltz extra:Quick Start
Get your API key from the Seltz Console and set the
SELTZ_API_KEY environment variable.Configuration
Environment Variables
Set your API key in your.env file or as an environment variable:
SeltzSearchTool Parameters
Examples
Chat Agent with Web Search
Build an interactive chatbot that uses Seltz to answer questions with real-time web content:Using as a Search Provider
Seltz is available as a search provider in Langroid’s built-inchat-search example:
How It Works
TheSeltzSearchTool is a stateless tool that can be enabled on any Langroid agent. When the LLM determines it needs web search results, it emits a tool call with a query and desired number of results. Langroid handles the tool execution, calling the Seltz API, and returns context-engineered content back to the agent.
Resources
Langroid Documentation
Full Langroid framework documentation
GitHub
Langroid source code and examples