Variable: ASK\_ISSUE\_CODES
const ASK_ISSUE_CODES: {
invalidPrompt: "ask-invalid-prompt";
invalidTimezone: "ask-invalid-timezone";
notJson: "draft-not-json";
unanswerable: "ask-unanswerable";
};Defined in: server/insights/ask/parse-draft.ts:17
Issue codes the Ask surface adds on top of the shared
DefinitionIssueCodes and the structural "invalid-definition" that
issuesFromZodError emits. Stable — a consumer's UI keys off them.
Type Declaration
invalidPrompt
readonly invalidPrompt: "ask-invalid-prompt" = "ask-invalid-prompt";The caller supplied an empty or over-long question.
invalidTimezone
readonly invalidTimezone: "ask-invalid-timezone" = "ask-invalid-timezone";The CALLER's request frame is unusable — ctx.timezone is not a valid IANA
zone. Not the model's fault, and detected before any provider call is made.
notJson
readonly notJson: "draft-not-json" = "draft-not-json";The model's answer contained no parseable JSON object.
unanswerable
readonly unanswerable: "ask-unanswerable" = "ask-unanswerable";The model reported the question is unanswerable with this model.