Skip to content

Commit 0e1d3fc

Browse files
committed
Add separator for multiple assistant turns in logging output
1 parent ac49cb1 commit 0e1d3fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

predicators/agent_sdk/local_sandbox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ def _flush_log(self, filepath: str,
499499
etype = entry.get("type", "")
500500
if etype == "assistant":
501501
turn_num += 1
502+
if turn_num > 1:
503+
lines.append("---\n")
502504
lines.append(f"### Turn {turn_num}\n")
503505
for block in entry.get("content", []):
504506
btype = block.get("type", "")

0 commit comments

Comments
 (0)