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

# 运行智能体

先在目标应用与用户下创建会话，再提交消息。`/run` 等待完成后返回事件数组；`/run_sse` 持续发送事件，客户端需处理流内错误并读取到连接结束

调用会保存会话事件，模型与工具执行可能产生费用或外部操作。Harness 的请求覆盖与流式行为有所不同，见 [Harness Runtime 接口](https://docs.veadk.xyz/productions/api-reference/preview/zh/harness-runtime/overview.md)

| 方法 | 路径 | 接口 |
| - | - | - |
| POST | `/run_sse` | [流式运行智能体](https://docs.veadk.xyz/productions/api-reference/preview/zh/agent-api-server/run-sse.md) |
| POST | `/run` | [运行智能体](https://docs.veadk.xyz/productions/api-reference/preview/zh/agent-api-server/run.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.