API 参考
Agents API
以编程方式创建、配置并与 Agent 交互。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
以编程方式创建、配置并与 Agent 交互。
GET /api/agents
POST /api/agents
{
"name": "Research Assistant",
"model": "gpt-4o",
"tools": ["browser", "file_system"],
"system_prompt": "You are a research assistant..."
}
POST /api/agents/:id/messages
{
"content": "Research the AI agent market in 2026"
}
GET /api/agents/:id/messages