Class WorkflowBuilder

  • All Implemented Interfaces:

    
    public abstract class WorkflowBuilder<RESULT extends Object>
    
                        

    Common base class for building workflows, ensuring consistent agent construction

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract AgentScopeBuilder<RESULT> build()
      final Agent buildAgent(String name, String description) Build an agent on this RepeatUntil workflow.
      final RESULT asSubProcess(ActionContext context) Convenience method to build an agent with a default name and description.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

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