Class RunStepDeltaCodeInterpreterLogOutput

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

public final class RunStepDeltaCodeInterpreterLogOutput extends RunStepDeltaCodeInterpreterOutput
Represents a log output as produced by the Code Interpreter tool and as represented in a streaming run step's delta tool calls collection.
  • Method Details

    • getType

      public String getType()
      Get the type property: The type of the streaming run step tool call's Code Interpreter output.
      Overrides:
      getType in class RunStepDeltaCodeInterpreterOutput
      Returns:
      the type value.
    • getLogs

      public String getLogs()
      Get the logs property: The text output from the Code Interpreter tool call.
      Returns:
      the logs value.
    • toJson

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

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