TextAutoGenerateText::TextAutoGenerateManager Class

class TextAutoGenerateText::TextAutoGenerateManager

The TextAutoGenerateManager class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateManager>
Inherits: QObject

Public Functions

TextAutoGenerateManager(QObject *parent = nullptr)
virtual ~TextAutoGenerateManager() override
void addMessage(const QByteArray &chatId, const TextAutoGenerateText::TextAutoGenerateMessage &msg)
void archiveDiscussion(const QByteArray &chatId, bool archive)
void ask(const TextAutoGenerateText::TextAutoGenerateManager::AskMessageInfo &info)
void askStartOllama()
void askToAssistant(const QString &msg)
TextAutoGenerateText::TextAutoGenerateToolCallJob *callTools(const QByteArray &chatId, const QByteArray &uuid, const QList<TextAutoGenerateText::TextAutoGenerateReply::ToolCallArgumentInfo> &info, const QList<QByteArray> &activeTools)
bool cancelRequest(const QByteArray &chatId)
bool cancelRequest(const QByteArray &chatId, const QModelIndex &index)
void changeFavoriteHistory(const QByteArray &chatId, bool favorite)
void changeInProgress(const QByteArray &chatId, const QByteArray &uuid, bool inProgress)
bool chatInProgress(const QByteArray &chatId) const
bool chatIsFavorite(const QByteArray &chatId) const
bool chatIsPersisted(const QByteArray &chatId) const
QByteArray chatProject(const QByteArray &chatId) const
QList<QByteArray> chatTags(const QByteArray &chatId) const
QStringList chatsList() const
void checkEngineStatus()
QByteArray createEphemeralChat()
QByteArray createNewChat(const QString &title = {}, TextAutoGenerateText::TextAutoGenerateChat::Persistence persistence = TextAutoGenerateChat::Persistence::Persisted)
TextAutoGenerateText::TextAutoGenerateToolCallJob *createToolCallJob(const QByteArray &chatId, const QByteArray &uuid, const QList<TextAutoGenerateText::TextAutoGenerateReply::ToolCallArgumentInfo> &info, const QList<QByteArray> &activeTools)
QByteArray currentChatId() const
TextAutoGenerateText::TextAutoGenerateLocalDatabaseManager *databaseManager() const
bool debug() const
void duplicateChat(const QByteArray &chatId, const QByteArray &untilMessageUUid = {})
void forkDiscussionUntilMessage(const QByteArray &chatId, const QByteArray &uuid)
QString generateAttachmentTemporaryFile(const QByteArray &attachmentId) const
QString generateEngineDisplayName() const
void goToMessage(const QByteArray &chatId, const QByteArray &messageId)
bool hasChatInProgress() const
bool haveInsertText() const
void importChat(const QString &title, const QList<TextAutoGenerateText::TextAutoGenerateMessage> &msgs)
QJsonArray internalToolsMetaData() const
void loadEngine()
void loadHistory()
void loadHistory(TextAutoGenerateText::TextAutoGenerateManager::EmptyHistory emptyHistory)
QString localDatabasePath() const
TextAutoGenerateText::TextAutoGenerateMessagesModel *messagesModelFromChatId(const QByteArray &chatId) const
bool pluginWasInitialized() const
QModelIndex refreshAnswer(const QByteArray &chatId, const QByteArray &uuid) const
void removeDiscussion(const QByteArray &chatId)
void removeMessage(const QByteArray &chatId, const QByteArray &uuid)
void replaceContent(const QByteArray &chatId, const QByteArray &uuid, const TextAutoGenerateText::TextAutoGenerateReply::Response &content, const QList<TextAutoGenerateText::TextAutoGenerateAttachmentUtils::AttachmentElementInfo> &attachementInfoList)
void resetCurrentChatId()
void saveChat(const QByteArray &chatId)
void saveCurrentChatInDataBase(const QByteArray &chatId, bool force = false)
QList<TextAutoGenerateText::TextAutoGenerateSearchMessage> searchTextInDatabase(const QString &searchText)
void setChatProject(const QByteArray &chatId, const QByteArray &projectId)
void setChatTags(const QByteArray &chatId, const QList<QByteArray> &tags)
void setCurrentChatId(const QByteArray &newCurrentChatId)
void setDebug(bool newDebug)
void setHaveInsertText(bool newHaveInsertText)
void setPluginWasInitialized(bool newPluginWasInitialized)
void setShowArchived(bool newShowArchived)
void setSystemPrompt(const QString &newSystemPrompt)
void setTextAutoGenerateTextToolInternalInterface(TextAutoGenerateText::TextAutoGenerateTextToolInternalInterface *newTextAutoGenerateTextToolInternalInterface)
bool showArchived() const
void switchToChat(const QString &chatName)
void switchToChatId(const QByteArray &chatId)
QString systemPrompt() const
TextAutoGenerateText::TextAutoGenerateAgentPrompSkillManager *textAutoGenerateAgentPrompSkillManager() const
TextAutoGenerateText::TextAutoGenerateChatSettings *textAutoGenerateChatSettings() const
TextAutoGenerateText::TextAutoGenerateChatsModel *textAutoGenerateChatsModel() const
TextAutoGenerateText::TextAutoGenerateEngineLoader *textAutoGenerateEngineLoader() const
TextAutoGenerateText::TextAutoGenerateMcpToolsManager *textAutoGenerateMcpToolsManager() const
TextAutoGenerateText::TextAutoGenerateTextPlugin *textAutoGeneratePlugin() const
TextAutoGenerateText::TextAutoGenerateProjectsManager *textAutoGenerateProjectsManager() const
TextAutoGenerateText::TextAutoGenerateTagsManager *textAutoGenerateTagsManager() const
TextAutoGenerateText::TextAutoGenerateTextInstancesManager *textAutoGenerateTextInstancesManager() const
TextAutoGenerateTextMcpProtocolCore::McpServerManager *textAutoGenerateTextMcpServerManager() const
TextAutoGenerateText::TextAutoGenerateTextToSpeechEnqueueManager *textAutoGenerateTextToSpeechEnqueueManager() const
TextAutoGenerateText::TextAutoGenerateTextToolInternalInterface *textAutoGenerateTextToolInternalInterface() const
void updateMessageInfo(const QByteArray &chatId, const QByteArray &uuid, const TextAutoGenerateText::TextAutoGenerateAnswerInfo &messageInfo)
void updateProjects(const QList<TextAutoGenerateText::TextAutoGenerateProject> &projects)
void updateTags(const QList<TextAutoGenerateText::TextAutoGenerateTag> &tags)
void verifyListEmpty()

