mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-01 05:49:20 +00:00
CET capture partial tool output on intervention
This commit is contained in:
parent
4283f5a937
commit
5ef854f23d
3 changed files with 38 additions and 16 deletions
|
|
@ -277,6 +277,7 @@ class CodeExecution(Tool):
|
|||
PrintStyle(font_color="#85C1E9").stream(partial_output)
|
||||
# full_output += partial_output # Append new output
|
||||
truncated_output = self.fix_full_output(full_output)
|
||||
self.set_progress(truncated_output)
|
||||
heading = self.get_heading_from_output(truncated_output, 0)
|
||||
self.log.update(content=prefix + truncated_output, heading=heading)
|
||||
last_output_time = now
|
||||
|
|
@ -383,6 +384,7 @@ class CodeExecution(Tool):
|
|||
timeout=1, reset_full_output=reset_full_output
|
||||
)
|
||||
truncated_output = self.fix_full_output(full_output)
|
||||
self.set_progress(truncated_output)
|
||||
heading = self.get_heading_from_output(truncated_output, 0)
|
||||
|
||||
last_lines = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue