Create Search Tool
Changed onAdd a search or fetch instance at runtime. Storing an API key requires OTARI_SECRET_KEY.
Creating a second search instance, while the first is the in-loop default only because it is the only one, first sets web_search_default_tool to the first in the same commit, and says so in the response, so that adding an instance never turns in-loop search off. That runtime value wins over the configuration file until it is cleared.
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Request body
Example request
{
"api_base": "http://searxng:8080",
"name": "local",
"provider": "searxng"
}Response
Successful Response
Changes
- breaking
added the pattern
^[^/:]+$to the request property - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
added the optional property
to the response with the status
- info