import type { ContextPath, DagPlan, IActivationStrategy, IErrorStrategy, IFinalizer, IInterpreter, InterpretResult, IPlanner, IReviewStrategy, IStateOracle, ISubAgent } from '@mcp-abap-adt/llm-agent'; import type { ISpan } from '../../tracer/types.js'; import type { PipelineContext } from '../context.js'; import type { IStageHandler } from '../stage-handler.js'; /** * Marker prefixed onto a coordinator-emitted clarification question. `Message` * has no metadata field, so the marker lives in the assistant content — but it is * zero-width (invisible): the user/API sees only the question. On the next turn * `buildAncestorContext` reconstructs the clarification Q/A ONLY from the marked * tail turn. This is a coordinator-internal protocol detail (emit + reconstruct * are both here), NOT a public contract — hence it lives in llm-agent-libs, not in * the contracts package. Zero-width: U+2063 INVISIBLE SEPARATOR x3. */ export declare const CLARIFY_MARKER = "\u2063\u2063\u2063"; export interface DagCoordinatorHandlerDeps { planner: IPlanner; interpreter: IInterpreter; workers: ReadonlyMap; /** Activation strategy (shared concept with the linear coordinator). When * omitted, the pipeline defaults to ExplicitActivation. The handler itself * does not read this; the pipeline uses it to wire `coordinator-activate`. */ activation?: IActivationStrategy; /** Optional plan reviewer. When present, the coordinator runs it as a gate * between planning and execution; a non-pass verdict triggers a replan loop. * Absent → no gate. */ reviewer?: IReviewStrategy; /** Error strategy for DAG node failures. Defaults to AbortErrorStrategy. */ errorStrategy?: IErrorStrategy; /** Optional inspection-only state oracle answering "real state" queries * (git / FS / ABAP) via NeedInfoSignal round-trips. Wrapped by the * server from a raw ISubAgent automatically; never a DAG worker. */ stateOracle?: IStateOracle; /** Optional response synthesizer. Defaults to PassthroughFinalizer * (which returns interpreter.output verbatim), so omitting it * preserves the legacy DAG coordinator behaviour. */ finalizer?: IFinalizer; /** Bounds planner/reviewer/oracle round-trips + re-interprets per turn. Default 6. */ maxRoundTrips?: number; } export declare class DagCoordinatorHandler implements IStageHandler { private readonly deps; private readonly finalizer; constructor(deps: DagCoordinatorHandlerDeps); execute(ctx: PipelineContext, _rawConfig: Record, _span: ISpan): Promise; } export declare function buildAncestorContext(ctx: PipelineContext): ContextPath; //# sourceMappingURL=dag-coordinator.d.ts.map