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

Method after_execution

tools/parallel.py:10–16  ·  view source on GitHub ↗
(self, response: Response, **kwargs)

Source from the content-addressed store, hash-verified

8 self.log = None
9
10 async def after_execution(self, response: Response, **kwargs):
11 text = sanitize_string(response.message.strip())
12 self.agent.hist_add_tool_result(
13 self.name,
14 text,
15 **(response.additional or {}),
16 )
17
18 async def execute(self, **kwargs) -> Response:
19 args = {**self.args, **kwargs}

Calls 2

sanitize_stringFunction · 0.90
hist_add_tool_resultMethod · 0.45