Admin - Holiday Courses

Generate Exercise Solution For Admin

Generate a plausible solution for an exercise using AI.

This endpoint:

  1. Takes an exercise statement (LaTeX/HTML) and optional difficulty level
  2. Uses an LLM to generate a step-by-step solution
  3. Returns the generated solution formatted for KaTeX rendering

Only accessible by admin users.

post/admin/holiday-courses/exercises/generate-solution

Request body

exercise_contentstring required
difficulty'easy' | 'medium' | 'hard' nullable

Response

Successful Response

generated_solutionstring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.