quanttide_work/executor.rs
1//! 执行者:这一步谁做、这一条判据谁判。
2//!
3//! 三个取值由规范定死,不因平台而变。步骤上只能写 [`AGENT`] 或 [`HUMAN`];
4//! 判据上还能写 [`RULE`](机械核对,不用智能体)。
5//! 出处:`docs/specification/process/workflow.md`·语法(executor 取值)。
6
7/// 智能体。
8pub const AGENT: &str = "agent";
9
10/// 规则引擎:机械核对。
11pub const RULE: &str = "rule";
12
13/// 人:只在闸门拍板。
14pub const HUMAN: &str = "human";
15
16/// 步骤的执行者——能用 AI 都用 AI,人只在闸门。
17pub const EXECUTORS: [&str; 2] = [AGENT, HUMAN];
18
19/// 判据的执行者——规则引擎 / 智能体 / 人。
20pub const CRITERION_TYPES: [&str; 3] = [RULE, AGENT, HUMAN];