Add normalization for getting reasoning text
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3546573. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1215
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Ollama can for instance add the thinking text, see <a href="https://ollama.com/blog/thinking">https://ollama.com/blog/thinking</a><br>
Groq into reasoning, see <a href="https://console.groq.com/docs/reasoning">https://console.groq.com/docs/reasoning</a><br>
Deepchat into reasoning_content, see <a href="https://api-docs.deepseek.com/guides/reasoning_model">https://api-docs.deepseek.com/guides/reasoning_model</a></p>
<p>We should normalize this, so you know where to output this, when it exists.</p>
<p>I think this can set beyong beta blockers, even if its technically a feature.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a setReasoningText and getReasoningText to the ChatMessage.<br>
Write or modify a test for it.<br>
Document it.</p>
issue