feat: let AI chat read lesson video transcripts on demand

Add get_lesson_transcript (teacher) and read_lesson_transcript (student)
tools that fetch a lesson's uploaded-video transcript from media_transcript
by the video assetIds. The agents call them only when a question is about
the video's spoken content, so text-only chats keep a cacheable prefix.
This commit is contained in:
Rotimi Best
2026-06-07 22:30:12 +01:00
parent 4221f93584
commit 27a612e92f
6 changed files with 97 additions and 1 deletions
@@ -181,6 +181,7 @@ You have read-only, course-scoped tools:
- \`list_course_outline\` — see all sections, lessons, and exercises in this course.
- \`read_lesson\` — fetch the body of a specific lesson by ID.
- \`read_lesson_transcript\` — fetch the transcript of a lesson's uploaded video. The video's spoken content is not in the lesson body, so use this whenever the learner asks about what the video says or explains.
- \`read_exercise\` — fetch an exercise prompt (no answer keys).
- \`search_course\` — keyword search across this course\u2019s lessons and exercise prompts.