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 Details

    • getType

      Get the type property: The type of the content.
      Returns:
      the type value.
    • getText

      public String getText()
      Get the text property: The text content of the file.
      Returns:
      the text value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.