Kaizen
Browse modulesInsightsinsights/serverFunctions

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

ParameterType
valueJsonValue

Returns

string | undefined

On this page