Answer the third round: show the judge loop-claude's prompts, one records answer per cycle through an interrupt, name the answer's two sources apart
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
|
||||
from loop_claude.claude_code.entries import assistant_parts, human_text, parse_entry, part_text, tool_call
|
||||
from loop_claude.claude_code.entries import assistant_parts, human_text, loop_text, parse_entry, part_text, tool_call
|
||||
from loop_claude.failure import Failure
|
||||
|
||||
JUDGED_TOOL_INPUT = 400
|
||||
@@ -30,6 +30,8 @@ def render(entries: list[dict]) -> str:
|
||||
lines += [line for part in assistant_parts(entry) if (line := part_line(part, JUDGED_TOOL_INPUT))]
|
||||
if (text := human_text(entry)) is not None:
|
||||
lines.append("[human] " + text)
|
||||
elif (text := loop_text(entry)) is not None:
|
||||
lines.append("[loop] " + text)
|
||||
return "\n\n".join(lines)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user