Class ThreadEntity

All Implemented Interfaces:
Serializable

@Entity public class ThreadEntity extends AbstractThreadEntity
thread: 指的是一系列相关的信息或讨论按照时间顺序排列形成的一个连贯的交流脉络. 强调信息的连贯性和关联性,就像一条线将不同的消息或回复串联在一起,通常用于在线论坛、电子邮件、社交媒体等平台上, 指围绕特定主题展开的一系列连续的消息交流 conversation: 更侧重于指人与人之间面对面或通过某种通信方式进行的较为直接和实时的语言交流互动,强调交流的过程和行为本身 通常用于描述两个或多个人之间的口头或书面的交流活动,更强调交流的互动性和即时性,使用的场景较为广泛,包括日常对话、商务谈判、电话交流等 综上考虑,此处使用 thread 表示会话更为合适 every visitor to agent thread should only be one, history records are stored in thread_log table
See Also:
  • Field Details

  • Constructor Details

    • ThreadEntity

      public ThreadEntity()
  • Method Details

    • isNew

      public Boolean isNew()
    • isRoboting

      public Boolean isRoboting()
    • isLlmIng

      public Boolean isLlmIng()
    • isQueuing

      public Boolean isQueuing()
    • isOffline

      public Boolean isOffline()
    • isChatting

      public Boolean isChatting()
    • isClosed

      public Boolean isClosed()
    • isCustomerService

      public Boolean isCustomerService()
    • isRobotType

      public Boolean isRobotType()
    • isWorkgroupType

      public Boolean isWorkgroupType()
    • isAgentType

      public Boolean isAgentType()
    • isUnifiedType

      public Boolean isUnifiedType()
    • isWeChatMp

      public Boolean isWeChatMp()
    • isWeChatMini

      public Boolean isWeChatMini()
    • setRoboting

      public ThreadEntity setRoboting()
    • setLlmIng

      public ThreadEntity setLlmIng()
    • setOffline

      public ThreadEntity setOffline()
    • setQueuing

      public ThreadEntity setQueuing()
    • setChatting

      public ThreadEntity setChatting()
    • setClose

      public ThreadEntity setClose()
    • toProtobuf

      public ThreadProtobuf toProtobuf()
    • getUserProtobuf

      public UserProtobuf getUserProtobuf()
    • getAgentProtobuf

      public UserProtobuf getAgentProtobuf()
    • getRobotProtobuf

      public UserProtobuf getRobotProtobuf()
    • getWorkgroupProtobuf

      public UserProtobuf getWorkgroupProtobuf()
    • getThreadExtra

      public ThreadExtra getThreadExtra()
    • isRobotToAgent

      public Boolean isRobotToAgent()
    • getAllMessageCount

      public Integer getAllMessageCount()
    • getVisitorMessageCount

      public Integer getVisitorMessageCount()
    • getAgentMessageCount

      public Integer getAgentMessageCount()
    • getSystemMessageCount

      public Integer getSystemMessageCount()
    • getRobotMessageCount

      public Integer getRobotMessageCount()
    • isValid

      public Boolean isValid()
    • toString

      public String toString()
      重写toString方法避免循环引用
      Overrides:
      toString in class Object