> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerone.run/llms.txt
> Use this file to discover all available pages before exploring further.

# 响应模式

> 通过 Accept 头选择 Runtime 的 SSE 或 JSON 响应模式。

# 选择响应模式

`POST /v1/agents/:agentId/runs` 使用 `Accept` 头协商传输方式。

| `Accept`            | Body              | 结果                            |
| ------------------- | ----------------- | ----------------------------- |
| `text/event-stream` | 默认                | token 级 SSE `partial_message` |
| `text/event-stream` | `stream: "block"` | 完整消息级 SSE                     |
| `application/json`  | 默认                | 阻塞 JSON                       |

```bash theme={null}
curl -N -X POST http://localhost:3000/v1/agents/assistant/runs \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{"message":"用三点解释事件流"}'
```

每次执行都有 UUID 格式的 `runId`，可从 `X-Run-ID` 响应头、首个 SSE `system` 事件或 JSON 响应体读取。

继续阅读 [Runs API](/zh/runtime/endpoints/runs) 与 [取消 Run](/zh/runtime/run-lifecycle)。
