v3-admin-agent-feedback.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-admin-agent-feedback.yaml
  2. get:
  3. summary: 列出评价
  4. tags:
  5. - admin
  6. operationId: get_api_v3_admin_agent_feedback
  7. description: |-
  8. 最新的在前,带对应提问的摘要与自动质量指标,便于判断问题在哪。不含账号身份。
  9. 实现:`V3\AdminAgentFeedbackController@index`
  10. security:
  11. -
  12. bearerAuth: []
  13. parameters:
  14. -
  15. name: per_page
  16. in: query
  17. schema:
  18. type: integer
  19. default: 20
  20. description: '每页数量,最大 100'
  21. -
  22. name: 'filter[rating]'
  23. in: query
  24. schema:
  25. type: string
  26. enum:
  27. - '1'
  28. - '-1'
  29. description: '1 赞 / -1 踩'
  30. -
  31. name: 'filter[tag]'
  32. in: query
  33. schema:
  34. type: string
  35. description: '按标签 / 原因筛'
  36. -
  37. name: 'filter[has_comment]'
  38. in: query
  39. schema:
  40. type: boolean
  41. description: 只看带文字说明的
  42. -
  43. name: from
  44. in: query
  45. schema:
  46. type: string
  47. description: 起始日(UTC,Y-m-d)
  48. -
  49. name: to
  50. in: query
  51. schema:
  52. type: string
  53. description: 结束日(UTC,Y-m-d,含当天)
  54. -
  55. name: page
  56. in: query
  57. schema:
  58. type: integer
  59. default: 1
  60. description: 页码
  61. responses:
  62. 200:
  63. description: 成功
  64. content:
  65. application/json:
  66. schema:
  67. type: object
  68. properties:
  69. data:
  70. type: array
  71. items:
  72. type: object
  73. properties:
  74. message_id:
  75. type: string
  76. rating:
  77. type: integer
  78. tags:
  79. type: array
  80. items: { type: string }
  81. comment:
  82. type: string
  83. nullable: true
  84. asked:
  85. type: boolean
  86. client:
  87. type: string
  88. nullable: true
  89. account_type:
  90. type: string
  91. updated_at:
  92. type: string
  93. run_id:
  94. type: string
  95. nullable: true
  96. question:
  97. type: string
  98. nullable: true
  99. route:
  100. type: string
  101. enum: [question, term, passage, chat]
  102. nullable: true
  103. status:
  104. type: string
  105. nullable: true
  106. deep:
  107. type: boolean
  108. nullable: true
  109. latency_ms:
  110. type: integer
  111. nullable: true
  112. meta:
  113. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  114. 401:
  115. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  116. 422:
  117. $ref: '../../main.yaml#/components/responses/ProblemValidation'