Interface MessageStopEvent.Builder

  • Method Details

    • 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

      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:
    • 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.