Signals

void answerGeneratedDone(const QString &question)
void askMessageRequested(const TextAutoGenerateText::TextAutoGenerateManager::AskMessageInfo &info)
void chatInProgressChanged(bool inProgress)
void chatInProgressStatusChanged(const QByteArray &chatId, bool inProgress)
void chatListChanged(const QString &id)
void configChanged()
void currentChatIdChanged()
void currentModelChanged()
void discussionListIsEmpty(bool isEmpty)
void downloadErrorOccured(const QString &msg)
void downloadModelFinished(const QString &modelName)
void errorOccurred(QNetworkReply::NetworkError e, const QString &errorString)
void fontSizeChanged()
void information(const QString &str)
void insertBlockCode(const QString &str)
void instanceFailed()
void instanceProcessOk()
void loadEngineDone()
void modelListChanged(const QString &id)
void needToAddInstances()
void numberOfSearchStringChanged(int number)
void openSavedFileFolderDone(const QList<QUrl> &urls, TextAutoGenerateText::TextAutoGenerateManager::FileType fileType)
void pluginsInitializedDone()
void sendMessageRequested(const QString &str)
void showArchiveChanged()
void showMessageId(const QByteArray &msgId)
void startOllamaRequested()
void toolInProgress(const QString &info)

Static Public Members

