def test_parse_partial_list_items_incomplete_objects():
    """Test parsing incomplete objects from list content."""
    list_content = '{"setup": "Why did the chicken cross the road?", "punchline": "To get to the other side!"}, {"setup": "Second joke"'

    result = _parse_partial_list_items(list_content, "jokes", Show)

    assert isinstance(result, list)
    # Should get at least the complete object
    assert len(result) >= 1
    assert result[0]["setup"] == "Why did the chicken cross the road?"
Test parsing incomplete objects from list content.
llama-index-core/tests/program/test_streaming_utils.py