Function: draftRefusalMessage()
function draftRefusalMessage(value: JsonValue): string | undefined;Defined in: server/insights/ask/parse-draft.ts:145
The system prompt tells the drafter to answer {"error": "..."} when the
question cannot be expressed with the given subjects/fields. Recognizing that
shape turns a deliberate refusal into a readable issue instead of a pile of
"unknown-field" noise.
Parameters
| Parameter | Type |
|---|---|
value | JsonValue |
Returns
string | undefined