Class RunStepCodeInterpreterToolCallOutput

java.lang.Object
com.azure.ai.openai.assistants.models.RunStepCodeInterpreterToolCallOutput
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunStepCodeInterpreterToolCallOutput>
Direct Known Subclasses:
RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterLogOutput

public class RunStepCodeInterpreterToolCallOutput extends Object implements com.azure.json.JsonSerializable<RunStepCodeInterpreterToolCallOutput>
An abstract representation of an emitted output from a code interpreter tool.
  • Constructor Details

    • RunStepCodeInterpreterToolCallOutput

      protected RunStepCodeInterpreterToolCallOutput()
      Creates an instance of RunStepCodeInterpreterToolCallOutput class.
  • Method Details

    • toJson

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

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

      public String getType()
      Get the type property: The object type.
      Returns:
      the type value.