v3-me-agent-threads-thread-archive.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-me-agent-threads-thread-archive.yaml
  2. put:
  3. summary: 存档会话
  4. tags:
  5. - agent-threads
  6. operationId: put_api_v3_me_agent_threads_thread_archive
  7. description: |-
  8. 重复存档保留第一次的存档时间。返回更新后的会话。
  9. 实现:`V3\MeAgentThreadArchiveController@update`
  10. security:
  11. -
  12. bearerAuth: []
  13. parameters:
  14. -
  15. name: thread
  16. in: path
  17. required: true
  18. schema:
  19. type: string
  20. description: 'AG-UI threadId(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. thread_id:
  33. type: string
  34. title:
  35. type: string
  36. client:
  37. type: string
  38. nullable: true
  39. archived_at:
  40. type: string
  41. nullable: true
  42. last_run_at:
  43. type: string
  44. created_at:
  45. type: string
  46. updated_at:
  47. type: string
  48. deleted_at:
  49. type: string
  50. nullable: true
  51. runs:
  52. type: array
  53. items:
  54. type: object
  55. 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 } }
  56. description: 仅在部分查询口径下返回。
  57. 401:
  58. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  59. 422:
  60. $ref: '../../main.yaml#/components/responses/ProblemValidation'
  61. delete:
  62. summary: 取消存档
  63. tags:
  64. - agent-threads
  65. operationId: delete_api_v3_me_agent_threads_thread_archive
  66. description: |-
  67. 返回更新后的会话(`archived_at` 为 null)。
  68. 实现:`V3\MeAgentThreadArchiveController@destroy`
  69. security:
  70. -
  71. bearerAuth: []
  72. parameters:
  73. -
  74. name: thread
  75. in: path
  76. required: true
  77. schema:
  78. type: string
  79. description: 'AG-UI threadId(uuid)'
  80. responses:
  81. 200:
  82. description: 成功
  83. content:
  84. application/json:
  85. schema:
  86. type: object
  87. properties:
  88. data:
  89. type: object
  90. properties:
  91. thread_id:
  92. type: string
  93. title:
  94. type: string
  95. client:
  96. type: string
  97. nullable: true
  98. archived_at:
  99. type: string
  100. nullable: true
  101. last_run_at:
  102. type: string
  103. created_at:
  104. type: string
  105. updated_at:
  106. type: string
  107. deleted_at:
  108. type: string
  109. nullable: true
  110. runs:
  111. type: array
  112. items:
  113. type: object
  114. 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 } }
  115. description: 仅在部分查询口径下返回。
  116. 401:
  117. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  118. 422:
  119. $ref: '../../main.yaml#/components/responses/ProblemValidation'