v3-me-agent-threads.yaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-me-agent-threads.yaml
  2. get:
  3. summary: 列出我的会话
  4. tags:
  5. - agent-threads
  6. operationId: get_api_v3_me_agent_threads
  7. description: |-
  8. 最近提问的在前,不含已删除的。
  9. 实现:`V3\MeAgentThreadController@index`
  10. security:
  11. -
  12. bearerAuth: []
  13. parameters:
  14. -
  15. name: per_page
  16. in: query
  17. schema:
  18. type: integer
  19. default: 30
  20. description: '每页数量,最大 100'
  21. -
  22. name: 'filter[archived]'
  23. in: query
  24. schema:
  25. type: boolean
  26. description: 只看已存档(true)或未存档(false)的;不传则全部
  27. -
  28. name: page
  29. in: query
  30. schema:
  31. type: integer
  32. default: 1
  33. description: 页码
  34. responses:
  35. 200:
  36. description: 成功
  37. content:
  38. application/json:
  39. schema:
  40. type: object
  41. properties:
  42. data:
  43. type: array
  44. items:
  45. type: object
  46. properties:
  47. thread_id:
  48. type: string
  49. title:
  50. type: string
  51. client:
  52. type: string
  53. nullable: true
  54. archived_at:
  55. type: string
  56. nullable: true
  57. last_run_at:
  58. type: string
  59. created_at:
  60. type: string
  61. updated_at:
  62. type: string
  63. deleted_at:
  64. type: string
  65. nullable: true
  66. runs:
  67. type: array
  68. items: { type: object, properties: { run_id: { type: string }, question: { type: string }, answer: { type: string, nullable: true }, citations: { type: array, items: { type: object }, nullable: true }, deep: { type: boolean }, status: { type: string }, user_message_id: { type: string, nullable: true }, assistant_message_id: { type: string, nullable: true }, created_at: { type: string } } }
  69. description: 仅在部分查询口径下返回。
  70. meta:
  71. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  72. 401:
  73. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  74. 422:
  75. $ref: '../../main.yaml#/components/responses/ProblemValidation'