@@ -1180,6 +1180,7 @@ async def test_superstep_completed_event(mapper: MessageMapper, test_request: Ag
11801180 # Just ensure it doesn't crash
11811181 assert isinstance (events , list )
11821182
1183+
11831184# =============================================================================
11841185# Reasoning Content Tests
11851186# =============================================================================
@@ -1189,7 +1190,7 @@ async def test_map_reasoning_content_with_none_text(mapper: MessageMapper) -> No
11891190 """Test that TextReasoningContent with None text falls back to empty string without raising validation error."""
11901191 from unittest .mock import MagicMock
11911192
1192- context = {"item_id" : "item-1" , "output_index" : 0 , "content_index" : 0 , "sequence " : 0 }
1193+ context = {"item_id" : "item-1" , "output_index" : 0 , "content_index" : 0 , "sequence_counter " : 0 }
11931194 content = MagicMock ()
11941195 content .text = None
11951196
@@ -1202,11 +1203,10 @@ async def test_map_reasoning_content_with_valid_text(mapper: MessageMapper) -> N
12021203 """Test that TextReasoningContent with valid text maps delta properly."""
12031204 from unittest .mock import MagicMock
12041205
1205- context = {"item_id" : "item-1" , "output_index" : 0 , "content_index" : 0 , "sequence " : 0 }
1206+ context = {"item_id" : "item-1" , "output_index" : 0 , "content_index" : 0 , "sequence_counter " : 0 }
12061207 content = MagicMock ()
12071208 content .text = "Thinking through the steps..."
12081209
12091210 event = await mapper ._map_reasoning_content (content , context )
12101211 assert event .type == "response.reasoning_text.delta"
12111212 assert event .delta == "Thinking through the steps..."
1212-
0 commit comments