Class Action.DoneWithResultAction

java.lang.Object
dev.langchain4j.agentic.planner.Action.DoneWithResultAction
All Implemented Interfaces:
Action
Enclosing interface:
Action

public static class Action.DoneWithResultAction extends Object implements Action
Signals that the planner has completed successfully with an explicit result value.
  • Constructor Details

    • DoneWithResultAction

      public DoneWithResultAction(Object result)
  • 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
    • result

      public Object result()
      Description copied from interface: Action
      Returns the result produced by the planner, if any.
      Specified by:
      result in interface Action
      Returns:
      the result, or null if no result is available