We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee04b6d commit b79ca4bCopy full SHA for b79ca4b
1 file changed
tests/server/test_session.py
@@ -408,6 +408,14 @@ async def test_create_message_tool_result_validation():
408
# Note: no tools parameter
409
)
410
411
+ # Case 8: empty messages list - skips validation entirely
412
+ # Covers the `if messages:` branch (line 280->302)
413
+ with anyio.move_on_after(0.01):
414
+ await session.create_message(
415
+ messages=[],
416
+ max_tokens=100,
417
+ )
418
+
419
420
@pytest.mark.anyio
421
async def test_create_message_without_tools_capability():
0 commit comments