Interface Delegation

All Superinterfaces:
AgentCapability

public interface Delegation extends AgentCapability
Declares that an agent can delegate subtasks to other agents. The delegating agent pauses while workers execute, then resumes with their results.

Created via to(java.lang.Class<? extends akka.javasdk.agent.AgentDelegationWorker>, java.lang.Class<? extends akka.javasdk.agent.AgentDelegationWorker>...), accepting both autonomous (AutonomousAgent) and request-based (Agent) agent targets.

  • Method Details

    • to

      @SafeVarargs static Delegation to(Class<? extends AgentDelegationWorker> first, Class<? extends AgentDelegationWorker>... rest)
      Create a delegation capability for the given agent targets. Accepts both autonomous agents and request-based agents.
    • maxParallelWorkers

      Delegation maxParallelWorkers(int max)
      Maximum number of worker agents that can execute delegated subtasks concurrently. Default is configured via akka.javasdk.agent.autonomous.delegation.max-parallel-workers in application.conf.