export const explainEventHandlerCodePrompt = ({ code, pageContent, finalizeToolName, readFileToolName, }) => `
Your task: Summarize the following event handler code for a non-technical user in plain English.
Respond with JUST the answer to the user's prompt, nothing else, and then call the ${finalizeToolName} tool.
You have tools to read files in the application. Use them if you need to understand what variables, functions, or components are imported into the page.

REQUIREMENTS:
- Write 1-2 concise sentences explaining what happens when this code runs. 50 characters max.
- Focus on the business logic and what the user will experience, not technical implementation details
- DO NOT use programming terminology (e.g., say "checks if" instead of "evaluates expression")
- DO NOT include any code snippets in your response
- If the code references variables or functions, use ${readFileToolName} to understand their definition before explaining
- Example: Instead of "sets disabled property", say "prevents the button from being clicked if the user is a guest"

Event Handler Code To Summarize:
\`\`\`javascript
${code}
\`\`\`

File For Context:
\`\`\`tsx
${pageContent}
\`\`\``;
//# sourceMappingURL=explain-code.js.map