Interface StreamingHandle


@Experimental public interface StreamingHandle
Handle that can be used to cancel the streaming done via StreamingChatResponseHandler.
Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the streaming.
    boolean
    Returns true if streaming was cancelled by calling cancel().
  • Method Details

    • cancel

      void cancel()
      Cancels the streaming.
    • isCancelled

      boolean isCancelled()
      Returns true if streaming was cancelled by calling cancel().