Class RunStepDeltaToolCallObject

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

public final class RunStepDeltaToolCallObject extends RunStepDeltaDetail
Represents an invocation of tool calls as part of a streaming run step.
  • Method Details

    • getType

      public String getType()
      Get the type property: The object type for the run step detail object.
      Overrides:
      getType in class RunStepDeltaDetail
      Returns:
      the type value.
    • getToolCalls

      public List<RunStepDeltaToolCall> getToolCalls()
      Get the toolCalls property: The collection of tool calls for the tool call detail item.
      Returns:
      the toolCalls value.
    • toJson

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

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