toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.agent.api.common.workflow.loop
/
RepeatUntil
/
build
build
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
>