Class SupervisorInvocation

  • All Implemented Interfaces:
    com.embabel.agent.api.invocation.BaseInvocation , com.embabel.agent.api.invocation.ScopedInvocation , com.embabel.agent.api.invocation.TypedInvocation

    
    public final class SupervisorInvocation<T extends Object>
     implements TypedInvocation<T, SupervisorInvocation<T>>, ScopedInvocation<SupervisorInvocation<T>>
                        

    Invoker for supervisor-orchestrated agents.

    Uses an LLM to orchestrate actions from @EmbabelComponent and @Agent annotated classes to achieve a specified goal type. The supervisor sees type schemas and decides which actions to call based on available artifacts on the blackboard.

    Unlike UtilityInvocation, this requires a goal type to work toward.

    • Constructor Detail

      • SupervisorInvocation

        SupervisorInvocation(AgentPlatform agentPlatform, Class<T> goalType, String goalDescription, ProcessOptions processOptions, AgentScopeBuilder agentScopeBuilder)
        Parameters:
        agentPlatform - the agent platform to create and manage agent processes
        goalType - the type of object to produce as the goal
        goalDescription - description of the goal for the supervisor LLM
        processOptions - options to configure the agent process
        agentScopeBuilder - emits the scope to create the supervisor agent in
      • SupervisorInvocation

        SupervisorInvocation(AgentPlatform agentPlatform, Class<T> goalType, String goalDescription, ProcessOptions processOptions)
        Parameters:
        agentPlatform - the agent platform to create and manage agent processes
        goalType - the type of object to produce as the goal
        goalDescription - description of the goal for the supervisor LLM
        processOptions - options to configure the agent process
      • SupervisorInvocation

        SupervisorInvocation(AgentPlatform agentPlatform, Class<T> goalType, String goalDescription)
        Parameters:
        agentPlatform - the agent platform to create and manage agent processes
        goalType - the type of object to produce as the goal
        goalDescription - description of the goal for the supervisor LLM
      • SupervisorInvocation

        SupervisorInvocation(AgentPlatform agentPlatform, Class<T> goalType)
        Parameters:
        agentPlatform - the agent platform to create and manage agent processes
        goalType - the type of object to produce as the goal