package types

type Xiaoice struct {
	SubscriptionKey      string
	GptbotsAuthorization string
}

type XiaoiceSignatureResp struct {
	Code int64  `json:"code"`
	Data string `json:"data"`
	Msg  string `json:"msg"`
}

type ConversationResp struct {
	ConversationId *string `json:"conversation_id"`
}

type GptbotsMessageResp struct {
	MessageID      string       `json:"message_id"`
	MessageType    string       `json:"message_type"`
	Text           string       `json:"text"`
	FlowOutput     []FlowOutput `json:"flow_output"`
	CreateTime     int64        `json:"create_time"`
	ConversationID *string      `json:"conversation_id"`
}

type FlowOutput struct {
	Content           string `json:"content"`
	Branch            string `json:"branch"`
	FromComponentName string `json:"from_component_name"`
}