| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-me-agent-threads-thread.yaml
- get:
- summary: 查看一个会话
- tags:
- - agent-threads
- operationId: get_api_v3_me_agent_threads_thread_
- description: |-
- 带全部可见的问答轮次(runs),按提问先后排;被「重新生成」替换掉的轮次不返回。
- 实现:`V3\MeAgentThreadController@show`
- security:
- -
- bearerAuth: []
- parameters:
- -
- name: thread
- in: path
- required: true
- schema:
- type: string
- description: 'AG-UI threadId(uuid)'
- responses:
- 200:
- description: 成功
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- thread_id:
- type: string
- title:
- type: string
- client:
- type: string
- nullable: true
- archived_at:
- type: string
- nullable: true
- last_run_at:
- type: string
- created_at:
- type: string
- updated_at:
- type: string
- deleted_at:
- type: string
- nullable: true
- runs:
- type: array
- 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 } }
- description: 仅在部分查询口径下返回。
- 401:
- $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
- 422:
- $ref: '../../main.yaml#/components/responses/ProblemValidation'
- delete:
- summary: 删除会话
- tags:
- - agent-threads
- operationId: delete_api_v3_me_agent_threads_thread_
- description: |-
- 软删:会话连同它的问答一起从我的历史里消失,之后任何接口都读不到;服务器上的数据永久保留(防滥用、改进回答)。
- 返回软删后的会话本身(200,`deleted_at` 非空),不是 204。
- 实现:`V3\MeAgentThreadController@destroy`
- security:
- -
- bearerAuth: []
- parameters:
- -
- name: thread
- in: path
- required: true
- schema:
- type: string
- description: 'AG-UI threadId(uuid)'
- responses:
- 200:
- description: 成功
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- thread_id:
- type: string
- title:
- type: string
- client:
- type: string
- nullable: true
- archived_at:
- type: string
- nullable: true
- last_run_at:
- type: string
- created_at:
- type: string
- updated_at:
- type: string
- deleted_at:
- type: string
- nullable: true
- runs:
- type: array
- 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 } }
- description: 仅在部分查询口径下返回。
- 401:
- $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
- 422:
- $ref: '../../main.yaml#/components/responses/ProblemValidation'
- patch:
- summary: 修改会话(目前只有标题)
- tags:
- - agent-threads
- operationId: patch_api_v3_me_agent_threads_thread_
- description: 实现:`V3\MeAgentThreadController@update`
- security:
- -
- bearerAuth: []
- parameters:
- -
- name: thread
- in: path
- required: true
- schema:
- type: string
- description: 'AG-UI threadId(uuid)'
- requestBody:
- required: false
- content:
- application/json:
- schema:
- type: object
- properties:
- title:
- type: string
- description: '会话标题,1–255 字'
- responses:
- 200:
- description: 成功
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- thread_id:
- type: string
- title:
- type: string
- client:
- type: string
- nullable: true
- archived_at:
- type: string
- nullable: true
- last_run_at:
- type: string
- created_at:
- type: string
- updated_at:
- type: string
- deleted_at:
- type: string
- nullable: true
- runs:
- type: array
- 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 } }
- description: 仅在部分查询口径下返回。
- 401:
- $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
- 422:
- $ref: '../../main.yaml#/components/responses/ProblemValidation'
|