Skip to content

Commit

Permalink
fix: prompt key stage enum (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
mantagen authored Sep 12, 2024
1 parent 55b299c commit 22102fd
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/aila/src/protocol/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,23 @@ export const CompletedLessonPlanSchema = z.object({
"The title of the lesson. Lesson titles should be a unique and succinct statement, not a question. Can include special characters if appropriate but should not use & sign instead of 'and'. Written in the TEACHER_TO_PUPIL_SLIDES voice.",
),
keyStage: z
.string()
.describe("The lesson's Key Stage as defined by UK educational standards."),
.union([
z.enum([
"key-stage-1",
"key-stage-2",
"key-stage-3",
"key-stage-4",
"key-stage-5",
"early-years-foundation-stage",
"specialist",
"further-education",
"higher-education",
]),
z.string(),
])
.describe(
"The lesson's Key Stage as defined by UK educational standards. In slug format (kebab-case).",
),
subject: z
.string()
.describe(
Expand Down

0 comments on commit 22102fd

Please sign in to comment.