Class IntentionSettingsEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.kbase.settings_intention.IntentionSettingsEntity
All Implemented Interfaces:
Serializable

@Entity public class IntentionSettingsEntity extends BaseEntity
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      private String name
      设置名称,用于区分不同的邀请设置模板
    • description

      private String description
      设置描述
    • robotUid

      private String robotUid
      关联robot entity uid
    • defaultTemplate

      private Boolean defaultTemplate
      是否为默认设置模板
    • enabled

      private Boolean enabled
      是否启用意图识别
    • executionTiming

      private String executionTiming
      执行时机 - ON_MESSAGE: 收到新消息时 - THREAD_END: 会话结束时
    • triggerScope

      private String triggerScope
      触发范围 - VISITOR_ONLY: 仅访客消息 - AGENT_ONLY: 仅客服消息 - ALL: 所有非系统消息
    • triggerEveryNMessages

      private Integer triggerEveryNMessages
      触发频率:每隔 N 条消息触发一次 - 1 表示每条消息都触发
    • triggerCooldownSeconds

      private Integer triggerCooldownSeconds
      触发冷却时间(秒):上次触发后,冷却未结束则跳过
    • triggerCooldownOnly

      private Boolean triggerCooldownOnly
      是否仅按时间冷却触发(忽略 triggerEveryNMessages)
    • intentionList

      private List<String> intentionList
      意图分类选项
    • confidenceThreshold

      private Double confidenceThreshold
      意图信心度阈值,低于该阈值的意图将被认为是不确定的 范围:0-1,例如0.75表示75%的置信度
    • subIntentionMapping

      private String subIntentionMapping
      子意图分类映射,支持多级意图分类结构 格式:{"主意图1": ["子意图1", "子意图2"], "主意图2": ["子意图3", "子意图4"]}
    • intentionResponses

      private String intentionResponses
      意图预设回复,针对不同意图提供默认回复模板 格式:{"意图1": "预设回复1", "意图2": "预设回复2"}
    • unknownIntentionHandling

      private String unknownIntentionHandling
      未识别意图的处理方式 TRANSFER_HUMAN: 转人工 DEFAULT_ANSWER: 使用默认回复 CLARIFY: 请求用户澄清
    • unknownIntentionResponse

      private String unknownIntentionResponse
      未识别意图的默认回复
    • intentionTags

      private String intentionTags
      意图标签,用于对意图进行分组和归类 格式:{"意图1": ["标签1", "标签2"], "意图2": ["标签3", "标签4"]}
    • intentionPriorities

      private String intentionPriorities
      意图优先级配置,数字越小优先级越高 格式:{"意图1": 1, "意图2": 2, "意图3": 3}
    • enableIntentionTracking

      private Boolean enableIntentionTracking
      是否启用意图跟踪,跟踪用户意图的变化
    • intentionSwitchThreshold

      private Double intentionSwitchThreshold
      意图转换阈值,当新意图的置信度超过此阈值时才会转换当前意图
  • Constructor Details

    • IntentionSettingsEntity

      public IntentionSettingsEntity()
  • Method Details

    • fromRequest

      public static IntentionSettingsEntity fromRequest(IntentionSettingsRequest request, org.modelmapper.ModelMapper modelMapper)
      从 IntentionSettingsRequest 创建 IntentionSettings 实体 如果 request 为 null,返回默认构建的实体
      Parameters:
      request - IntentionSettingsRequest 对象,可以为 null
      modelMapper - ModelMapper 实例用于字段映射
      Returns:
      IntentionSettings 实体,永远不为 null