terminateAction

abstract fun terminateAction(reason: String)

Request graceful termination of the current action only. The action will terminate at the next natural checkpoint (between tool calls), and the agent will continue with the next planned action.

Parameters

reason

Human-readable explanation for termination

See also

for immediate termination