Skip to main content

run_behavior

Function run_behavior 

Source
pub fn run_behavior(
    ir: &Value,
    handlers: &mut dyn ComponentExec,
    input: &[(String, Value)],
    entry: Option<&str>,
) -> Result<Value, BehaviorError>
Expand description

Run a component-graph IR (scp-ir-architecture.md §7).

  • ir — the portable component-graph IR ({components:[...]}).
  • handlers— the boundary-injected ComponentExec seam (catalog name → leaf impl).
  • input — the entry component’s inputPorts bindings (param values).
  • entry — the component name to run (None = first component).

Returns the evaluated output (Φ merge) or a coded BehaviorError.