🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -67,17 +67,16 @@ class StructuredInfo:
|
||||
value: 要设置的属性值
|
||||
"""
|
||||
self.data[key] = value
|
||||
|
||||
|
||||
def get_processed_info(self) -> str:
|
||||
"""获取处理后的信息
|
||||
|
||||
Returns:
|
||||
str: 处理后的信息字符串
|
||||
"""
|
||||
|
||||
|
||||
info_str = ""
|
||||
for key, value in self.data.items():
|
||||
info_str += f"信息类型:{key},信息内容:{value}\n"
|
||||
|
||||
|
||||
|
||||
return info_str
|
||||
|
||||
@@ -89,7 +89,6 @@ class ToolProcessor(BaseProcessor):
|
||||
for working_info in working_infos:
|
||||
structured_info.set_info(working_info.get("type"), working_info.get("content"))
|
||||
|
||||
|
||||
return [structured_info]
|
||||
|
||||
async def execute_tools(self, observation: ChattingObservation, running_memorys: Optional[List[Dict]] = None):
|
||||
|
||||
Reference in New Issue
Block a user