Use value objects and interfaces for vector data instead of an arrays
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3538479. --> Reported by: [kim.pepper](https://www.drupal.org/user/370574) Related to !800 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We vectors contain data that should be readonly and passed around as a value object. </p> <p>This should keep us in line with Symfony's VectorInterface for future consideration. See <a href="https://github.com/symfony/ai-platform/blob/main/src/Vector/VectorInterface.php">https://github.com/symfony/ai-platform/blob/main/src/Vector/VectorInterface.php</a></p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Create a value object for vectors instead of passing arrays.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> > Related issue: [Issue #3567005](https://www.drupal.org/node/3567005) > Related issue: [Issue #3538499](https://www.drupal.org/node/3538499)
issue