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

Method beginAssistantMessage

app/src/AI/Conversation.cpp:1703–1716  ·  view source on GitHub ↗

* @brief Adds a placeholder assistant row that subsequent deltas fill. */

Source from the content-addressed store, hash-verified

1701 * @brief Adds a placeholder assistant row that subsequent deltas fill.
1702 */
1703void AI::Conversation::beginAssistantMessage()
1704{
1705 m_assistantText.clear();
1706 m_assistantThinking.clear();
1707 QVariantMap row;
1708 row[QStringLiteral("role")] = QStringLiteral("assistant");
1709 row[QStringLiteral("text")] = QString();
1710 row[QStringLiteral("thinking")] = QString();
1711 row[QStringLiteral("streaming")] = true;
1712 row[QStringLiteral("toolCalls")] = QVariantList();
1713 m_uiMessages.append(row);
1714 m_assistantIndex = m_uiMessages.size() - 1;
1715 Q_EMIT messagesChanged();
1716}
1717
1718/**
1719 * @brief Returns "discovery" for read-only / meta calls, "execution" otherwise.

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected