MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / after_execution

Method after_execution

helpers/tool.py:54–59  ·  view source on GitHub ↗
(self, response: Response, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 3

_execute_tool_requestMethod · 0.45
process_toolsMethod · 0.45
execute_tool_callFunction · 0.45

Calls 5

sanitize_stringFunction · 0.90
PrintStyleClass · 0.90
hist_add_tool_resultMethod · 0.45
printMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected