Interface Delegation
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionmaxParallelWorkers(int max) Maximum number of worker agents that can execute delegated subtasks concurrently.static Delegationto(Class<? extends AgentDelegationWorker> first, Class<? extends AgentDelegationWorker>... rest) Create a delegation capability for the given 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
Maximum number of worker agents that can execute delegated subtasks concurrently. Default is configured viaakka.javasdk.agent.autonomous.delegation.max-parallel-workersin application.conf.
-