/** * Central JSON formatting instructions for consistent AI responses * Use these constants in all AI message templates to ensure proper JSON output */ /** * Standard JSON formatting instructions for all AI responses * Append this to system messages or user templates */ export declare const JSON_FORMATTING_INSTRUCTIONS = "\nIMPORTANT FORMATTING INSTRUCTIONS:\n- Return EXCLUSIVELY pure JSON without any formatting\n- Do NOT use HTML entities like
or  \n- Do NOT use Markdown formatting like ```json or ```\n- Do NOT use line breaks within JSON strings\n- Start your response directly with { and end with }\n- All text in JSON values should be written as plain strings without additional formatting\n\nEnsure your response is exclusively a valid JSON object that can be parsed directly."; /** * Basic JSON instruction for system messages (shorter version) */ export declare const BASIC_JSON_INSTRUCTION = "Return exclusively JSON. No code blocks, no backticks, just a single JSON object."; /** * Extended JSON instruction with example (for user templates) */ export declare const JSON_INSTRUCTION_WITH_EXAMPLE = "\nIMPORTANT FORMATTING INSTRUCTIONS:\n- Return EXCLUSIVELY pure JSON without any formatting\n- Do NOT use HTML entities like
or  \n- Do NOT use Markdown formatting like ```json or ```\n- Do NOT use line breaks within JSON strings\n- Start your response directly with { and end with }\n- All text in JSON values should be written as plain strings without additional formatting\n\nEnsure your response is exclusively a valid JSON object that can be parsed directly.\n\nEXAMPLE of correct formatting:\n{\"technicalSkillsScore\": 75, \"experienceScore\": 80, \"analysis\": \"The candidate meets most requirements\"}\n\nINCORRECT would be:\n```json
{\"technicalSkillsScore\": 75
..."; /** * Utility function to append JSON instructions to any message */ export declare function withJsonInstructions(message: string): string; /** * Utility function to append basic JSON instruction to system messages */ export declare function withBasicJsonInstruction(systemMessage: string): string; /** * JSON Array formatting instructions for AI responses that should return arrays * Use this when you expect the AI to return an array of items, not a single object */ export declare const JSON_ARRAY_FORMATTING_INSTRUCTIONS = "\nCRITICAL FORMATTING INSTRUCTIONS FOR JSON ARRAYS:\n- Return EXCLUSIVELY a JSON ARRAY - begin with [ and end with ]\n- Make sure to close the array properly, with ] and not ]]\n- NO wrapping object with a key - return the array directly!\n- NO Markdown formatting like ```json or ```\n- NO HTML entities like
or  \n- NO line breaks within JSON strings\n- All text in JSON values should be written as plain strings without additional formatting\n\nEXAMPLE - CORRECT:\n[{\"Name\": \"Example 1\", \"Values\": [\"A\", \"B\"]}, {\"Name\": \"Example 2\", \"Values\": [\"C\", \"D\"]}]\n\nEXAMPLE - INCORRECT (do not use):\n{\"Items\": [{\"Name\": \"Example 1\"}]}\n{\"Results\": [...]}\n\nEnsure your response is exclusively a valid JSON array that can be parsed directly."; /** * Utility function to append array-specific JSON instruction to system messages * Use this for all AI use cases that expect an array response */ export declare function withArrayJsonInstruction(systemMessage: string): string; //# sourceMappingURL=json-formatting.constants.d.ts.map