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