import type { z } from "zod"; import zodToJsonSchema from "zod-to-json-schema"; const assistantMessage = "I am only going to return the JSON for your request, here is the perfectly correctly formatted and valid JSON with no additional formatting or text around it:"; const getSystemPrompt = (schema: z.Schema) => { const jsonSchema = zodToJsonSchema(schema, { errorMessages: true, }); return `As a genius expert, your task is to understand the content and provide the parsed objects in json that match the following json_schema:\n\`\`\`${JSON.stringify(jsonSchema, null, 2)}\`\`\``; }; export { assistantMessage, getSystemPrompt };