QString convertCategoryToI18n(TextAutoGenerateText::TextAutoGenerateManager::Category cat)
TextAutoGenerateText::TextAutoGenerateManager::Category convertStringToCategory(const QString &str)

Private Slots

void slotChatListChanged(const QString &id)

Detailed Description

Member Function Documentation

[explicit] TextAutoGenerateManager::TextAutoGenerateManager(QObject *parent = nullptr)

Constructs a new TextAutoGenerateManager object. parent The parent QObject

[override virtual noexcept] TextAutoGenerateManager::~TextAutoGenerateManager()

Destroys the TextAutoGenerateManager object.

void TextAutoGenerateManager::addMessage(const QByteArray &chatId, const TextAutoGenerateText::TextAutoGenerateMessage &msg)

Adds a message to a chat. chatId The ID of the chat msg The message to add

[signal] void TextAutoGenerateManager::answerGeneratedDone(const QString &question)

Emitted when an answer has been generated.

void TextAutoGenerateManager::archiveDiscussion(const QByteArray &chatId, bool archive)

Archives or unarchives a discussion. chatId The ID of the chat archive true to archive, false to unarchive

void TextAutoGenerateManager::ask(const TextAutoGenerateText::TextAutoGenerateManager::AskMessageInfo &info)

Sends a message to the text generator with the given parameters. info The AskMessageInfo containing the message and settings

[signal] void TextAutoGenerateManager::askMessageRequested(const TextAutoGenerateText::TextAutoGenerateManager::AskMessageInfo &info)

Emitted when a message should be asked from the assistant.

void TextAutoGenerateManager::askStartOllama()

askStartOllama

void TextAutoGenerateManager::askToAssistant(const QString &msg)

Sends a message to the assistant. msg The message to send

TextAutoGenerateText::TextAutoGenerateToolCallJob *TextAutoGenerateManager::callTools(const QByteArray &chatId, const QByteArray &uuid, const QList<TextAutoGenerateText::TextAutoGenerateReply::ToolCallArgumentInfo> &info, const QList<QByteArray> &activeTools)

Calls tools for a message. chatId The ID of the chat uuid The UUID of the message info The tool call argument information activeTools Tools selected by user, only these MCP tools can be called Returns The started job, it can be used to cancel tool calls

bool TextAutoGenerateManager::cancelRequest(const QByteArray &chatId)

Cancels the answer in progress of a chat: request of plugin and tool calls are stopped. chatId The ID of the chat Returns true if an answer was in progress, false otherwise

bool TextAutoGenerateManager::cancelRequest(const QByteArray &chatId, const QModelIndex &index)

Cancels an ongoing request. chatId The ID of the chat index The model index of the message Returns true if the request was cancelled, false otherwise

void TextAutoGenerateManager::changeFavoriteHistory(const QByteArray &chatId, bool favorite)

Changes the favorite status of a chat. chatId The ID of the chat favorite true to mark as favorite, false to unmark

void TextAutoGenerateManager::changeInProgress(const QByteArray &chatId, const QByteArray &uuid, bool inProgress)

Changes the in-progress status of a message. chatId The ID of the chat uuid The UUID of the message inProgress true if processing, false otherwise

bool TextAutoGenerateManager::chatInProgress(const QByteArray &chatId) const

Checks if a chat is currently processing. chatId The ID of the chat Returns true if the chat is in progress, false otherwise

[signal] void TextAutoGenerateManager::chatInProgressChanged(bool inProgress)

Emitted when the chat processing status changes.

[signal] void TextAutoGenerateManager::chatInProgressStatusChanged(const QByteArray &chatId, bool inProgress)

Emitted when the processing status of the chat chatId changes. Unlike chatInProgressChanged(), it is emitted for all chats, not only the current one.

