@ai2070/l0
Version:
L0: The Missing Reliability Substrate for AI
23 lines (22 loc) • 456 B
JavaScript
function runStages(stages, event, ctx) {
let current = event;
for (const stage of stages) {
if (current === null) break;
current = stage(current, ctx);
}
return current;
}
function createPipelineContext(state, stateMachine, monitor, signal) {
return {
state,
stateMachine,
monitor,
signal,
scratch: /* @__PURE__ */ new Map()
};
}
export {
createPipelineContext,
runStages
};
//# sourceMappingURL=pipeline.js.map