Class RunStepDeltaCodeInterpreterToolCall

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

public final class RunStepDeltaCodeInterpreterToolCall extends RunStepDeltaToolCall
Represents a Code Interpreter 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.
    • getCodeInterpreter

      public RunStepDeltaCodeInterpreterDetailItemObject getCodeInterpreter()
      Get the codeInterpreter property: The Code Interpreter data for the tool call.
      Returns:
      the codeInterpreter 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 RunStepDeltaCodeInterpreterToolCall fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RunStepDeltaCodeInterpreterToolCall from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RunStepDeltaCodeInterpreterToolCall 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 RunStepDeltaCodeInterpreterToolCall.