ConsensusSpec

Constructors

Link copied to clipboard
constructor(generators: List<Function<out SupplierActionContext<RESULT>, RESULT>>, consensusFunction: (TransformationActionContext<ResultList<RESULT>, RESULT>) -> RESULT)

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
open override fun build(): AgentScopeBuilder<RESULT>
Link copied to clipboard
fun buildAgent(name: String, description: String): Agent

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.