Kaizen
Browse modulesInsightsinsights/serverInterfaces

Interface: AskDraftedInfo

Defined in: server/insights/ask/report-drafter.ts:112

The audit record for one Ask attempt-sequence. Carries the user's own question (that is the point of the audit trail) and the drafted subject, but never the model's raw text: an unvalidated blob is not something a consumer should be tempted to persist or replay.

Properties

attempts

attempts: number;

Defined in: server/insights/ask/report-drafter.ts:118

0 for a preflight rejection, 1 for one draft, 2 after the retry.


issueCodes

issueCodes: string[];

Defined in: server/insights/ask/report-drafter.ts:130

Issue codes from the final attempt; empty when ok.


ok

ok: boolean;

Defined in: server/insights/ask/report-drafter.ts:119


organizationId

organizationId: string;

Defined in: server/insights/ask/report-drafter.ts:113


prompt

prompt: string;

Defined in: server/insights/ask/report-drafter.ts:116

The end user's normalized question.


result

result: AskDraftResult;

Defined in: server/insights/ask/report-drafter.ts:126

The same validated result returned by AskService.draft.

Safe logical keys and structured issues only - never the model's raw, unvalidated text.


subject?

optional subject?: string;

Defined in: server/insights/ask/report-drafter.ts:128

The drafted subject key; present only when ok.


usage?

optional usage?: DraftReportUsage;

Defined in: server/insights/ask/report-drafter.ts:132

Usage reported by the final attempt, when the adapter supplies it.


userId?

optional userId?: string;

Defined in: server/insights/ask/report-drafter.ts:114

On this page