"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parser = exports.messageSchema = void 0;
const output_parsers_1 = require("langchain/output_parsers");
const zod_1 = require("zod");
/**
 * Message Generation Output Schema
 * Defines the expected structure of the LLM response:
 * - subject: Clear, professional subject line
 * - message: Complete, markdown-formatted message body
 */
exports.messageSchema = zod_1.z.object({
    subject: zod_1.z.string(),
    message: zod_1.z.string(),
});
exports.parser = output_parsers_1.StructuredOutputParser.fromZodSchema(exports.messageSchema);
//# sourceMappingURL=parser.js.map