simulate_k2_session
Run the real K2 engine over your own items. Give it a list of terms (any strings — your flashcards, cube cases, anything), a study mode, and a sequence of answers, and it returns the p-value trajectory per answer, which items are now mastered, when the pool expanded, and the probability distribution over what K2 would serve next. Use this to drive your own drilling with K2 as the scheduler instead of reimplementing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Which dimension is being drilled (each carries its own p). | |
| steps | Yes | Answers in order. `outcome` is correct | incorrect | hinted (hinted = answered with the crutch visible; cools more weakly). | |
| terms | Yes | The item pool. Any strings; the engine only needs identity. | |
| starting_level | No | Treat the first N terms as already known (pre-cooled), as the app's head-start option does. Default 0. |