Class FileSearchToolCallResultContentItem
java.lang.Object
com.azure.ai.openai.assistants.models.FileSearchToolCallResultContentItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileSearchToolCallResultContentItem>
public final class FileSearchToolCallResultContentItem
extends Object
implements com.azure.json.JsonSerializable<FileSearchToolCallResultContentItem>
Content item in a file search result.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FileSearchToolCallResultContentItem from the JsonReader.getText()
Get the text property: The text content of the file.getType()
Get the type property: The type of the content.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
-
getType
Get the type property: The type of the content.- Returns:
- the type value.
-
getText
Get the text property: The text content of the file.- Returns:
- the text value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FileSearchToolCallResultContentItem>
- Throws:
IOException
-
fromJson
public static FileSearchToolCallResultContentItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FileSearchToolCallResultContentItem from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FileSearchToolCallResultContentItem 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 FileSearchToolCallResultContentItem.
-