Agent API
Invoke Agent
Agent mode invocation — supports tool calling, automatic planning, and SSE streaming response
POST
The core entry point for Zeus. Starts an Agent conversation with full capabilities including MCP/OAuth tools, knowledge base RAG, memory, sandbox code execution, Skills, HITL approval, and more.
Returns an SSE streaming response. See Streaming for message format details.
Bearer JWT Token (
user_id is automatically extracted for store isolation)Core Parameters
User message content
LLM model configuration (sourced from the frontend localStorage)
Session ID for Checkpointer persistence. Auto-generated if not provided
Conversation mode:
agent— Full capability mode (default)ask— Read-only Q&A mode, write tools disabledplan— Interactive planning mode
Tool Configuration
Unified tool list. Each tool is distinguished by its
type fieldCode execution environment mode:
"cloud"— Use cloud sandbox (E2B / OpenSandbox / Daytona)"local"— Use local container (Docker / Apple Containerization), requiresworking_directory"none"— No code execution environment
Whether to enable the Web Search Tool (Tavily + DuckDuckGo)
RAG & Memory
List of knowledge base IDs. When provided, the
search_knowledge_base tool is automatically registeredWhether to enable the Memory Tool (long-term memory read/write)
Skills
Skills activation configuration
Context
List of historical conversation messages
[{ role, content, timestamp? }]List of resource files
[{ name, content, type }] (e.g. Markdown prompts)Files uploaded to the sandbox
[{ name, path, type, size? }]User-added chat attachments
[{ id, name, size, type, content }]HITL Approval
Tool interrupt configuration (Human-in-the-Loop)