RepeatUntil

data class RepeatUntil(val maxIterations: Int = 3)

Primitive for building repeat until workflows.

Constructors

Link copied to clipboard
constructor(maxIterations: Int = 3)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <RESULT : Any> build(noinline task: (TransformationActionContext<ResultHistory<RESULT>, RESULT>) -> RESULT, noinline acceptanceCriteria: (InputActionContext<ResultHistory<RESULT>>) -> Boolean, inputClasses: List<Class<Any>> = emptyList()): AgentScopeBuilder<RESULT>
fun <RESULT : Any> build(task: (TransformationActionContext<ResultHistory<RESULT>, RESULT>) -> RESULT, accept: (InputActionContext<ResultHistory<RESULT>>) -> Boolean, resultClass: Class<RESULT>, inputClasses: List<Class<out Any>> = emptyList()): AgentScopeBuilder<RESULT>