Class StreamMessageCreation

java.lang.Object
com.azure.ai.openai.assistants.models.StreamUpdate
com.azure.ai.openai.assistants.models.StreamMessageCreation

public final class StreamMessageCreation extends StreamUpdate
Represents a stream update indicating a message state change, e.g. creation, completion, etc.
  • Constructor Details

    • StreamMessageCreation

      public StreamMessageCreation(ThreadMessage threadMessage, AssistantStreamEvent kind)
      Creates a new instance of StreamMessageCreation.
      Parameters:
      threadMessage - The ThreadMessage with the data about this message sent by the service.
      kind - The stream event type associated with this update.
  • Method Details

    • getMessage

      public ThreadMessage getMessage()
      Get the data of this message sent by the service.
      Returns:
      the update with the data about this message sent by the service.