TextAutoGenerateText::TextAutoGenerateManagerBase Class
class TextAutoGenerateText::TextAutoGenerateManagerBase| Header: | #include <TextAutoGenerateText/TextAutoGenerateManagerBase> |
| Inherits: | QObject |
Public Functions
| TextAutoGenerateManagerBase(QObject *parent = nullptr) | |
| virtual | ~TextAutoGenerateManagerBase() override |
| virtual TextAutoGenerateText::TextAutoGenerateReply * | getChatCompletion(const TextAutoGenerateText::TextAutoGenerateTextRequest &request) = 0 |
| virtual TextAutoGenerateText::TextAutoGenerateReply * | getCompletion(const TextAutoGenerateText::TextAutoGenerateTextRequest &request) |
| virtual TextAutoGenerateText::TextAutoGenerateReply * | getResponses(const TextAutoGenerateText::TextAutoGenerateTextRequest &request) = 0 |
| virtual void | loadModels() = 0 |
Signals
| void | canceled(const QString &modelName) |
| void | downloadDone(const QString &modelName) |
| void | errorOccurred(QNetworkReply::NetworkError e, const QString &errorString) |
| void | finished(const TextAutoGenerateText::TextAutoGenerateReply::Response &replyText) |
| void | modelsLoadDone(const TextAutoGenerateText::TextAutoGenerateManagerBase::ModelsInfo &models) |
| void | refreshInstalledModels() |
| void | showModelInfoDone(const QString &replyText) |
Detailed Description
Member Function Documentation
[explicit] TextAutoGenerateManagerBase::TextAutoGenerateManagerBase(QObject *parent = nullptr)
Constructs a new TextAutoGenerateManagerBase object. parent The parent QObject
[override virtual noexcept] TextAutoGenerateManagerBase::~TextAutoGenerateManagerBase()
Destroys the TextAutoGenerateManagerBase object.
[signal] void TextAutoGenerateManagerBase::canceled(const QString &modelName)
Emitted when a model operation is canceled. modelName The name of the model
[signal] void TextAutoGenerateManagerBase::downloadDone(const QString &modelName)
Emitted when a model download is complete. modelName The name of the downloaded model
[signal] void TextAutoGenerateManagerBase::errorOccurred(QNetworkReply::NetworkError e, const QString &errorString)
errorOccurred e errorString
[signal] void TextAutoGenerateManagerBase::finished(const TextAutoGenerateText::TextAutoGenerateReply::Response &replyText)
Emitted when the text generation reply is finished. replyText The response from the LLM
[pure virtual] TextAutoGenerateText::TextAutoGenerateReply *TextAutoGenerateManagerBase::getChatCompletion(const TextAutoGenerateText::TextAutoGenerateTextRequest &request)
Gets a chat completion for the given text generation request. request The request containing the conversation and settings Returns A TextAutoGenerateReply object representing the reply
[virtual] TextAutoGenerateText::TextAutoGenerateReply *TextAutoGenerateManagerBase::getCompletion(const TextAutoGenerateText::TextAutoGenerateTextRequest &request)
Gets a completion for the given text generation request. request The request containing the prompt and settings Returns A TextAutoGenerateReply object representing the reply
[pure virtual] TextAutoGenerateText::TextAutoGenerateReply *TextAutoGenerateManagerBase::getResponses(const TextAutoGenerateText::TextAutoGenerateTextRequest &request)
getResponses request Returns
[pure virtual] void TextAutoGenerateManagerBase::loadModels()
Loads the available models from the text generation service.
[signal] void TextAutoGenerateManagerBase::modelsLoadDone(const TextAutoGenerateText::TextAutoGenerateManagerBase::ModelsInfo &models)
Emitted when the models have finished loading. models Information about the loaded models
[signal] void TextAutoGenerateManagerBase::refreshInstalledModels()
Emitted when installed models need to be refreshed.
[signal] void TextAutoGenerateManagerBase::showModelInfoDone(const QString &replyText)
Emitted when model information display is complete. replyText The model information