MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / tool_log

Function tool_log

src/sandbox_vm/mcp/utils.py:66–73  ·  view source on GitHub ↗
(message: str = "")

Source from the content-addressed store, hash-verified

64
65
66def tool_log(message: str = ""):
67 try:
68 log_file = filename_to_path(os.environ.get("TOOL_LOG_FILE"))
69 with open(log_file, "a") as f:
70 f.write(f"[{datetime.now().isoformat()}] {message}\n")
71 except Exception as e:
72 pass
73 return
74
75
76def tool_result_ok(results) -> bool:

Callers 1

wrapperFunction · 0.85

Calls 3

filename_to_pathFunction · 0.85
getMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected