Class AgenticSystemSuspendedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.agentic.scope.AgenticSystemSuspendedException
All Implemented Interfaces:
Serializable

public class AgenticSystemSuspendedException extends RuntimeException
Thrown when a persistent agentic system suspends because it contains unresolved SuspendedResponse entries (typically from a HumanInTheLoop agent). The system's state has been checkpointed and the calling thread is released.

To resume the agentic system:

  1. Provide the human response via AgenticScope.completePendingResponse(String, Object) or AgenticScope.writeState(String, Object)
  2. Re-invoke the agent method with the same memory ID
See Also:
  • Constructor Details

    • AgenticSystemSuspendedException

      public AgenticSystemSuspendedException(AgenticScope scope)
  • Method Details