v3-admin-agent-runs-run.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-admin-agent-runs-run.yaml
  2. get:
  3. summary: 查看一次提问的研究过程
  4. tags:
  5. - admin
  6. operationId: get_api_v3_admin_agent_runs_run_
  7. description: |-
  8. 带回答、给作答 LLM 的证据全文、计划、引用与全部步骤(LLM / 工具调用、节点事件)。
  9. 实现:`V3\AdminAgentRunController@show`
  10. security:
  11. -
  12. bearerAuth: []
  13. parameters:
  14. -
  15. name: run
  16. in: path
  17. required: true
  18. schema:
  19. type: string
  20. description: 'AG-UI runId(uuid)'
  21. responses:
  22. 200:
  23. description: 成功
  24. content:
  25. application/json:
  26. schema:
  27. type: object
  28. properties:
  29. data:
  30. type: object
  31. properties:
  32. run_id:
  33. type: string
  34. thread_id:
  35. type: string
  36. nullable: true
  37. thread_title:
  38. type: string
  39. nullable: true
  40. account_type:
  41. type: string
  42. enum:
  43. - user
  44. - guest
  45. user:
  46. type: object
  47. properties:
  48. id: { type: string }
  49. nickName: { type: string }
  50. userName: { type: string }
  51. realName: { type: string }
  52. sn: { type: integer }
  53. avatar: { type: string }
  54. roles: { type: array, items: { type: string } }
  55. nullable: true
  56. device_id:
  57. type: string
  58. nullable: true
  59. client_ip:
  60. type: string
  61. nullable: true
  62. client:
  63. type: string
  64. nullable: true
  65. app_version:
  66. type: string
  67. nullable: true
  68. question:
  69. type: string
  70. route:
  71. type: string
  72. enum:
  73. - question
  74. - term
  75. - passage
  76. - chat
  77. nullable: true
  78. deep:
  79. type: boolean
  80. improve:
  81. type: boolean
  82. status:
  83. type: string
  84. latency_ms:
  85. type: integer
  86. nullable: true
  87. tokens_in:
  88. type: integer
  89. nullable: true
  90. tokens_out:
  91. type: integer
  92. nullable: true
  93. llm_calls:
  94. type: integer
  95. tool_calls:
  96. type: integer
  97. started_at:
  98. type: string
  99. nullable: true
  100. answer:
  101. type: string
  102. nullable: true
  103. description: 仅在部分查询口径下返回。
  104. evidence:
  105. type: string
  106. nullable: true
  107. description: 仅在部分查询口径下返回。
  108. plan:
  109. type: object
  110. nullable: true
  111. description: 仅在部分查询口径下返回。
  112. passage:
  113. type: object
  114. nullable: true
  115. description: 仅在部分查询口径下返回。
  116. citations:
  117. type: array
  118. items:
  119. type: object
  120. nullable: true
  121. description: 仅在部分查询口径下返回。
  122. error:
  123. type: string
  124. nullable: true
  125. description: 仅在部分查询口径下返回。
  126. model:
  127. type: string
  128. nullable: true
  129. description: 仅在部分查询口径下返回。
  130. prompt_version:
  131. type: string
  132. nullable: true
  133. description: 仅在部分查询口径下返回。
  134. steps:
  135. type: array
  136. items:
  137. type: object
  138. properties: { seq: { type: integer }, kind: { type: string }, name: { type: string, nullable: true }, args: { type: object, nullable: true }, result: { type: string, nullable: true }, result_chars: { type: integer, nullable: true }, tokens_in: { type: integer, nullable: true }, tokens_out: { type: integer, nullable: true }, ms: { type: integer, nullable: true }, error: { type: string, nullable: true } }
  139. description: 仅在部分查询口径下返回。
  140. 401:
  141. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  142. 422:
  143. $ref: '../../main.yaml#/components/responses/ProblemValidation'