MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onPartialThinking

Method onPartialThinking

app/src/AI/Conversation.cpp:356–370  ·  view source on GitHub ↗

* @brief Appends streamed thinking text to the live assistant preamble. */

Source from the content-addressed store, hash-verified

354 * @brief Appends streamed thinking text to the live assistant preamble.
355 */
356void AI::Conversation::onPartialThinking(const QString& chunk)
357{
358 if (m_cancelled || m_assistantIndex < 0)
359 return;
360
361 if (m_thinkingIsSynthetic) {
362 m_assistantThinking.clear();
363 m_thinkingIsSynthetic = false;
364 }
365
366 m_assistantThinking.append(chunk);
367 m_streamDirty = true;
368 if (!m_streamFlushTimer->isActive())
369 m_streamFlushTimer->start();
370}
371
372/**
373 * @brief Stores a completed provider thinking block (text + signature) tagged with the

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
appendMethod · 0.45
isActiveMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected