Support Structured Output
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3538437. --> Reported by: [dmundra](https://www.drupal.org/user/866436) Related to !25 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>There is a <a href="https://github.com/google-gemini-php/client?tab=readme-ov-file#upgrade-to-20">2.0 version</a> of <a href="https://github.com/google-gemini-php/client">Google Gemini PHP Client</a> so this issue is to up to that version.</p> <p>We are in particular interested in using the <a href="https://ai.google.dev/gemini-api/docs/structured-output">'Structured output' feature of the 2.0 version</a>.</p> <p>The Drupal AI module API includes Structured Output functionality. The best place to look for an example integration is the OpenAI Provider module.</p> <p><a href="https://git.drupalcode.org/project/ai_provider_openai/-/blob/1.2.x/src/Plugin/AiProvider/OpenAiProvider.php?ref_type=heads">Open AI Provider Plugin file</a> - see lines <a href="https://git.drupalcode.org/project/ai_provider_openai/-/blob/1.2.x/src/Plugin/AiProvider/OpenAiProvider.php?ref_type=heads#L408">408-414</a>.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ul> <li>Research impact of the upgrade and what needs to be changed.</li> <li>Should the 2.0 version be on 2.0.0 branch and version of this module?</li> </ul> <h3 id="summary-ui-changes">User interface changes</h3> <p>To be determined.</p> <h3 id="summary-api-changes">API changes</h3> <p>To be determined.</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>To be determined.</p>
issue