test: add additional new agent messaging tests (#2120)

This commit is contained in:
cthomas
2025-05-12 15:58:52 -07:00
committed by GitHub
parent 1ce4af7d1a
commit bafc47c655
8 changed files with 184 additions and 62 deletions

View File

@@ -326,10 +326,12 @@ def openai_chat_completions_process_stream(
expect_reasoning_content=expect_reasoning_content,
name=name,
message_index=message_idx,
prev_message_type=prev_message_type,
)
if message_type != prev_message_type and message_type is not None:
if message_type != prev_message_type and message_type is not None and prev_message_type is not None:
message_idx += 1
prev_message_type = message_type
if message_type is not None:
prev_message_type = message_type
elif isinstance(stream_interface, AgentRefreshStreamingInterface):
stream_interface.process_refresh(chat_completion_response)
else: