Answer principles round 1: 0 🔴, 6 🟡; correct the interrupt's definition, show the judge the question beside the typed answer, ask in one call returning Talk, add a Talking state, give the worker its own question past the cap, assert the prompts' facts, and keep stepped_from as the step's one owner
This commit is contained in:
@@ -25,8 +25,8 @@ def human_turns(entries: list[dict]) -> int:
|
||||
return sum(1 for entry in entries if human_text(entry) is not None)
|
||||
|
||||
|
||||
def render(entries: list[dict], typed_answer: typing.Callable[[str], str | None]) -> str:
|
||||
"""The transcript as the judge reads it. typed_answer finds an answer the human typed in a -p prompt of loop-claude's, which reads as the human's, like one typed in claude."""
|
||||
def render(entries: list[dict], typed_answer: typing.Callable[[str], tuple[str, str] | None]) -> str:
|
||||
"""The transcript as the judge reads it. typed_answer splits a -p prompt of loop-claude's that carries an answer the human typed into loop-claude's words and that answer, which reads as the human's, like one typed in claude."""
|
||||
lines = []
|
||||
for entry in entries:
|
||||
lines += [line for part in assistant_parts(entry) if (line := part_line(part, JUDGED_TOOL_INPUT))]
|
||||
@@ -34,7 +34,7 @@ def render(entries: list[dict], typed_answer: typing.Callable[[str], str | None]
|
||||
lines.append("[human] " + text)
|
||||
elif (text := loop_text(entry)) is not None:
|
||||
typed = typed_answer(text)
|
||||
lines.append("[loop] " + text if typed is None else "[human] " + typed)
|
||||
lines += ["[loop] " + text] if typed is None else ["[loop] " + typed[0], "[human] " + typed[1]]
|
||||
return "\n\n".join(lines)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user