bool TextAutoGenerateManager::chatIsFavorite(const QByteArray &chatId) const

Checks if a chat is marked as favorite. chatId The ID of the chat Returns true if the chat is favorite, false otherwise

bool TextAutoGenerateManager::chatIsPersisted(const QByteArray &chatId) const

chatIsPersisted chatId Returns

[signal] void TextAutoGenerateManager::chatListChanged(const QString &id)

Emitted when the chat list changes.

QByteArray TextAutoGenerateManager::chatProject(const QByteArray &chatId) const

Returns the identifier of the project a chat belongs to, or an empty identifier when the chat doesn't belong to any project. chatId The ID of the chat

See also setChatProject().

QList<QByteArray> TextAutoGenerateManager::chatTags(const QByteArray &chatId) const

Returns the tag identifiers assigned to a chat. chatId The ID of the chat

See also setChatTags().

QStringList TextAutoGenerateManager::chatsList() const

Returns a list of all chat names. Returns A list of chat names as QStringList

void TextAutoGenerateManager::checkEngineStatus()

[signal] void TextAutoGenerateManager::configChanged()

Emitted when the configuration changes.

[static] QString TextAutoGenerateManager::convertCategoryToI18n(TextAutoGenerateText::TextAutoGenerateManager::Category cat)

Converts a category enum value to a localized string. cat The Category enum value Returns The localized category name as a QString

[static] TextAutoGenerateText::TextAutoGenerateManager::Category TextAutoGenerateManager::convertStringToCategory(const QString &str)

Converts a string to the corresponding Category enum value. str The category string to convert Returns The corresponding Category enum value

QByteArray TextAutoGenerateManager::createEphemeralChat()

Creates a new ephemeral chat, which is never stored in database until it is saved. Unlike createNewChat(), the current chat is not changed. Returns The identifier of the new chat

QByteArray TextAutoGenerateManager::createNewChat(const QString &title = {}, TextAutoGenerateText::TextAutoGenerateChat::Persistence persistence = TextAutoGenerateChat::Persistence::Persisted)

Creates a new chat. title The title of the new chat (optional) persistence The Persistence info (optional) Returns The identifier of the new chat. It becomes the current chat when plugin is initialized

TextAutoGenerateText::TextAutoGenerateToolCallJob *TextAutoGenerateManager::createToolCallJob(const QByteArray &chatId, const QByteArray &uuid, const QList<TextAutoGenerateText::TextAutoGenerateReply::ToolCallArgumentInfo> &info, const QList<QByteArray> &activeTools)

Create job which calls tools info (plugin, internal and MCP tools). Job must be started. Only MCP tools selected in activeTools can be called.

QByteArray TextAutoGenerateManager::currentChatId() const

Returns the ID of the current chat. Returns The current chat ID as a QByteArray

See also setCurrentChatId().

[signal] void TextAutoGenerateManager::currentChatIdChanged()

Emitted when the current chat ID changes.

[signal] void TextAutoGenerateManager::currentModelChanged()

Emitted when the current model changes.

TextAutoGenerateText::TextAutoGenerateLocalDatabaseManager *TextAutoGenerateManager::databaseManager() const

Returns the database manager. Returns A pointer to the TextAutoGenerateLocalDatabaseManager

bool TextAutoGenerateManager::debug() const

Returns whether debug mode is enabled. Returns true if debug mode is enabled, false otherwise

See also setDebug().

[signal] void TextAutoGenerateManager::discussionListIsEmpty(bool isEmpty)

[signal] void TextAutoGenerateManager::downloadErrorOccured(const QString &msg)

Emitted when a download error occurs.

[signal] void TextAutoGenerateManager::downloadModelFinished(const QString &modelName)

Emitted when a model download finishes.

void TextAutoGenerateManager::duplicateChat(const QByteArray &chatId, const QByteArray &untilMessageUUid = {})

duplicateChat This method duplicates chats and messages chatId

