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