Files
writing-agent/skills/dialogue/world-simulator/worker-templates/chance.yaml
T
chenmoranzhiandCursor 872f742d3e Update docs for gm-first play pipeline and harness chance.
Sweep glossary, progressive design, worker-spec/refine prompts, and play-dm-auditor streaming notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 01:02:23 +08:00

23 lines
922 B
YAML
Raw 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: >
程序随机工具:掷骰、点数比拼、抽签/加权抽取。游玩期默认经主世界层 harness 批量调用
(play_slots.chance);也可由编排器 run_worker 显式调度本 ref。禁止模型编造随机。
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)。