[signal] void TextAutoGenerateManager::errorOccurred(QNetworkReply::NetworkError e, const QString &errorString)

Emitted when a network error occurs.

[signal] void TextAutoGenerateManager::fontSizeChanged()

Emitted when the font size changes.

void TextAutoGenerateManager::forkDiscussionUntilMessage(const QByteArray &chatId, const QByteArray &uuid)

forkDiscussionUntilMessage chatId uuid

QString TextAutoGenerateManager::generateAttachmentTemporaryFile(const QByteArray &attachmentId) const

Generates a temporary file path for an attachment. attachmentId The ID of the attachment Returns The file path as a QString

QString TextAutoGenerateManager::generateEngineDisplayName() const

Generates a display name for the current engine. Returns The engine display name as a QString

void TextAutoGenerateManager::goToMessage(const QByteArray &chatId, const QByteArray &messageId)

Navigates to a specific message in a chat. chatId The ID of the chat messageId The ID of the message to navigate to

bool TextAutoGenerateManager::hasChatInProgress() const

hasChatInProgress Returns true if there is at least one chat in progress.

bool TextAutoGenerateManager::haveInsertText() const

See also setHaveInsertText().

void TextAutoGenerateManager::importChat(const QString &title, const QList<TextAutoGenerateText::TextAutoGenerateMessage> &msgs)

importChat This method allows to import list of message title the title of chat msgs list of messages

[signal] void TextAutoGenerateManager::information(const QString &str)

information str

[signal] void TextAutoGenerateManager::insertBlockCode(const QString &str)

[signal] void TextAutoGenerateManager::instanceFailed()

Emitted when Ollama fails.

[signal] void TextAutoGenerateManager::instanceProcessOk()

Emitted when the Ollama process state changes.

QJsonArray TextAutoGenerateManager::internalToolsMetaData() const

void TextAutoGenerateManager::loadEngine()

Loads the text generation engine.

[signal] void TextAutoGenerateManager::loadEngineDone()

Emitted when the engine has finished loading.

void TextAutoGenerateManager::loadHistory()

Loads the chat history from the database. A new chat is created when there is no chat.

void TextAutoGenerateManager::loadHistory(TextAutoGenerateText::TextAutoGenerateManager::EmptyHistory emptyHistory)

Loads the chat history from the database. emptyHistory Whether a new chat is created when there is no chat

QString TextAutoGenerateManager::localDatabasePath() const

localDatabasePath Returns

TextAutoGenerateText::TextAutoGenerateMessagesModel *TextAutoGenerateManager::messagesModelFromChatId(const QByteArray &chatId) const

Returns the messages model for a specific chat. chatId The ID of the chat Returns A pointer to the TextAutoGenerateMessagesModel

[signal] void TextAutoGenerateManager::modelListChanged(const QString &id)

Emitted when the model list changes.

[signal] void TextAutoGenerateManager::needToAddInstances()

Emitted when new instances need to be added.

[signal] void TextAutoGenerateManager::numberOfSearchStringChanged(int number)

Emitted when the number of search strings changes.

[signal] void TextAutoGenerateManager::openSavedFileFolderDone(const QList<QUrl> &urls, TextAutoGenerateText::TextAutoGenerateManager::FileType fileType)

openSavedFileFolderDone urls fileType

bool TextAutoGenerateManager::pluginWasInitialized() const

Returns whether the plugin has been initialized. Returns true if the plugin was initialized, false otherwise

See also setPluginWasInitialized().

[signal] void TextAutoGenerateManager::pluginsInitializedDone()

Emitted when all plugins have been initialized.

QModelIndex TextAutoGenerateManager::refreshAnswer(const QByteArray &chatId, const QByteArray &uuid) const

Refreshes an answer in a chat. chatId The ID of the chat uuid The UUID of the message to refresh Returns The model index of the refreshed message

void TextAutoGenerateManager::removeDiscussion(const QByteArray &chatId)

Removes a discussion (chat) from the database. chatId The ID of the chat to remove

