WorkflowBuilder

abstract class WorkflowBuilder<RESULT : Any>(resultClass: Class<RESULT>, inputClasses: List<Class<out Any>>)

Common base class for building workflows, ensuring consistent agent construction

Inheritors

Constructors

Link copied to clipboard
constructor(resultClass: Class<RESULT>, inputClasses: List<Class<out Any>>)

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
abstract 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.