Class RepeatUntilBuilder
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.workflow.WorkflowBuilderConsuming
public final class RepeatUntilBuilder<INPUT extends Object, RESULT extends Object> implements WorkflowBuilderConsuming
Java friendly builder for RepeatUntil workflow.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRepeatUntilBuilder.Looperpublic final classRepeatUntilBuilder.Emitterpublic classRepeatUntilBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_MAX_ITERATIONSpublic final static RepeatUntilBuilder.CompanionCompanion
-
Method Summary
Modifier and Type Method Description <INPUT extends Any> RepeatUntilBuilder<INPUT, RESULT>consuming(Class<INPUT> inputClass)Specify the input type for this workflow. final RepeatUntilBuilder<INPUT, RESULT>withMaxIterations(Integer maxIterations)final RepeatUntilBuilder.Looper<INPUT, RESULT>repeating(Function1<RepeatUntilActionContext<INPUT, RESULT>, RESULT> what)Define the task to be repeated until an acceptable result is achieved. static <RESULT extends Any> RepeatUntilBuilder<Object, RESULT>returning(Class<RESULT> resultClass)Create a RepeatUntilBuilder for a specific result type and default TextFeedback. -
-
Method Detail
-
consuming
<INPUT extends Any> RepeatUntilBuilder<INPUT, RESULT> consuming(Class<INPUT> inputClass)
Specify the input type for this workflow. Return a builder
-
withMaxIterations
final RepeatUntilBuilder<INPUT, RESULT> withMaxIterations(Integer maxIterations)
-
repeating
final RepeatUntilBuilder.Looper<INPUT, RESULT> repeating(Function1<RepeatUntilActionContext<INPUT, RESULT>, RESULT> what)
Define the task to be repeated until an acceptable result is achieved.
-
-
-
-