TimelineFix.h header

#include <ew/app/TimelineFix.h>

Namespace ew::app

Functions

AiRequest ew::app::buildTimelineFixRequest(const QString &conflictDescription, const QString &eventContext)

Builds an AI request that asks a continuity editor to propose concrete ways to resolve a detected timeline conflict. conflictDescription is the validator's explanation (see TimelineConflict); eventContext describes the events it involves (their titles, dates, participants, and locations, assembled by the caller). The model is told to suggest one or two specific fixes – adjust a date, change a location, split an event, or correct a lifespan – briefly and without inventing facts beyond what is given. Backs DESIGN §4.8 "propose timeline-conflict fixes".

Pure (assembles the prompt only); the caller fills the model from settings, sends it via an AiProvider, and shows the reply as advice. The model name is left empty for the caller to set.