Render the human's typed turns for the judge, so an answered question is not asked again #55

Merged
lilleman merged 5 commits from judge-reads-human into main 2026-09-26 13:29:54 +02:00
Showing only changes of commit b20a7e349b - Show all commits
+5 -2
View File
@@ -66,13 +66,16 @@ class ReadPremises(unittest.TestCase):
class Render(unittest.TestCase):
def test_joins_assistant_text_and_tool_calls_and_skips_the_rest(self):
def test_joins_assistant_text_and_tool_calls_and_human_turns_and_skips_the_rest(self):
said = loop.render([
human("do it"),
assistant({"type": "text", "text": "Starting."}, {"type": "tool_use", "name": "Bash", "input": {"command": "ls"}}),
assistant({"type": "text", "text": " "}),
human([{"type": "tool_result", "content": "not typed"}]),
human("<command-name>/exit</command-name>"),
human([{"type": "text", "text": "yes, "}, {"type": "text", "text": "merge it"}]),
])
self.assertEqual(said, 'Starting.\n\n[tool Bash] {"command": "ls"}')
self.assertEqual(said, '[human] do it\n\nStarting.\n\n[tool Bash] {"command": "ls"}\n\n[human] yes, merge it')
class HumanTurns(unittest.TestCase):