terminate Action
Request graceful termination of the current action only. Convenience extension that delegates to AgentProcess.terminateAction.
Kotlin usage:
processContext.terminateAction("reason")Content copied to clipboard
Java usage:
import static com.embabel.agent.api.termination.Termination.terminateAction;
terminateAction(processContext, "reason");Content copied to clipboard
Parameters
reason
Human-readable explanation for termination