Class MessageDeltaTextFileCitationAnnotation
java.lang.Object
com.azure.ai.openai.assistants.models.MessageDeltaTextFileCitationAnnotation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaTextFileCitationAnnotation>
public final class MessageDeltaTextFileCitationAnnotation
extends Object
implements com.azure.json.JsonSerializable<MessageDeltaTextFileCitationAnnotation>
Represents the data of a streamed file citation as applied to a streaming text content part.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MessageDeltaTextFileCitationAnnotation from the JsonReader.Get the fileId property: The ID of the specific file the citation is from.getQuote()
Get the quote property: The specific quote in the cited file.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getFileId
Get the fileId property: The ID of the specific file the citation is from.- Returns:
- the fileId value.
-
getQuote
Get the quote property: The specific quote in the cited file.- Returns:
- the quote value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageDeltaTextFileCitationAnnotation>
- Throws:
IOException
-
fromJson
public static MessageDeltaTextFileCitationAnnotation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageDeltaTextFileCitationAnnotation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MessageDeltaTextFileCitationAnnotation 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 MessageDeltaTextFileCitationAnnotation.
-