pub async fn run_workflow_with_contracts<E: NodeExecutor + ?Sized>(
workflow: &WorkflowDefinition,
execution: &ExecutionMetadata,
executor: &E,
contracts: &[NodeContract],
) -> Result<()>Expand description
Execute the workflow through one executor with output contract validation.
ยงErrors
Returns an error if the default run policy rejects the workflow shape, output contract setup fails, output validation fails, or node execution fails.