ExitOnEmptyPolicy

Preserve the current behaviour: exit the loop with empty content and let the rendering layer surface the typed EmptyLlmResponseException. This is the default to keep the upgrade backwards-compatible.

Functions

Link copied to clipboard
open override fun handle(): EmptyResponseAction

Handle a blank-text-no-tool-calls response from the LLM.

Link copied to clipboard
open fun onNonEmpty()

Called whenever the LLM returns a non-blank response, allowing stateful policies to reset internal counters.