Empty Response Action
Action returned by EmptyResponsePolicy.handle.
Inheritors
Types
Link copied to clipboard
Exit the loop with the empty response (current behaviour). The caller — typically the rendering layer — will throw EmptyLlmResponseException when it tries to wrap blank text in an com.embabel.chat.AssistantMessage.
Link copied to clipboard
Append message to the conversation as a com.embabel.chat.UserMessage and re-prompt the LLM in the same loop. Lets weak models get one more chance to produce an answer, bounded by the policy's own retry counter.
Link copied to clipboard
Throw EmptyLlmResponseException immediately from inside the loop. Use when retry is not desired and a typed exception is preferred over the silent-exit default.