Interface: LoopEvaluateOptions<TIn, TOut, TEvalIn, TEvalOut, TReceipt>
Defined in: builders/loop-evaluate-options.ts:15
Configuration options passed to LoopBuilder.evaluate(stepId, evaluator, options).
Defines the synchronous evaluator input mapper, acceptance predicate, and rejection feedback formatter for an P.loop(id) refinement cycle.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Loop input payload type. |
TOut | unknown | Action step output payload type. |
TEvalIn | unknown | Evaluator agent input payload type. |
TEvalOut | unknown | Evaluator agent output payload type. |
TReceipt | ExtractEvalScopeReceipt<TEvalIn> | Inspected scope receipt type. |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
acceptWhen | readonly | (evalOut) => boolean | Predicate returning true when the evaluator accepts the action step's output. | builders/loop-evaluate-options.ts:25 |
feedbackMapper | readonly | (evalOut) => string | Synchronous formatter producing the rejection feedback string injected into the next .act() iteration. | builders/loop-evaluate-options.ts:27 |
mapInput | readonly | (loopInput, actOutput, scopeReceipt) => TEvalIn | Synchronous mapper constructing the evaluator's input from (loopInput, actOutput, scopeReceipt). | builders/loop-evaluate-options.ts:23 |