Class Action.AgentCallAction

java.lang.Object
dev.langchain4j.agentic.planner.Action.AgentCallAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
Action.NoOpAction
Enclosing interface:
Action

public static class Action.AgentCallAction extends Object implements Action
Requests that the execution loop invoke one or more agents. When multiple agents are listed they are dispatched in parallel.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isDone

      public boolean isDone()
      Description copied from interface: Action
      Returns true if this action signals that the planner has finished (either completed or suspended) and the execution loop should exit.
      Specified by:
      isDone in interface Action
      Returns:
      true if the planner is done or suspended
    • agentsToCall

      public List<AgentExecutor> agentsToCall()