Create agent v1
Create a new agent with a model, instructions, and optional tools.
tool_ids parameter accepts IDs for any tool type, including agent-as-tools. When including agent-as-tools, the sub-agents and their tool wrappers must already exist before creating the supervisor agent.
For details on building multi-agent workflows, see Agent as tool.Authorizations
Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.
Body
DEPRECATED: Use tool_ids instead.
- CreateFileSearch
- CreateWebSearch
- CreateRunPython
{
"name": "file_search",
"tool_env": {
"document_tool_desc": "Search through uploaded documents",
"file_search_index": "my-document-index",
"score_threshold": 0.7,
"top_k": 10
}
}Preferred way to associate tools with an agent.
Optional configuration for the agent's final response. Overrides the top-level settings for response generation.
Controls the predictability of the agent's reasoning. Accepts a value from 0 to 2. Defaults to 0.6. Lower values produce more consistent results, and higher values introduce more variation.
0 <= x <= 2Controls how much reasoning the agent uses when working through a request. Accepts low, medium, or high, where higher levels produce more thorough reasoning. The speed_optimized and performance_optimized values are only supported for backward compatibility. speed_optimized maps to low, and performance_optimized maps to high.
low, medium, high, speed_optimized, performance_optimized Response
Successful Response
Inactive, Pending, Active, Updating, Failed Controls how much reasoning the agent uses when working through a request. Accepts low, medium, or high, where higher levels produce more thorough reasoning. The speed_optimized and performance_optimized values are only supported for backward compatibility. speed_optimized maps to low, and performance_optimized maps to high.
low, medium, high, speed_optimized, performance_optimized 0 <= x <= 20 <= x <= 2- FileSearch
- WebSearch
- RunPython
- AgentAsTool
- MCPConnectorTool
x >= 0