|
@@ -0,0 +1,53 @@
|
|
|
|
|
+package org.dromara.talk.domain.dto;
|
|
|
|
|
+
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 通用对话消息接收请求
|
|
|
|
|
+ */
|
|
|
|
|
+@Data
|
|
|
|
|
+public class ConversationMessageRequest {
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 会话ID
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("conversation_id")
|
|
|
|
|
+ private String conversationId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 来源:whatsapp / zoomphone
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("source")
|
|
|
|
|
+ private String source;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户ID(客户账号或电话)
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("user_id")
|
|
|
|
|
+ private String userId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户问题
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("query")
|
|
|
|
|
+ private String query;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * AI回答
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("agent")
|
|
|
|
|
+ private String agent;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 对话轮数
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("round")
|
|
|
|
|
+ private Integer round;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 时间戳
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("timestamp")
|
|
|
|
|
+ private String timestamp;
|
|
|
|
|
+}
|