Class RunStepDeltaMessageCreation

java.lang.Object
com.azure.ai.openai.assistants.models.RunStepDeltaDetail
com.azure.ai.openai.assistants.models.RunStepDeltaMessageCreation
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunStepDeltaDetail>

public final class RunStepDeltaMessageCreation extends RunStepDeltaDetail
Represents a message creation within a streaming run step delta.
  • Method Details

    • getType

      public String getType()
      Get the type property: The object type for the run step detail object.
      Overrides:
      getType in class RunStepDeltaDetail
      Returns:
      the type value.
    • getMessageCreation

      public RunStepDeltaMessageCreationObject getMessageCreation()
      Get the messageCreation property: The message creation data.
      Returns:
      the messageCreation value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RunStepDeltaDetail>
      Overrides:
      toJson in class RunStepDeltaDetail
      Throws:
      IOException
    • fromJson

      public static RunStepDeltaMessageCreation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RunStepDeltaMessageCreation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RunStepDeltaMessageCreation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the RunStepDeltaMessageCreation.