Interface Action

All Known Implementing Classes:
Action.AgentCallAction, Action.DoneAction, Action.DoneWithResultAction, Action.NoOpAction, Action.SuspendAction

public interface Action
Represents the outcome of a Planner decision. Each action tells the execution loop what to do next: invoke one or more agents, signal completion, or suspend the agentic system.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Requests that the execution loop invoke one or more agents.
    static class 
    Signals that the planner has completed successfully with no explicit result.
    static class 
    Signals that the planner has completed successfully with an explicit result value.
    static class 
    A no-op action that yields control back to the execution loop without invoking any agent.
    static class 
    Signals that the agentic system should suspend.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this action signals that the planner has finished (either completed or suspended) and the execution loop should exit.
    default boolean
    Returns true if this action represents a suspension of the agentic system.
    default Object
    Returns the result produced by the planner, if any.
  • Method Details

    • isDone

      boolean isDone()
      Returns true if this action signals that the planner has finished (either completed or suspended) and the execution loop should exit.
      Returns:
      true if the planner is done or suspended
    • isSuspended

      default boolean isSuspended()
      Returns true if this action represents a suspension of the agentic system. A suspended action is also done (isDone() returns true).
      Returns:
      true if the agentic system should suspend
    • result

      default Object result()
      Returns the result produced by the planner, if any.
      Returns:
      the result, or null if no result is available