lessons

Run Lesson

Run a generated lesson with streaming response.

This endpoint streams the AI tutor's response using SSE (Server-Sent Events). It uses the marker approach for tool calls (same as practice system).

Events:

  • token: Individual tokens for real-time display
  • sentence: Complete sentences for TTS
  • tools: Parsed marker results (step_update, blackboard_update, etc.)
  • done: Stream complete with timing info
  • error: If something goes wrong

Example request:

{
    "message": "Start the lesson",
    "conversation_history": [],
    "lesson_state": {"current_step": 0, "total_steps": 8, "completed": false},
    "system_prompt": "You are a warm math tutor...",
    "student_name": "Alex"
}
post/api/lessons/run

Request

  • Base URL: https://api.tegore.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.tegore.ai/api/lessons/run
  • Auth: none declared

Request body

messagestring required
conversation_historyobject[]
lesson_stateobject
system_promptstring required
session_idstring nullable
student_namestring
modelstring nullable
current_blackboardstring nullable
lesson_contextstring
available_examplesstring[]

Response

Successful Response

unknown required

Changes

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