Class KnowledgeAgentModelQueryPlanningActivityRecord

java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
com.azure.search.documents.agents.models.KnowledgeAgentModelQueryPlanningActivityRecord
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>

public final class KnowledgeAgentModelQueryPlanningActivityRecord extends KnowledgeAgentActivityRecord
Represents an LLM query planning activity record.
  • Constructor Details

    • KnowledgeAgentModelQueryPlanningActivityRecord

      public KnowledgeAgentModelQueryPlanningActivityRecord(int id)
      Creates an instance of KnowledgeAgentModelQueryPlanningActivityRecord class.
      Parameters:
      id - the id value to set.
  • Method Details

    • getType

      public String getType()
      Get the type property: The type of the activity record.
      Overrides:
      getType in class KnowledgeAgentActivityRecord
      Returns:
      the type value.
    • getInputTokens

      public Integer getInputTokens()
      Get the inputTokens property: The number of input tokens for the LLM query planning activity.
      Returns:
      the inputTokens value.
    • setInputTokens

      public KnowledgeAgentModelQueryPlanningActivityRecord setInputTokens(Integer inputTokens)
      Set the inputTokens property: The number of input tokens for the LLM query planning activity.
      Parameters:
      inputTokens - the inputTokens value to set.
      Returns:
      the KnowledgeAgentModelQueryPlanningActivityRecord object itself.
    • getOutputTokens

      public Integer getOutputTokens()
      Get the outputTokens property: The number of output tokens for the LLM query planning activity.
      Returns:
      the outputTokens value.
    • setOutputTokens

      public KnowledgeAgentModelQueryPlanningActivityRecord setOutputTokens(Integer outputTokens)
      Set the outputTokens property: The number of output tokens for the LLM query planning activity.
      Parameters:
      outputTokens - the outputTokens value to set.
      Returns:
      the KnowledgeAgentModelQueryPlanningActivityRecord object itself.
    • getElapsedMs

      public Integer getElapsedMs()
      Get the elapsedMs property: The elapsed time in milliseconds for the model activity.
      Returns:
      the elapsedMs value.
    • setElapsedMs

      Set the elapsedMs property: The elapsed time in milliseconds for the model activity.
      Parameters:
      elapsedMs - the elapsedMs value to set.
      Returns:
      the KnowledgeAgentModelQueryPlanningActivityRecord object itself.
    • toJson

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

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