void TextAutoGenerateManager::removeMessage(const QByteArray &chatId, const QByteArray &uuid)

Removes a message from a chat. chatId The ID of the chat uuid The UUID of the message to remove

void TextAutoGenerateManager::replaceContent(const QByteArray &chatId, const QByteArray &uuid, const TextAutoGenerateText::TextAutoGenerateReply::Response &content, const QList<TextAutoGenerateText::TextAutoGenerateAttachmentUtils::AttachmentElementInfo> &attachementInfoList)

Replaces the content of a message in a chat. chatId The ID of the chat uuid The UUID of the message content The new response content attachementInfoList List of attachment information

void TextAutoGenerateManager::resetCurrentChatId()

Resets the current chat ID.

void TextAutoGenerateManager::saveChat(const QByteArray &chatId)

Stores the chat identified by chatId in the local database.

void TextAutoGenerateManager::saveCurrentChatInDataBase(const QByteArray &chatId, bool force = false)

Saves the current chat to the database. chatId The ID of the chat to save force Useful when we import database

QList<TextAutoGenerateText::TextAutoGenerateSearchMessage> TextAutoGenerateManager::searchTextInDatabase(const QString &searchText)

Searches for text in the database. searchText The text to search for Returns A list of matching TextAutoGenerateSearchMessage objects

[signal] void TextAutoGenerateManager::sendMessageRequested(const QString &str)

Emitted when a message should be sent.

void TextAutoGenerateManager::setChatProject(const QByteArray &chatId, const QByteArray &projectId)

Moves a chat to a project. chatId The ID of the chat projectId The project identifier, an empty identifier removing the chat from its project

See also chatProject().

void TextAutoGenerateManager::setChatTags(const QByteArray &chatId, const QList<QByteArray> &tags)

Assigns tags to a chat. chatId The ID of the chat tags The tag identifiers to assign

See also chatTags().

void TextAutoGenerateManager::setCurrentChatId(const QByteArray &newCurrentChatId)

Sets the current chat ID. newCurrentChatId The chat ID to set

See also currentChatId().

void TextAutoGenerateManager::setDebug(bool newDebug)

Sets whether debug mode should be enabled. newDebug true to enable, false to disable

See also debug().

void TextAutoGenerateManager::setHaveInsertText(bool newHaveInsertText)

See also haveInsertText().

void TextAutoGenerateManager::setPluginWasInitialized(bool newPluginWasInitialized)

Sets the plugin initialization status. newPluginWasInitialized true if initialized, false otherwise

See also pluginWasInitialized().

void TextAutoGenerateManager::setShowArchived(bool newShowArchived)

Sets whether archived chats should be shown. newShowArchived true to show archived chats, false to hide them

See also showArchived().

void TextAutoGenerateManager::setSystemPrompt(const QString &newSystemPrompt)

Sets the system prompt. newSystemPrompt The system prompt to set

See also systemPrompt().

void TextAutoGenerateManager::setTextAutoGenerateTextToolInternalInterface(TextAutoGenerateText::TextAutoGenerateTextToolInternalInterface *newTextAutoGenerateTextToolInternalInterface)

See also textAutoGenerateTextToolInternalInterface().

[signal] void TextAutoGenerateManager::showArchiveChanged()

Emitted when the archive visibility changes.

bool TextAutoGenerateManager::showArchived() const

Returns whether archived chats are shown. Returns true if archived chats are shown, false otherwise

See also setShowArchived().

[signal] void TextAutoGenerateManager::showMessageId(const QByteArray &msgId)

Emitted to show a specific message by ID.

[private slot] void TextAutoGenerateManager::slotChatListChanged(const QString &id)

[signal] void TextAutoGenerateManager::startOllamaRequested()

Emitted when Ollama startup is requested.

void TextAutoGenerateManager::switchToChat(const QString &chatName)

Switches to a chat by name. chatName The name of the chat to switch to

