Class FileSearchToolCallResult
java.lang.Object
com.azure.ai.openai.assistants.models.FileSearchToolCallResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileSearchToolCallResult>
public final class FileSearchToolCallResult
extends Object
implements com.azure.json.JsonSerializable<FileSearchToolCallResult>
File search tool call result.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSearchToolCallResult
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FileSearchToolCallResult from the JsonReader.Get the content property: The content of the result that was found.Get the fileId property: The ID of the file that result was found in.Get the fileName property: The name of the file that result was found in.double
getScore()
Get the score property: The score of the result.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 file that result was found in.- Returns:
- the fileId value.
-
getFileName
Get the fileName property: The name of the file that result was found in.- Returns:
- the fileName value.
-
getScore
public double getScore()Get the score property: The score of the result. All values must be a floating point number between 0 and 1.- Returns:
- the score value.
-
getContent
Get the content property: The content of the result that was found. The content is only included if requested via the include query parameter.- Returns:
- the content value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FileSearchToolCallResult>
- Throws:
IOException
-
fromJson
public static FileSearchToolCallResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FileSearchToolCallResult from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FileSearchToolCallResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the FileSearchToolCallResult.
-