feat:动作现在区分focus和normal,并且可选不同的激活策略
This commit is contained in:
@@ -20,11 +20,14 @@ class VTBAction(PluginAction):
|
||||
"当回应内容需要更生动的情感表达时使用",
|
||||
"当想要通过预设动作增强互动体验时使用",
|
||||
]
|
||||
default = True # 设为默认动作
|
||||
enable_plugin = True # 启用插件
|
||||
associated_types = ["vtb_text"]
|
||||
|
||||
# 激活类型设置 - 使用LLM判定,因为需要根据情感表达需求判断
|
||||
action_activation_type = ActionActivationType.LLM_JUDGE
|
||||
# 激活类型设置
|
||||
focus_activation_type = ActionActivationType.LLM_JUDGE # Focus模式使用LLM判定,精确识别情感表达需求
|
||||
normal_activation_type = ActionActivationType.RANDOM # Normal模式使用随机激活,增加趣味性
|
||||
|
||||
# LLM判定提示词(用于Focus模式)
|
||||
llm_judge_prompt = """
|
||||
判定是否需要使用VTB虚拟主播动作的条件:
|
||||
1. 当前聊天内容涉及明显的情感表达需求
|
||||
@@ -38,6 +41,9 @@ class VTBAction(PluginAction):
|
||||
3. 不涉及情感的日常对话
|
||||
4. 已经有足够的情感表达
|
||||
"""
|
||||
|
||||
# Random激活概率(用于Normal模式)
|
||||
random_activation_probability = 0.08 # 较低概率,避免过度使用
|
||||
|
||||
async def process(self) -> Tuple[bool, str]:
|
||||
"""处理VTB虚拟主播动作"""
|
||||
|
||||
Reference in New Issue
Block a user