Evaluator
inner class Evaluator(generator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT, evaluator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, FEEDBACK>) -> FEEDBACK) : WorkflowBuilder<RESULT>
Constructors
Link copied to clipboard
constructor(generator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, RESULT>) -> RESULT, evaluator: (TransformationActionContext<AttemptHistory<RESULT, FEEDBACK>, FEEDBACK>) -> FEEDBACK)
Functions
Link copied to clipboard
Convenience method to build an agent with a default name and description. This is typically used inside an @Action method.
Link copied to clipboard
Build an instance with default acceptance criteria, based on threshold score
Link copied to clipboard
Build an agent on this RepeatUntil workflow. Can be used to implement an @Bean method that returns an Agent, which will be automatically be registered on the current AgentPlatform.
Link copied to clipboard
fun withAcceptanceCriteria(accept: (f: FEEDBACK) -> Boolean): RepeatUntilAcceptableBuilder.Emitter<RESULT, FEEDBACK>
Define the acceptance criteria for the feedback. This will determine when the generated result is considered acceptable.