pub(crate) fn check_response_complete(
output: &ResponseOutput,
incomplete_without_reason: bool,
) -> ChatbotResult<()>Expand description
Errors once a response has finished streaming if it stopped short of a complete one, whether
output names the reason or the caller only knows a response.incomplete event fired with none.