(message: str = "")
| 64 | |
| 65 | |
| 66 | def 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 | |
| 76 | def tool_result_ok(results) -> bool: |
no test coverage detected