Class WorkflowBuilder
-
- All Implemented Interfaces:
public abstract class WorkflowBuilder<RESULT extends Object>Common base class for building workflows, ensuring consistent agent construction
-
-
Constructor Summary
Constructors Constructor Description WorkflowBuilder(Class<RESULT> resultClass, Class<out Object> inputClass)
-
Method Summary
Modifier and Type Method Description abstract TypedAgentScopeBuilder<RESULT>build()final AgentbuildAgent(String name, String description)Build an agent on this RepeatUntil workflow. final RESULTasSubProcess(ActionContext context)Convenience method to build an agent with a default name and description. -
-
Method Detail
-
build
abstract TypedAgentScopeBuilder<RESULT> build()
-
buildAgent
final Agent buildAgent(String name, String description)
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.
-
asSubProcess
final RESULT asSubProcess(ActionContext context)
Convenience method to build an agent with a default name and description. This is typically used inside an @Action method.
-
-
-
-