toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.agent.api.common.workflow.loop
/
RepeatUntil
Repeat
Until
data
class
RepeatUntil
(
val
maxIterations
:
Int
=
3
)
Primitive for building repeat until workflows.
Members
Constructors
Repeat
Until
Link copied to clipboard
constructor
(
maxIterations
:
Int
=
3
)
Properties
max
Iterations
Link copied to clipboard
val
maxIterations
:
Int
=
3
Functions
build
Link copied to clipboard
inline
fun
<
INPUT
,
RESULT
:
Any
>
build
(
noinline
task
:
(
RepeatUntilActionContext
<
INPUT
,
RESULT
>
)
->
RESULT
,
noinline
acceptanceCriteria
:
(
RepeatUntilActionContext
<
INPUT
,
RESULT
>
)
->
Boolean
,
inputClass
:
Class
<
INPUT
>
)
:
AgentScopeBuilder
<
RESULT
>
fun
<
INPUT
,
RESULT
:
Any
>
build
(
task
:
(
RepeatUntilActionContext
<
INPUT
,
RESULT
>
)
->
RESULT
,
accept
:
(
RepeatUntilActionContext
<
INPUT
,
RESULT
>
)
->
Boolean
,
resultClass
:
Class
<
RESULT
>
,
inputClass
:
Class
<
out
INPUT
>
)
:
AgentScopeBuilder
<
RESULT
>