This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
search
This endpoint handles two types of requests:
- Normal completion request: User message -> Agent response
- Tool approval response: User approval -> Execute tool -> Agent response
- Request 1: User sends message -> Agent requests tool call -> Return approval request
- Request 2: User approves -> Execute tool -> Agent continues with result.
Streaming is supported in JavaScript and Python only.
The JavaScript client provides
createAgentCompletionStream and the Python client provides create_agent_completion_stream.
Other languages only support non-streaming completions.Usage
See the full API reference
For more details about input parameters
and response fields.