feat(taxonomy): Redirect logs and artifacts to dedicated sub-folders

This commit is contained in:
2026-03-01 09:03:02 -05:00
parent 09bedbf4f0
commit 6326546005
10 changed files with 36 additions and 16 deletions

View File

@@ -1224,9 +1224,8 @@ class App:
"""A dummy function that a custom_callback would execute for testing."""
# Note: This file path is relative to where the test is run.
# This is for testing purposes only.
with open("temp_callback_output.txt", "w") as f:
with open("tests/artifacts/temp_callback_output.txt", "w") as f:
f.write(data)
def _recalculate_session_usage(self) -> None:
usage = {"input_tokens": 0, "output_tokens": 0, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0, "total_tokens": 0, "last_latency": 0.0}
for entry in ai_client.get_comms_log():