Class RunStepDeltaFileSearchToolCall

java.lang.Object
com.azure.ai.openai.assistants.models.RunStepDeltaToolCall
com.azure.ai.openai.assistants.models.RunStepDeltaFileSearchToolCall
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunStepDeltaToolCall>

public final class RunStepDeltaFileSearchToolCall extends RunStepDeltaToolCall
Represents a file search tool call within a streaming run step's tool call details.
  • Method Details

    • getType

      public String getType()
      Get the type property: The type of the tool call detail item in a streaming run step's details.
      Overrides:
      getType in class RunStepDeltaToolCall
      Returns:
      the type value.
    • getFileSearch

      public Map<String,String> getFileSearch()
      Get the fileSearch property: Reserved for future use.
      Returns:
      the fileSearch value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RunStepDeltaToolCall>
      Overrides:
      toJson in class RunStepDeltaToolCall
      Throws:
      IOException
    • fromJson

      public static RunStepDeltaFileSearchToolCall fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RunStepDeltaFileSearchToolCall from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RunStepDeltaFileSearchToolCall 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 RunStepDeltaFileSearchToolCall.