Class MessageDeltaTextFileCitationAnnotationObject

java.lang.Object
com.azure.ai.agents.persistent.models.MessageDeltaTextFileCitationAnnotationObject
All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaTextFileCitationAnnotationObject>

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

    • getFileId

      public String getFileId()
      Get the fileId property: The ID of the specific file the citation is from.
      Returns:
      the fileId value.
    • getQuote

      public String getQuote()
      Get the quote property: The specific quote in the cited file.
      Returns:
      the quote value.
    • toJson

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

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