(self, response: Response, **kwargs)
| 52 | PrintStyle().print() |
| 53 | |
| 54 | async def after_execution(self, response: Response, **kwargs): |
| 55 | text = sanitize_string(response.message.strip()) |
| 56 | self.agent.hist_add_tool_result(self.name, text, id=self.log.id, **(response.additional or {})) |
| 57 | PrintStyle(font_color="#1B4F72", background_color="white", padding=True, bold=True).print(f"{self.agent.agent_name}: Response from tool '{self.name}'") |
| 58 | PrintStyle(font_color="#85C1E9").print(text) |
| 59 | self.log.update(content=text) |
| 60 | |
| 61 | def get_log_object(self): |
| 62 | import uuid |
no test coverage detected