推理搜索辅助函数。
该模块保持纯函数边界:只负责 thought 评分、beam 选择和剪枝结果计算;
事件广播与子代理调度由 CMDC.Reasoning.Runner / CMDC.Reasoning.Parallel
负责。
Summary
Functions
为 thought 列表补齐 :score 和 :score_detail。
对 thought 评分并执行 beam 剪枝。
按分数从高到低保留 beam_width 个 thought,返回 {kept, pruned}。
Functions
为 thought 列表补齐 :score 和 :score_detail。
对 thought 评分并执行 beam 剪枝。
@spec select_beam([map()], pos_integer()) :: {[map()], [map()]}
按分数从高到低保留 beam_width 个 thought,返回 {kept, pruned}。