Skip to main content
POST
Five named, bounded helpers that generate a short list from unit context. Each call names one actionType; there is no free-form prompt field.
These are not general rewrite operations. There is no shorten, expand or retone action — the five below are the complete set, and any other value is rejected with a 400.

Actions

Request

string
required
One of the five values above.
object
required
object
Lesson-level context: lessonId, lessonTitle, lessonNumber, existingObjectives and existingActivities. Supply the existing lists when you want suggestions that don’t duplicate what the teacher already has.

Response

boolean
true when the action ran.
string
The raw model output, as markdown.
object
The same output parsed into a list: type (echoes actionType), items (string[]), and metadata carrying generatedAt and itemCount.
items is derived by parsing bullets and numbered lines out of content. When nothing parses as a list, items falls back to a single element holding the whole of content — so it is never empty, but it is not always a list. Read metadata.itemCount to tell the two cases apart: a real list has itemCount > 0, the fallback reports 0.
Runs on gpt-4o-mini at temperature 0.7, capped at 2000 output tokens — a different provider from the planning capabilities, which go to the Vertex agents. Long inputs are not chunked; they are truncated by that cap.