void TextAutoGenerateManager::switchToChatId(const QByteArray &chatId)

Switches to a chat by ID. chatId The ID of the chat to switch to

QString TextAutoGenerateManager::systemPrompt() const

Returns the system prompt. Returns The system prompt as a QString

See also setSystemPrompt().

TextAutoGenerateText::TextAutoGenerateAgentPrompSkillManager *TextAutoGenerateManager::textAutoGenerateAgentPrompSkillManager() const

textAutoGenerateAgentPrompSkillManager Returns

TextAutoGenerateText::TextAutoGenerateChatSettings *TextAutoGenerateManager::textAutoGenerateChatSettings() const

Returns the chat settings. Returns A pointer to the TextAutoGenerateChatSettings

TextAutoGenerateText::TextAutoGenerateChatsModel *TextAutoGenerateManager::textAutoGenerateChatsModel() const

Returns the chats model. Returns A pointer to the TextAutoGenerateChatsModel

TextAutoGenerateText::TextAutoGenerateEngineLoader *TextAutoGenerateManager::textAutoGenerateEngineLoader() const

Returns the engine loader. Returns A pointer to the TextAutoGenerateEngineLoader

TextAutoGenerateText::TextAutoGenerateMcpToolsManager *TextAutoGenerateManager::textAutoGenerateMcpToolsManager() const

textAutoGenerateMcpToolsManager Returns manager of connections to MCP servers and of their tools

TextAutoGenerateText::TextAutoGenerateTextPlugin *TextAutoGenerateManager::textAutoGeneratePlugin() const

Returns the text auto generate plugin. Returns A pointer to the TextAutoGenerateTextPlugin

TextAutoGenerateText::TextAutoGenerateProjectsManager *TextAutoGenerateManager::textAutoGenerateProjectsManager() const

textAutoGenerateProjectsManager Returns

TextAutoGenerateText::TextAutoGenerateTagsManager *TextAutoGenerateManager::textAutoGenerateTagsManager() const

textAutoGenerateTagsManager Returns

TextAutoGenerateText::TextAutoGenerateTextInstancesManager *TextAutoGenerateManager::textAutoGenerateTextInstancesManager() const

Returns the instances manager. Returns A pointer to the TextAutoGenerateTextInstancesManager

TextAutoGenerateTextMcpProtocolCore::McpServerManager *TextAutoGenerateManager::textAutoGenerateTextMcpServerManager() const

textAutoGenerateTextMcpServerManager Returns

TextAutoGenerateText::TextAutoGenerateTextToSpeechEnqueueManager *TextAutoGenerateManager::textAutoGenerateTextToSpeechEnqueueManager() const

Returns the text-to-speech enqueue manager. Returns A pointer to the TextAutoGenerateTextToSpeechEnqueueManager

TextAutoGenerateText::TextAutoGenerateTextToolInternalInterface *TextAutoGenerateManager::textAutoGenerateTextToolInternalInterface() const

See also setTextAutoGenerateTextToolInternalInterface().

[signal] void TextAutoGenerateManager::toolInProgress(const QString &info)

Emitted when a tool is being processed.

void TextAutoGenerateManager::updateMessageInfo(const QByteArray &chatId, const QByteArray &uuid, const TextAutoGenerateText::TextAutoGenerateAnswerInfo &messageInfo)

updateMessageInfo chatId uuid messageInfo

void TextAutoGenerateManager::updateProjects(const QList<TextAutoGenerateText::TextAutoGenerateProject> &projects)

Replaces the known projects by projects, storing the change in the local database. Projects which are not in projects any more are removed from the chats which belonged to them.

void TextAutoGenerateManager::updateTags(const QList<TextAutoGenerateText::TextAutoGenerateTag> &tags)

Replaces the known tags by tags, storing the change in the local database. Tags which are not in tags any more are removed from the chats which used them.

void TextAutoGenerateManager::verifyListEmpty()

verifyListEmpty