v3-agent-events.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-agent-events.yaml
  2. post:
  3. summary: 上报一条隐式信号
  4. tags:
  5. - agent-events
  6. operationId: post_api_v3_agent_events
  7. description: 实现:`V3\AgentEventController@store`
  8. security:
  9. - { }
  10. -
  11. bearerAuth: []
  12. requestBody:
  13. required: true
  14. content:
  15. application/json:
  16. schema:
  17. type: object
  18. properties:
  19. message_id:
  20. type: string
  21. description: 'AG-UI 回答消息 id'
  22. kind:
  23. type: string
  24. description: 信号
  25. enum:
  26. - copy
  27. - citation_open
  28. - regenerate
  29. - ask_shown
  30. device_id:
  31. type: string
  32. description: '设备匿名 id(uuid)。未登录时必填'
  33. client:
  34. type: string
  35. description: 客户端
  36. enum:
  37. - mobile
  38. - web
  39. required:
  40. - message_id
  41. - kind
  42. responses:
  43. 200:
  44. description: 成功
  45. content:
  46. application/json:
  47. schema:
  48. type: object
  49. properties:
  50. data:
  51. type: object
  52. properties:
  53. message_id:
  54. type: string
  55. kind:
  56. type: string
  57. created_at:
  58. type: string
  59. 422:
  60. $ref: '../../main.yaml#/components/responses/ProblemValidation'