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

Method ~Assistant

app/src/AI/Assistant.cpp:90–97  ·  view source on GitHub ↗

* @brief Persists the active chat, then releases owned resources. */

Source from the content-addressed store, hash-verified

88 * @brief Persists the active chat, then releases owned resources.
89 */
90AI::Assistant::~Assistant()
91{
92 if (m_conversation && !m_activeChatId.isEmpty())
93 m_chats.saveChat(m_activeChatId,
94 m_conversation->snapshot(),
95 m_conversation->firstUserText().left(kTitleLimit),
96 m_conversation->messageCount());
97}
98
99//--------------------------------------------------------------------------------------------------
100// Property getters

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.80
saveChatMethod · 0.80
firstUserTextMethod · 0.80
snapshotMethod · 0.45
messageCountMethod · 0.45

Tested by

no test coverage detected