def test_process_streaming_content_incremental_none_message():
    """Test processing when message content is None."""
    response = ChatResponse(
        message=ChatMessage(
            role=MessageRole.ASSISTANT,
            content=None,
        )
    )

    result = process_streaming_content_incremental(response, Person)
    # Should return FlexibleModel instance when no content
    assert hasattr(result, "__dict__")
Test processing when message content is None.
llama-index-core/tests/program/test_streaming_utils.py