v3-admin-agent-runs-digest.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-admin-agent-runs-digest.yaml
  2. get:
  3. summary: 分析用的精简导出
  4. tags:
  5. - admin
  6. operationId: get_api_v3_admin_agent_runs_digest
  7. description: |-
  8. 区间内允许用于改进回答(improve=true)的提问,最早的在前。不带任何身份(账号、设备、IP)。
  9. 每条给:问题、路由与把握度、检索词、状态与耗时、工具调用序列、用户评价、隐式信号计数、
  10. 同一会话里下一次提问隔了几秒;`full=true` 时再带回答、证据全文与引用,供 agent 评估回答质量
  11. (服务端不做质量评估)。给 wikipali 插件的 `admin digest` 与分析技能用。
  12. 实现:`V3\AdminAgentRunController@digest`
  13. security:
  14. -
  15. bearerAuth: []
  16. parameters:
  17. -
  18. name: full
  19. in: query
  20. schema:
  21. type: boolean
  22. default: false
  23. description: '是否带回答、证据全文与引用(此时 limit 最大 200)'
  24. -
  25. name: limit
  26. in: query
  27. schema:
  28. type: integer
  29. default: '500(full 时 100)'
  30. description: '最多多少条,最大 2000(full 时 200)'
  31. -
  32. name: from
  33. in: query
  34. schema:
  35. type: string
  36. default: '今天往前 29 天'
  37. description: 起始日(UTC,Y-m-d)
  38. -
  39. name: to
  40. in: query
  41. schema:
  42. type: string
  43. default: 今天
  44. description: 结束日(UTC,Y-m-d,含当天)
  45. responses:
  46. 200:
  47. description: 成功
  48. content:
  49. application/json:
  50. schema:
  51. type: object
  52. properties:
  53. data:
  54. type: array
  55. items:
  56. type: object
  57. meta:
  58. type: object
  59. properties:
  60. has_more:
  61. type: boolean
  62. description: '区间内是否还有更多(超出 limit)'
  63. 401:
  64. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  65. 422:
  66. $ref: '../../main.yaml#/components/responses/ProblemValidation'