Kaizen
Browse modulesInsightsinsights/serverFunctions

Function: buildAskPromptPayload()

function buildAskPromptPayload(input: DraftReportInput, enumValueLimit?: number): AskPromptPayload;

Defined in: server/insights/ask/prompt-payload.ts:77

Project a DraftReportInput into the wire payload: cap the enum allowlists, default the timezone, and normalize priorIssues to a plain array (dropping it entirely when empty, so a first attempt and a retry are visibly different prompts).

Parameters

ParameterTypeDefault value
inputDraftReportInputundefined
enumValueLimitnumberMAX_ENUM_VALUES_PER_FIELD

Returns

AskPromptPayload

On this page