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 ClassesModifier and TypeInterfaceDescriptionstatic classRequests that the execution loop invoke one or more agents.static classSignals that the planner has completed successfully with no explicit result.static classSignals that the planner has completed successfully with an explicit result value.static classA no-op action that yields control back to the execution loop without invoking any agent.static classSignals that the agentic system should suspend. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDone()Returnstrueif this action signals that the planner has finished (either completed or suspended) and the execution loop should exit.default booleanReturnstrueif this action represents a suspension of the agentic system.default Objectresult()Returns the result produced by the planner, if any.
-
Method Details
-
isDone
boolean isDone()Returnstrueif this action signals that the planner has finished (either completed or suspended) and the execution loop should exit.- Returns:
trueif the planner is done or suspended
-
isSuspended
default boolean isSuspended()Returnstrueif this action represents a suspension of the agentic system. A suspended action is also done (isDone()returnstrue).- Returns:
trueif the agentic system should suspend
-
result
Returns the result produced by the planner, if any.- Returns:
- the result, or
nullif no result is available
-