Skip to content

Interface: LoopEvaluateStepConfig<TIn, TOut, THandle, TReceipt, TEvalOut> ​

Defined in: ast/loop-node.ts:41

Evaluation step descriptor (evaluateStep) inside a LoopNode.

Runs the read-only evaluator agent over mapInput(loopInput, actOutput, scopeReceipt) and either accepts the iteration via acceptWhen or formats rejection feedback via feedbackMapper.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownLoop input payload type.
TOutunknownAction step output payload type.
THandleunknownRuntime handle type of the active isolation scope.
TReceiptunknownInspected scope receipt type.
TEvalOutunknownEvaluator output payload type.

Properties ​

PropertyModifierTypeDescriptionDefined in
acceptWhenreadonlyBivariantCallback<[evalOut: TEvalOut], boolean>Predicate returning true when the evaluator accepts the action step's output.ast/loop-node.ts:58
evaluatorreadonlyAgentNode<unknown, TEvalOut, THandle>Adversarial or read-only evaluator agent invoked after .act() passes beforeStop.ast/loop-node.ts:51
feedbackMapperreadonlyBivariantCallback<[evalOut: TEvalOut], string>Synchronous formatter producing the rejection feedback string injected into the next .act() iteration.ast/loop-node.ts:60
mapInputreadonlyBivariantCallback<[loopInput: TIn, actOutput: TOut, scopeReceipt: TReceipt], unknown>Synchronous mapper constructing the evaluator's input from (loopInput, actOutput, scopeReceipt).ast/loop-node.ts:53
stepIdreadonlystringStep identifier registered via .evaluate(stepId, evaluator, ...).ast/loop-node.ts:49

Released under the MIT License.