os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
I'd like to see the metrics included in the workflow final metrics to get a more accurate picture on the token consumsion thought the whole workflow run. Currently even if I pass the metrics to the ...