Interface MessageStopEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>, SdkBuilder<MessageStopEvent.Builder,MessageStopEvent>, SdkPojo
All Known Subinterfaces:
DefaultMessageStop.Builder
Enclosing class:
MessageStopEvent

public static interface MessageStopEvent.Builder extends SdkPojo, CopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>
  • 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.