Spy Search reads its active agent list, LLM provider, and model name from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JasonHonKL/spy-search/llms.txt
Use this file to discover all available pages before exploring further.
config.json file at startup. The two endpoints below let you inspect and modify that configuration at runtime — no server restart required. Changes written via POST /agents_selection are immediately visible to subsequent API calls.
GET /get_config
Returns the current agent configuration as stored inconfig.json. Use this endpoint to confirm which agents are active and which LLM provider and model Spy Search is currently using before making searches or generating reports.
Response format: application/json
Response
The list of active agent names. For example
["reporter"] or
["planner", "searcher", "reporter"].The LLM provider currently configured. For example
"openai" or
"anthropic".The model name currently configured. For example
"gpt-4o" or
"claude-3-5-sonnet-20241022".Example
POST /agents_selection
Updates the active agent list, LLM provider, and model name. The new values are written toconfig.json immediately and will be used by all subsequent requests to search, streaming, and report endpoints.
Request format: application/json
Response format: application/json
Request Body
The request body must be a JSON object matching theAgentsRequest schema.
The list of agent names to activate. These must correspond to agents
registered in the Spy Search factory.Example:
["reporter"] or ["planner", "searcher", "reporter"]The LLM provider to use for all subsequent requests.Example:
"openai", "anthropic", "ollama"The model name to pass to the chosen provider.Example:
"gpt-4o", "gpt-4o-mini", "claude-3-5-sonnet-20241022"Response
true if the configuration was written successfully.Echo of the agent list that was saved to
config.json.Echo of the model name that was saved to
config.json.Echo of the provider that was saved to
config.json.Example
Error Response
If the write toconfig.json fails, the endpoint returns HTTP 500 with a detail message:
Changes take effect for new requests immediately. Any search, streaming,
or report requests that are already in-flight at the time of the update will
continue to use the previous configuration until they complete.