feat: replace logging with custom log_all function and truncate benchmark log on start
This commit is contained in:
+12
-32
@@ -2,35 +2,15 @@ TASK: Get the last 5 git commit messages and summarize the changes in 'git_summa
|
||||
----------------------------------------
|
||||
Loading...
|
||||
|
||||
[Agent] Iteration 1/300
|
||||
[Agent] has_tool_calls=true
|
||||
[Agent] Executing 1 tool(s)
|
||||
[1;34m[Agent] Spawning developer agent for: Retrieve the last 5 git commit messages and generate a summary of the changes, saving it to 'git_summary.md'.[0m
|
||||
[2m[parallel] launching spawn_agent[0m
|
||||
[1;31m[Tool Error] Error: Spawning limit reached. You are not allowed to spawn more sub-agents. Perform the task yourself using existing tools.[0m
|
||||
[Agent] Iteration 2/300
|
||||
The task to retrieve the last 5 git commit messages and summarize the changes cannot be delegated further due to the spawning limit. I will now perform these steps directly using available tools.
|
||||
[Agent] has_tool_calls=false
|
||||
[Agent] Response indicates incomplete work, auto-continuing
|
||||
[Agent] Iteration 3/300
|
||||
[Agent] has_tool_calls=true
|
||||
[Agent] Executing 1 tool(s)
|
||||
[1m-> Executing Python code[0m
|
||||
[2m[parallel] launching python_execute[0m
|
||||
[2m File "/tmp/r_python_tool_GZjld6.py", line 16
|
||||
f.write(""""\n""" + summary_text + """"\n")
|
||||
^
|
||||
SyntaxError: unterminated triple-quoted string literal (detected at line 16)
|
||||
[0m[Agent] Iteration 4/300
|
||||
It appears there was a syntax error in the code I provided. I will correct it and re-execute the script to generate the summary in [33mgit_summary.md[0m.
|
||||
[Agent] has_tool_calls=false
|
||||
[Agent] Response indicates incomplete work, auto-continuing
|
||||
[Agent] Iteration 5/300
|
||||
[Agent] has_tool_calls=true
|
||||
[Agent] Executing 1 tool(s)
|
||||
[1m-> Executing Python code[0m
|
||||
[2m[parallel] launching python_execute[0m
|
||||
[Agent] Iteration 6/300
|
||||
The script has been corrected and executed successfully. The last 5 git commit messages have been summarized and saved in [33mgit_summary.md[0m. If you want to review the file or need further assistance, please let me know!
|
||||
[Agent] has_tool_calls=false
|
||||
[Agent] Completed in 6 iteration(s)
|
||||
[1;34m┌─── Python Source Code ─────────────────────────────────────[0m
|
||||
[1;34m│[0m [2m 1 |[0m [34mimport[0m[33m subprocess[0m
|
||||
[1;34m│[0m [2m 2 |[0m # Get last [36m5[0m[33m git commit messages[0m
|
||||
[1;34m│[0m [2m 3 |[0m result = subprocess.run(['git', 'log', '-n', '[36m5[0m[33m', '--pretty=format:%s'], capture_output=True, text=True)[0m
|
||||
[1;34m│[0m [2m 4 |[0m commit_messages = result.stdout.strip().split('\n')[0m
|
||||
[1;34m│[0m [2m 5 |[0m # Summarize changes[0m
|
||||
[1;34m│[0m [2m 6 |[0m summary = "Last [36m5[0m[33m commits:\n" + "\n".join(commit_messages)[0m
|
||||
[1;34m│[0m [2m 7 |[0m # Write to file[0m
|
||||
[1;34m│[0m [2m 8 |[0m [34mwith[0m[33m open('git_summary.md', 'w') [34mas[0m[33m f:[0m
|
||||
[1;34m│[0m [2m 9 |[0m f.write(summary)[0m
|
||||
[1;34m└────────────────────────────────────────────────────────────[0m
|
||||
The last five git commit messages have been retrieved and summarized in the file 'git_summary.md'.
|
||||
|
||||
Reference in New Issue
Block a user