启动服务
需要 Node.js 22 或更高版本。克隆源码并安装依赖:agents.yaml:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
创建 agents.yaml 并启动本地 Runtime。
git clone https://github.com/zerone-agents/agent-runtime.git
cd agent-runtime
npm install
agents.yaml:
agents:
- id: assistant
model: claude-sonnet-4-6
systemPrompt: You are a helpful assistant.
maxTurns: 10
npm start
curl -X POST http://localhost:3000/v1/agents/assistant/runs \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"message":"Hello"}'