test(openai): expect assistant text before its tool call in Responses input

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Moe Khalil 2026-10-27 19:12:44 +00:00
parent ef098b09e6
commit cdf218c8a4

View file

@ -591,12 +591,12 @@ def test_anthropic_messages_keep_every_block_the_chat_converter_drops() -> None:
{"type": "input_image", "image_url": f"data:image/png;base64,{PNG_BASE64}", "detail": "auto"},
],
},
{"type": "function_call", "call_id": "toolu_01", "name": "lookup_clause", "arguments": '{"id": "14"}'},
{
"type": "message",
"role": "assistant",
"content": [{"type": "output_text", "text": "Let me pull clause 14."}],
},
{"type": "function_call", "call_id": "toolu_01", "name": "lookup_clause", "arguments": '{"id": "14"}'},
{"type": "function_call_output", "call_id": "toolu_01", "output": "14. Indemnification."},
)