feat(planner): 优化主动对话决策并记录动作历史
在主动对话规划器中引入最近的动作历史作为决策依据,以避免重复或不合时宜的主动行为。同时,在主动回复后,将该行为作为动作信息存储到数据库中,以便于未来的决策和分析。 - 在 `ActionPlanner` 中,获取并向prompt中添加最近5条动作历史记录 - 在 `ProactiveThinker` 中,当主动回复成功后,调用 `store_action_info` 记录动作 - 移除了 `@user` 插件中已废弃的 `planner_type` 属性
This commit is contained in:
committed by
Windpicker-owo
parent
474ab78002
commit
7fd5dc9a4a
@@ -24,7 +24,6 @@ class AtAction(BaseAction):
|
||||
activation_type = ActionActivationType.LLM_JUDGE # 消息接收时激活(?)
|
||||
parallel_action = False
|
||||
chat_type_allow = ChatType.GROUP
|
||||
planner_type = PlannerType.BIG_BRAIN
|
||||
|
||||
# === 功能描述(必须填写)===
|
||||
action_parameters = {"user_name": "需要艾特用户的名字", "at_message": "艾特用户时要发送的消,注意消息里不要有@"}
|
||||
|
||||
Reference in New Issue
Block a user