@ai2070/l0
Version:
L0: The Missing Reliability Substrate for AI
14 lines • 699 B
TypeScript
import type { L0Event, L0State } from "../types/l0";
import type { StateMachine } from "./state-machine";
import type { L0Monitor } from "./monitoring";
export interface PipelineContext {
state: L0State;
stateMachine: StateMachine;
monitor: L0Monitor;
signal?: AbortSignal;
scratch: Map<string, unknown>;
}
export type Stage = (event: L0Event, ctx: PipelineContext) => L0Event | null;
export declare function runStages(stages: Stage[], event: L0Event, ctx: PipelineContext): L0Event | null;
export declare function createPipelineContext(state: L0State, stateMachine: StateMachine, monitor: L0Monitor, signal?: AbortSignal): PipelineContext;
//# sourceMappingURL=pipeline.d.ts.map