Class SubmitToolOutputsAction

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

public final class SubmitToolOutputsAction extends RequiredAction
The details for required tool calls that must be submitted for an assistant thread run to continue.
  • Method Details

    • getSubmitToolOutputs

      public SubmitToolOutputsDetails getSubmitToolOutputs()
      Get the submitToolOutputs property: The details describing tools that should be called to submit tool outputs.
      Returns:
      the submitToolOutputs value.
    • toJson

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

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

      public String getType()
      Get the type property: The object type.
      Overrides:
      getType in class RequiredAction
      Returns:
      the type value.