🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -664,7 +664,9 @@ class PersonImpressionpProcessor(BaseProcessor):
|
||||
|
||||
person_info_manager = get_person_info_manager()
|
||||
for person_name, info_type in content_json.items():
|
||||
is_bot = person_name == global_config.bot.nickname or person_name in global_config.bot.alias_names
|
||||
is_bot = (
|
||||
person_name == global_config.bot.nickname or person_name in global_config.bot.alias_names
|
||||
)
|
||||
if is_bot:
|
||||
person_id = person_info_manager.get_person_id("system", "bot_id")
|
||||
logger.info(f"{self.log_prefix} 检测到对bot自身({person_name})的信息查询,使用特殊ID。")
|
||||
|
||||
@@ -106,7 +106,7 @@ class MemoryActivator:
|
||||
|
||||
prompt = await global_prompt_manager.format_prompt(
|
||||
"memory_activator_prompt",
|
||||
obs_info_text = obs_info_text,
|
||||
obs_info_text=obs_info_text,
|
||||
cached_keywords=cached_keywords_str,
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from src.llm_models.utils_model import LLMRequest
|
||||
from src.config.config import global_config
|
||||
from src.chat.focus_chat.info.info_base import InfoBase
|
||||
from src.chat.focus_chat.info.obs_info import ObsInfo
|
||||
from src.chat.focus_chat.info.cycle_info import CycleInfo
|
||||
from src.chat.focus_chat.info.action_info import ActionInfo
|
||||
from src.chat.focus_chat.info.structured_info import StructuredInfo
|
||||
from src.chat.focus_chat.info.relation_info import RelationInfo
|
||||
@@ -60,7 +59,6 @@ def init_prompt():
|
||||
"simple_planner_prompt_private",
|
||||
)
|
||||
|
||||
|
||||
Prompt(
|
||||
"""
|
||||
{action_require}
|
||||
@@ -116,7 +114,6 @@ class ActionPlanner(BasePlanner):
|
||||
# 获取观察信息
|
||||
extra_info: list[str] = []
|
||||
|
||||
cycle_info = ""
|
||||
structured_info = ""
|
||||
extra_info = []
|
||||
observed_messages = []
|
||||
@@ -276,7 +273,6 @@ class ActionPlanner(BasePlanner):
|
||||
|
||||
action_data["loop_start_time"] = loop_start_time
|
||||
|
||||
|
||||
memory_str = ""
|
||||
if running_memorys:
|
||||
memory_str = "以下是当前在聊天中,你回忆起的记忆:\n"
|
||||
|
||||
Reference in New Issue
Block a user