Interface MessageStopEvent.Builder

    • Method Detail

      • stopReason

        MessageStopEvent.Builder stopReason​(String stopReason)

        The reason why the model stopped generating output.

        Parameters:
        stopReason - The reason why the model stopped generating output.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StopReason, StopReason
      • stopReason

        MessageStopEvent.Builder stopReason​(StopReason stopReason)

        The reason why the model stopped generating output.

        Parameters:
        stopReason - The reason why the model stopped generating output.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StopReason, StopReason
      • additionalModelResponseFields

        MessageStopEvent.Builder additionalModelResponseFields​(Document additionalModelResponseFields)

        The additional model response fields.

        Parameters:
        additionalModelResponseFields - The additional model response fields.
        Returns:
        Returns a reference to this object so that method calls can be chained together.