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.
string
required
Bearer JWT Token (
user_id is automatically extracted for store isolation)Core Parameters
string
required
User message content
object
required
LLM model configuration (sourced from the frontend localStorage)
string
Session ID for Checkpointer persistence. Auto-generated if not provided
string
default:"agent"
Conversation mode:
agent— Full capability mode (default)ask— Read-only Q&A mode, write tools disabledplan— Interactive planning mode
Tool Configuration
array
default:"[]"
Unified tool list. Each tool is distinguished by its
type fieldstring
default:"cloud"
Code execution environment mode:
"cloud"— Use cloud sandbox (E2B / OpenSandbox / Daytona)"local"— Use local container (Docker / Apple Containerization), requiresworking_directory"none"— No code execution environment
boolean
default:"false"
Whether to enable the Web Search Tool (Tavily + DuckDuckGo)
RAG & Memory
array
default:"[]"
List of knowledge base IDs. When provided, the
search_knowledge_base tool is automatically registeredboolean
default:"false"
Whether to enable the Memory Tool (long-term memory read/write)
Skills
object
Skills activation configuration
Context
array
default:"[]"
List of historical conversation messages
[{ role, content, timestamp? }]array
default:"[]"
List of resource files
[{ name, content, type }] (e.g. Markdown prompts)array
default:"[]"
Files uploaded to the sandbox
[{ name, path, type, size? }]array
default:"[]"
User-added chat attachments
[{ id, name, size, type, content }]HITL Approval
object
Tool interrupt configuration (Human-in-the-Loop)