get_learner_brief
Retrieve a learner brief for lesson prep: top hypotheses, needs-reverification flags, recent evaluations, and the latest teacher reflection, all in one read.
Instructions
开课前先调这个: 读回学生模型 (learner_hypotheses / post_lesson_evaluations / teacher_reflections), 不用自己扒表。输入 { pair_id?, limit? } (limit 默认 5, clamp [1,20]; pair_id 缺省用当前 active pair)。返回: top_confidence_hypotheses (在场假设按 confidence 降序取 top-limit) + needs_reverification (在场假设里 last_verified_at 最老/为空的前 2 条, 该复验了) + recent_evaluations (最近 3 条 PostLessonEvaluation 摘要, 含 agent_observation) + latest_reflection (最近一条 TeacherReflection 的 method/next_action) + confidence_facts (近三课把握度中性事实聚合: lesson_ids + total_count + overall_accuracy + by_level[{level,count,accuracy}], 纯数字词频——没有形容词、没有"她低估/高估自己"这类判词, 也没有百分比锚值; 没数据时为 null) + source_material (自带教材条款一行亮灯: 当前合约带 source_material 时给"教材:《书名》·档位", 档位语义/外延标记纪律见 skill workflow/lesson-prep 教材模式; null=当前合约没谈教材)。学生主权红线: allowed_for_teaching=false 的假设一律不吐 observation/domain/confidence 等内容, 只回 {id, allowed_for_teaching:false, redacted:true} —— 冻结的假设不该被这个读回口子悄悄泄回教学决策。Etag 契约: 返回体带 brief_etag (内容指纹, generated_at 不计入) —— 与上次同参数调用一致 ⇒ 学生模型没变, 可复用上次已读内容不必重读。pair_id 不存在时报错并附可用 pair 列表. 可选 lesson_id — 传了且这节课有挂锚反思(teacher_reflections.lesson_id 命中)时, latest_reflection 优先给这节课的那条; 没有挂锚数据时退回原有的 pair 级最新一条。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | default 5, clamp [1, 20] | |
| pair_id | No | ||
| lesson_id | No | 可选——传了会优先按这节课过滤 latest_reflection(反思挂锚)。 |