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
LLM model configuration (sourced from the frontend localStorage) Model name (e.g. gpt-4o, claude-sonnet-4-20250514)
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 disabled
plan — Interactive planning mode
Unified tool list. Each tool is distinguished by its type field Show MCP Tool (type: mcp)
transport_type
string
default: "streamable_http"
Transport type
Custom HTTP headers (optional)
Show OAuth Tool (type: oauth)
Tool name: github, gmail, google_drive, slack, notion
OAuth refresh token (optional)
Token expiration timestamp (optional)
Whether to enable the sandbox code execution tool (E2B)
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 registered
Whether to enable the Memory Tool (long-term memory read/write)
Skills
Skills activation configuration List of explicitly activated Skill names. If empty, automatic matching is used
Whether to automatically match Skills based on message content
Maximum number of Skills to activate simultaneously
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) Show tool_interrupt_config
Tool name to interrupt config mapping { enabled, requires_interrupt, allowed_decisions, timeout }
default_requires_interrupt
Whether tools not listed in the config require interrupt by default
Allowlisted tools — tools in this list execute automatically without interruption
Default timeout in seconds
curl --request POST \
--url https://zeus-api.agentspro.cn/api/agent/invoke \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"message": "Analyze the data trends in sales.csv",
"llm_config": {
"baseUrl": "https://api.openai.com/v1",
"apiKey": "sk-...",
"modelName": "gpt-4o",
"temperature": 0.7
},
"session_id": "sess_456",
"mode": "agent",
"enable_sandbox": true,
"knowledge_base_ids": ["kb_789"],
"enable_memory": true,
"tools": [
{
"type": "mcp",
"name": "tavily",
"base_url": "https://mcp.tavily.com/mcp",
"api_key": "tvly-..."
}
]
}'
data: {"type": "message_chunk", "content": "Let me help you analyze"}
data: {"type": "message_chunk", "content": " the data trends in sales.csv"}
data: {"type": "tool_call", "tool_name": "sandbox_exec", "tool_args": {...}}
data: {"type": "tool_result", "tool_name": "sandbox_exec", "result": "..."}
data: {"type": "message_chunk", "content": "Based on the analysis..."}
data: {"type": "done", "session_id": "sess_456"}