Class StreamThreadCreation

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

public final class StreamThreadCreation extends StreamUpdate
Represents a stream update that indicating the creation of a new thread.
  • Constructor Details

    • StreamThreadCreation

      public StreamThreadCreation(AssistantThread thread, AssistantStreamEvent kind)
      Creates a new instance of StreamThreadCreation.
      Parameters:
      thread - The AssistantThread in the update sent by the service.
      kind - The stream event type associated with this update.
  • Method Details

    • getMessage

      public AssistantThread getMessage()
      Get the thread data sent in the update by the service.
      Returns:
      the thread data sent in the update by the service.