Repeat Until Acceptable Builder
data class RepeatUntilAcceptableBuilder<RESULT : Any, FEEDBACK : Feedback>(resultClass: Class<RESULT>, feedbackClass: Class<FEEDBACK> = Feedback::class.java as Class<FEEDBACK>, maxIterations: Int = DEFAULT_MAX_ITERATIONS, scoreThreshold: Double = DEFAULT_SCORE_THRESHOLD)
Java friendly builder for RepeatUntil workflow.
Constructors
Types
Link copied to clipboard
Link copied to clipboard
inner class Critiquer(generator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT)
Link copied to clipboard
inner class Emitter(generator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT, evaluator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, FEEDBACK>) -> FEEDBACK, accept: (f: FEEDBACK) -> Boolean) : WorkflowBuilder<RESULT>
Link copied to clipboard
inner class Evaluator(generator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT, evaluator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, FEEDBACK>) -> FEEDBACK) : WorkflowBuilder<RESULT>
Functions
Link copied to clipboard
fun repeating(what: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT): RepeatUntilAcceptableBuilder.Critiquer<RESULT, FEEDBACK>
Define the task to be repeated until an acceptable result is achieved.
Link copied to clipboard
fun <F : Feedback> withFeedbackClass(feedbackClass: Class<F>): RepeatUntilAcceptableBuilder<RESULT, F>
Customize the feedback class for this RepeatUntil workflow.
Link copied to clipboard
Link copied to clipboard