pub struct NodeSpec {
pub id: String,
pub role: Role,
pub instruction: String,
pub depends_on: Vec<String>,
pub goals: Vec<String>,
pub tier: Tier,
pub provider: Option<String>,
pub skills: Vec<String>,
pub stage: Option<String>,
pub weight: f64,
pub isolation: Isolation,
}Fields§
§id: String§role: Role§instruction: StringWhat this node is for, in natural language. Tight descriptions produce tight output; vague ones produce whatever the model felt like.
depends_on: Vec<String>Node ids this node genuinely reads the output of. Only list an edge if the answer to “does this step read that step’s output?” is yes.
goals: Vec<String>Goals this node advances.
tier: Tier§provider: Option<String>Pin a provider; otherwise routing picks by tier.
skills: Vec<String>Skills this node needs. Acquired per the skill policy.
stage: Option<String>Execution phase (execution.phases) this node belongs to. A node with a
stage is not dispatched until that phase is active. A node without one
is always eligible — unstaged work is not gated by a phase it never
joined.
weight: f64Relative cost weight used for critical-path calculation.
isolation: IsolationHow far this node is kept from the rest of the machine.
The 0.3 spelling was isolated: true, meaning a worktree. That spelling
still parses and still means Isolation::Worktree; the migration
rewrites it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeSpec
impl<'de> Deserialize<'de> for NodeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for NodeSpec
impl JsonSchema for NodeSpec
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more