Files
moranzhi 94f67fa744 引入上下文片段、固定槽与投影排序,并完善机遇裁定与游玩期 UI。
把创作产物收敛为可挂载片段与 play_slots/context_order,同步修订世界模拟器模块与运行时拼装。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 01:36:32 +08:00

23 lines
901 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
id: chance
label: 机遇裁定
role: chance
duty: >
按需程序工具:掷骰、点数比拼、抽签/加权抽取。不进每轮管线;由编排器
run_workerworkerContext.chance 或黑板 运行.机会请求)调用。禁止模型编造随机。
when: 需要真随机或可复核比点时
suggested_context:
static:
- 设计.worker集
dynamic:
- 运行.机会请求
suggested_outputs:
- 运行.本轮.机遇
prompt_excerpt: |
本执行单元由程序实现,不走 LLM。
请求形状chance.v1 入参):
- roll: { "op":"roll", "expression":"2d6+1", "reason":"可选" }
- compare: { "op":"compare", "left":14, "right":12, "mode":"gte" }
- draw: { "op":"draw", "pool":["甲","乙"], "count":1, "unique":true }
- pick: { "op":"pick", "items":[{"id":"a","weight":2},{"id":"b"}], "count":1 }
结果写入「运行.本轮.机遇」schema: chance.v1