add_curriculum_item
ChatGPTAdd a new word, phrase, grammar point, lesson, or TCF exercise topic.
class_brief
ChatGPTFirst Class call. Returns LEXI character, methodology, teacher params, and learner state. Marks the Class conversation as started.
class_formats
ChatGPTFormat registry for Class tests: choice, fill, translate, order, match. Schema and example per format. No listen.
class_nudge
ChatGPTCard only: once the learner finishes the block in LEXI, returns the message the card posts in this chat.
class_results
ChatGPTRead results of a Class block after the learner finishes in the app.
class_review
ChatGPTSave the Class block analysis and free the next block. comment and message are shown to the learner in LEXI. Do not write to the learner in chat; put anything you want to tell them into message, it is shown in LEXI.
class_study
ChatGPTNext Class words from the 3000-word plan: new, review, recent errors, plus block requirements from teacher settings.
create_block
ChatGPTSend test content to Class and open it in the app. items: one per word with word, question, answer, correct, exactly 3 wrong answers, and pronunciation (how to read the word). LEXI builds the tests in the teacher's formats, saves the content for later blocks, and adds stored content for due words. Without items it builds from stored content. An unfinished block is returned as is. Do not write to the learner in chat; put anything you want to tell them into message, it is shown in LEXI.
create_lesson
ChatGPTSend a list of chat words to the app as a lesson, or test content for Class: give each item pronunciation, answer (the correct answer), and notes ["question: …", "wrong: …" ×3]; LEXI then builds a Class block and shows its card. The server opens the session. Pass sessionId only after start_session. Items show under Сегодня. Rejected when repeat is on and an item has status review: practice those items with get_due_items and record_answer before adding new ones. Rejected when the plan review block is due: practice that block with get_due_items and record_answer before a new block. Status new counts only toward newItems. Rejected when items still in status new would exceed the plan newItems limit; a lesson counts each of its items.
get_activity
ChatGPTЧто ученик делал по дням: тесты, ответы, слова по блокам, что учит сейчас и что выучил. Вызывай в начале урока.
get_change_history
ChatGPTRead recent curriculum and rules changes for audit and undo.
get_due_items
ChatGPTReturn next_block, the four words to ask next, and items due for practice. Ask a review block before a new block.
get_progress
ChatGPTRead learner progress. next_block.words is the four French words to ask next, in plan order. A review block is asked before a new block.
get_study_rules
ChatGPTRead the live learner rules. instructions and next_block.words are the four words to ask next.
import_learning_history
ChatGPTImport a batch of historical learning progress as absolute state. Not a study attempt: it does not call record_answer, add a due review, count a session, or apply newItems. mode is merge. The same source and import_id does not double stats.
list_curriculum
ChatGPTList the live curriculum for the authenticated user. Nothing is hardcoded in the app.
record_answer
ChatGPTRecord a learner answer for the open test. Pass sessionId from start_session. Для теста с вариантами всегда передавай question, options, chosen, expected — приложение показывает тест целиком.
record_error
ChatGPTRecord a specific learner error and make it due sooner. Для теста с вариантами всегда передавай question, options, chosen, expected — приложение показывает тест целиком.
remove_curriculum_item
ChatGPTRemove a curriculum item. The removal is recorded and can be reverted.
revert_change
ChatGPTRevert one prior curriculum or rule change by change_id.
start_session
ChatGPTOpen the study session for this chat. Returns session_id. Call this before create_lesson, then pass that session_id to create_lesson and record_answer.
update_curriculum_item
ChatGPTEdit an existing curriculum item. Learning progress is kept unless score, attempts, correct_answers, or next_review_at is given.
update_study_rules
ChatGPTUpdate learner rules and plan without changing application code.