Count a typed reply starting with < as the human's

This commit is contained in:
2026-09-28 20:25:56 +02:00
parent 424f83c5c6
commit 74c2841b8d
+3 -1
View File
@@ -48,12 +48,14 @@ class HumanTurns(unittest.TestCase):
human([{"type": "text", "text": "typed as a block"}]),
human([{"type": "tool_result", "content": "not typed"}]),
human("<command-name>/model</command-name>"),
{**human("<3 merge it"), "promptSource": "typed"},
{**human("<task-notification>done</task-notification>"), "promptSource": "system"},
{**human("peer message"), "isMeta": True},
{**human("the loop's own prompt"), "promptSource": "sdk"},
human([{"type": "text", "text": "[Request interrupted by user]"}]),
human([]),
assistant({"type": "text", "text": "said"}),
]), 2)
]), 3)
class Said(unittest.TestCase):