Termination Exception
Base class for termination exceptions.
Allows catching both agent and action termination in a single catch block:
try {
// ... tool or action code
} catch (e: TerminationException) {
logger.info("Terminated: ${e.reason}")
}Content copied to clipboard
Parameters
reason
Human-readable explanation for termination