cancelProcess

open fun cancelProcess()

Stops generation started by sendMessageAsync, so that closing does not block until it finishes. The conversation cannot be reused afterwards and must be closed.