Class Action.SuspendAction
java.lang.Object
dev.langchain4j.agentic.planner.Action.SuspendAction
- All Implemented Interfaces:
Action
- Enclosing interface:
Action
Signals that the agentic system should suspend. The execution loop checkpoints the
scope state and throws
AgenticSystemSuspendedException
(or returns a suspended ResultWithAgenticScope)
to release the calling thread.-
Nested Class Summary
Nested classes/interfaces inherited from interface Action
Action.AgentCallAction, Action.DoneAction, Action.DoneWithResultAction, Action.NoOpAction, Action.SuspendAction -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SuspendAction
public SuspendAction()
-
-
Method Details
-
toString
-
isDone
-
isSuspended
public boolean isSuspended()Description copied from interface:ActionReturnstrueif this action represents a suspension of the agentic system. A suspended action is also done (Action.isDone()returnstrue).- Specified by:
isSuspendedin interfaceAction- Returns:
trueif the agentic system should suspend
-