AiPrompts.h header

#include <ew/app/AiPrompts.h>

Namespace ew::app

Functions

AiRequest ew::app::brainstormPrompt(const QString &topic)

Asks the model to brainstorm ideas about topic.

AiRequest ew::app::continuePrompt(const QString &text)

Asks the model to continue text in the same voice and style.

AiRequest ew::app::rewritePrompt(const QString &text, const QString &instruction)

Asks the model to rewrite text following instruction (e.g. "make it tenser", "tighten").

AiRequest ew::app::summarizePrompt(const QString &text)

Asks the model for a concise summary of text.

Builders for the writing-assistant tasks the app offers, each turning user content into a ready AiRequest (a task-appropriate system message plus the user's text). They leave AiRequest::model empty for the caller to fill from settings, and are pure – no network – so they are unit-testable and reusable across the UI (menu action, inline assist, command palette). The system prompts are sensible defaults the UI may later let the user tune (personas).