Class RunStepFileSearchToolCallResult
java.lang.Object
com.azure.ai.agents.persistent.models.RunStepFileSearchToolCallResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunStepFileSearchToolCallResult>
public final class RunStepFileSearchToolCallResult
extends Object
implements com.azure.json.JsonSerializable<RunStepFileSearchToolCallResult>
File search tool call result.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RunStepFileSearchToolCallResult 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.doublegetScore()Get the score property: The score of the result.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
toJsonin interfacecom.azure.json.JsonSerializable<RunStepFileSearchToolCallResult>- Throws:
IOException
-
fromJson
public static RunStepFileSearchToolCallResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RunStepFileSearchToolCallResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RunStepFileSearchToolCallResult 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 RunStepFileSearchToolCallResult.
-