xiaoice.go 799 B

12345678910111213141516171819202122232425262728293031
  1. package types
  2. type Xiaoice struct {
  3. SubscriptionKey string
  4. GptbotsAuthorization string
  5. }
  6. type XiaoiceSignatureResp struct {
  7. Code int64 `json:"code"`
  8. Data string `json:"data"`
  9. Msg string `json:"msg"`
  10. }
  11. type ConversationResp struct {
  12. ConversationId *string `json:"conversation_id"`
  13. }
  14. type GptbotsMessageResp struct {
  15. MessageID string `json:"message_id"`
  16. MessageType string `json:"message_type"`
  17. Text string `json:"text"`
  18. FlowOutput []FlowOutput `json:"flow_output"`
  19. CreateTime int64 `json:"create_time"`
  20. ConversationID *string `json:"conversation_id"`
  21. }
  22. type FlowOutput struct {
  23. Content string `json:"content"`
  24. Branch string `json:"branch"`
  25. FromComponentName string `json:"from_component_name"`
  26. }