On this page

Utils::AiRequest Class

class Utils::AiRequest

The AiRequest class describes a task for an AI. More...

Header: #include <aiassistance.h>

Public Types

enum Mode { Interactive, Headless }

Public Variables

QList<Utils::AiContextItem> context
Utils::Id id
Utils::AiRequest::Mode mode
QString prompt
QString title
Utils::FilePath workingDirectory

Detailed Description

See also AiAssistance::submit() and AiRequestTask.

Member Type Documentation

enum AiRequest::Mode

This enum describes whether the requester wants the answer back.

ConstantValueDescription
Utils::AiRequest::Interactive0The target takes the request over, and the user continues there, such as in a chat.
Utils::AiRequest::Headless1The answer is reported back through the AiResponse.

Member Variable Documentation

QList<Utils::AiContextItem> AiRequest::context

This variable holds the context that goes along with the prompt.

Utils::Id AiRequest::id

Identifies the kind of request.

The target that the user picks is remembered for requests with the same id.

Utils::AiRequest::Mode AiRequest::mode

This variable holds whether the answer is reported back.

QString AiRequest::prompt

What the AI should do.

QString AiRequest::title

This variable holds the title of the dialog that lets the user pick a target.

Utils::FilePath AiRequest::workingDirectory

This variable holds the directory that the AI works in.

If it is empty, the provider picks one, such as the directory of the startup project.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.