MCPcopy Index your code
hub / github.com/HKUDS/DeepCode / generate_execution_summary

Function generate_execution_summary

tools/command_executor.py:239–263  ·  view source on GitHub ↗

生成执行总结 / Generate execution summary Args: working_directory: 工作目录 / Working directory command_lines: 命令列表 / Command list stats: 统计信息 / Statistics Returns: 格式化的总结 / Formatted summary

(
    working_directory: str, command_lines: List[str], stats: Dict[str, int]
)

Source from the content-addressed store, hash-verified

237
238
239def generate_execution_summary(
240 working_directory: str, command_lines: List[str], stats: Dict[str, int]
241) -> str:
242 """
243 生成执行总结 / Generate execution summary
244
245 Args:
246 working_directory: 工作目录 / Working directory
247 command_lines: 命令列表 / Command list
248 stats: 统计信息 / Statistics
249
250 Returns:
251 格式化的总结 / Formatted summary
252 """
253 return f"""
254命令执行总结 / Command Execution Summary:
255{'='*50}
256工作目录 / Working Directory: {working_directory}
257总命令数 / Total Commands: {len(command_lines)}
258成功 / Successful: {stats['successful']}
259失败 / Failed: {stats['failed']}
260超时 / Timeout: {stats['timeout']}
261
262详细结果 / Detailed Results:
263{'-'*50}"""
264
265
266def format_single_command_result(

Callers 1

execute_command_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected