Basic Usage
Web Search is triggered automatically when your question requires current or external information. You can also specify it explicitly via the API.tool_choice is set to "auto", Zark decides whether Web Search is needed based on your query. Setting tools: ["web_search"] makes it available — not mandatory.
Forcing Web Search
To ensure Web Search is always used, settool_choice to target it:
Streaming
Web Search supports streaming via Server-Sent Events (SSE):Python
Streaming Events
| Event | Description |
|---|---|
ai_chunk | Incremental text content of the response |
ai_complete | Final complete response |
How It Works
When Web Search is triggered, Zark:- Formulates targeted search queries based on your question
- Searches the web and identifies relevant sources
- Reads and extracts information from the most relevant pages
- Synthesizes findings into a coherent answer with source attribution