get_context
Fetch a compact session snapshot on wake-up: active contracts, recent lessons, pending items, live session, and counts. Etag avoids redundant brief fetches.
Instructions
一发式冷启动定位: session 醒来先调这个, 拿到"现在这个 pair 处在哪"的紧凑快照, 而不是自己拼 live_pending + snapshot + thread 好几刀. 输入 { pair_id? } (缺省用当前 active pair). 返回: active_contracts (id/title/setup_status/一行 progress/source_material——合约带自带教材条款时的一行亮灯"教材:《书名》·档位"; null=没谈教材) + recent_lessons (最近 1-2 节课的 id/title/status, 来自最近的 PostLessonEvaluation, 没有活动记录时退回 course 前两节) + pending_pool ({count, latest_titles} 脑图待整理池, 不含全量) + live_session (最近一次 id/status/ended_at + 最新 snapshot 的存在性+时间戳, 不含全文) + unread_adhoc_count (最近一次 agent 回复之后学生新发的 adhoc 消息数) + active_reminder_count (未 fire 且未 dismiss 的提醒数). Etag 契约: 返回体带 brief_etag (默认口径 learner brief 的内容指纹) —— 与上次记住的 brief_etag 一致 ⇒ 学生模型没变, 跳过 get_learner_brief 重拉; identity 只给 learner_id/agent_id, 称谓全量在 get_learner_brief。pair_id 不存在时报错并附可用 pair 列表.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair_id | No |