Class StreamThreadRunCreation

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

public final class StreamThreadRunCreation extends StreamUpdate
Represents a stream update indicating a change of state in a thread run, e.g. creation, completion, etc.
  • Constructor Details

    • StreamThreadRunCreation

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

    • getMessage

      public ThreadRun getMessage()
      Get the thread run with the update sent by the service.
      Returns:
      the thread run with the update sent by the service.