tuning performance

This commit is contained in:
geekan 2023-12-22 17:48:54 +08:00
parent a7a1195a31
commit c68f882e14
8 changed files with 12 additions and 12 deletions

View file

@ -407,7 +407,7 @@ class Role(BaseModel):
return True
async def _act(self) -> Message:
logger.info(f"{self._setting}: to do {self._rc.todo}")
logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")
response = await self._rc.todo.run(self._rc.important_memory)
if isinstance(response, (ActionOutput, ActionNode)):
msg = Message(

View file

@ -57,7 +57,7 @@ class Searcher(Role):
async def _act_sp(self) -> Message:
"""Performs the search action in a single process."""
logger.info(f"{self._setting}: to do {self._rc.todo}")
logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")
response = await self._rc.todo.run(self._rc.memory.get(k=0))
if isinstance(response, (ActionOutput, ActionNode)):