MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / execute_code_blocks

Method execute_code_blocks

src/hyperagent/build.py:22–24  ·  view source on GitHub ↗
(self, code_blocks: List[CodeBlock])

Source from the content-addressed store, hash-verified

20class EICE(EmbeddedIPythonCodeExecutor):
21 # Override the execute_code_blocks method to only execute the tool functions or initialization of these functions.
22 def execute_code_blocks(self, code_blocks: List[CodeBlock]):
23 tool_call_code_blocks = [block for block in code_blocks if "_run" in block.code or "Initialize" in block.code]
24 return super().execute_code_blocks(tool_call_code_blocks)
25
26class DCLCE(DockerCommandLineCodeExecutor):
27 def __init__(

Callers 1

initialize_toolsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected