mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
3a44f00bc1
commit
516092494e
|
|
@ -67,17 +67,16 @@ class StructuredInfo:
|
||||||
value: 要设置的属性值
|
value: 要设置的属性值
|
||||||
"""
|
"""
|
||||||
self.data[key] = value
|
self.data[key] = value
|
||||||
|
|
||||||
def get_processed_info(self) -> str:
|
def get_processed_info(self) -> str:
|
||||||
"""获取处理后的信息
|
"""获取处理后的信息
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: 处理后的信息字符串
|
str: 处理后的信息字符串
|
||||||
"""
|
"""
|
||||||
|
|
||||||
info_str = ""
|
info_str = ""
|
||||||
for key, value in self.data.items():
|
for key, value in self.data.items():
|
||||||
info_str += f"信息类型:{key},信息内容:{value}\n"
|
info_str += f"信息类型:{key},信息内容:{value}\n"
|
||||||
|
|
||||||
|
|
||||||
return info_str
|
return info_str
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,6 @@ class ToolProcessor(BaseProcessor):
|
||||||
for working_info in working_infos:
|
for working_info in working_infos:
|
||||||
structured_info.set_info(working_info.get("type"), working_info.get("content"))
|
structured_info.set_info(working_info.get("type"), working_info.get("content"))
|
||||||
|
|
||||||
|
|
||||||
return [structured_info]
|
return [structured_info]
|
||||||
|
|
||||||
async def execute_tools(self, observation: ChattingObservation, running_memorys: Optional[List[Dict]] = None):
|
async def execute_tools(self, observation: ChattingObservation, running_memorys: Optional[List[Dict]] = None):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue