TextAutoGenerateText::TextAutoGenerateTextRequest Class

class TextAutoGenerateText::TextAutoGenerateTextRequest

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

Header: #include <TextAutoGenerateText/TextAutoGenerateTextRequest>

Public Functions

TextAutoGenerateTextRequest()
~TextAutoGenerateTextRequest()
QString message() const
QJsonArray messages() const
QString model() const
void setMessage(const QString &newMessage)
void setMessages(const QJsonArray &newMessages)
void setModel(const QString &newModel)
void setThinking(bool newThinking)
void setThinkingLevel(const QString &newThinkingLevel)
void setTools(const QList<QByteArray> &newTools)
bool thinking() const
QString thinkingLevel() const
QList<QByteArray> tools() const
bool operator==(const TextAutoGenerateText::TextAutoGenerateTextRequest &other) const

Detailed Description

Member Function Documentation

TextAutoGenerateTextRequest::TextAutoGenerateTextRequest()

Constructs a new TextAutoGenerateTextRequest object.

[noexcept] TextAutoGenerateTextRequest::~TextAutoGenerateTextRequest()

Destroys the TextAutoGenerateTextRequest object.

QString TextAutoGenerateTextRequest::message() const

Returns the message text for the request. Returns The message as a QString

See also setMessage().

QJsonArray TextAutoGenerateTextRequest::messages() const

Returns the message history in JSON format. Returns The messages as a QJsonArray

See also setMessages().

QString TextAutoGenerateTextRequest::model() const

Returns the model name for the request. Returns The model identifier

See also setModel().

void TextAutoGenerateTextRequest::setMessage(const QString &newMessage)

Sets the message text for the request. newMessage The message to set

See also message().

void TextAutoGenerateTextRequest::setMessages(const QJsonArray &newMessages)

Sets the message history in JSON format. newMessages The messages to set

See also messages().

void TextAutoGenerateTextRequest::setModel(const QString &newModel)

Sets the model name for the request. newModel The model identifier to set

See also model().

void TextAutoGenerateTextRequest::setThinking(bool newThinking)

Sets whether thinking is enabled for this request. newThinking true to enable thinking

See also thinking().

void TextAutoGenerateTextRequest::setThinkingLevel(const QString &newThinkingLevel)

Sets the thinking level sent to the server. newThinkingLevel The level, or an empty string to use the server default

See also thinkingLevel().

void TextAutoGenerateTextRequest::setTools(const QList<QByteArray> &newTools)

Sets the list of available tools for this request. newTools The tool identifiers to set

See also tools().

bool TextAutoGenerateTextRequest::thinking() const

Returns true if thinking is enabled for this request.

See also setThinking().

QString TextAutoGenerateTextRequest::thinkingLevel() const

Returns the thinking level sent to the server ("low", "high"…). An empty string means that the server default is used.

See also setThinkingLevel().

QList<QByteArray> TextAutoGenerateTextRequest::tools() const

Returns the list of available tools for this request. Returns The list of tool identifiers

See also setTools().

bool TextAutoGenerateTextRequest::operator==(const TextAutoGenerateText::TextAutoGenerateTextRequest &other) const

Compares this request with another for equality. other The request to compare with Returns true if equal, false otherwise