agent-runtime API
由
scripts/generate-api-docs.ts自动生成 —— 请勿手改 共 4 个端点
POST /agent-runtime/benchmark
运行内置基准(mock LLM,不烧 token)
请求体
json
{
"$ref": "#/components/schemas/RunAgentRuntimeBenchmarkDto"
}响应
| 状态码 | 说明 |
|---|---|
| 201 |
GET /agent-runtime/history
Agent runtime 历史采样(Mongo)
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
minutes | query | number | — | |
limit | query | number | — |
响应
| 状态码 | 说明 |
|---|---|
| 200 |
GET /agent-runtime/metrics
Agent runtime 实时指标快照
响应
| 状态码 | 说明 |
|---|---|
| 200 |
POST /agent-runtime/metrics/reset
重置内存计数(历史采样不受影响)
响应
| 状态码 | 说明 |
|---|---|
| 201 |