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
| Parameter | Type | Default value |
|---|---|---|
input | DraftReportInput | undefined |
enumValueLimit | number | MAX_ENUM_VALUES_PER_FIELD |