Class MessageDeltaTextFilePathAnnotation

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

public final class MessageDeltaTextFilePathAnnotation extends Object implements com.azure.json.JsonSerializable<MessageDeltaTextFilePathAnnotation>
Represents the data of a streamed file path annotation as applied to a streaming text content part.
  • Method Details

    • getFileId

      public String getFileId()
      Get the fileId property: The file ID for the annotation.
      Returns:
      the fileId value.
    • toJson

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

      public static MessageDeltaTextFilePathAnnotation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MessageDeltaTextFilePathAnnotation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MessageDeltaTextFilePathAnnotation 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 MessageDeltaTextFilePathAnnotation.