Class KnowledgeAgentSemanticRankerActivityRecord
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
com.azure.search.documents.agents.models.KnowledgeAgentSemanticRankerActivityRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>
Represents a semantic ranker activity record.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentSemanticRankerActivityRecord class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentSemanticRankerActivityRecord from the JsonReader.Get the elapsedMs property: The elapsed time in milliseconds for the model activity.Get the inputTokens property: The number of input tokens for the semantic ranker activity.getType()Get the type property: The type of the activity record.setElapsedMs(Integer elapsedMs) Set the elapsedMs property: The elapsed time in milliseconds for the model activity.setInputTokens(Integer inputTokens) Set the inputTokens property: The number of input tokens for the semantic ranker activity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeAgentSemanticRankerActivityRecord
public KnowledgeAgentSemanticRankerActivityRecord(int id) Creates an instance of KnowledgeAgentSemanticRankerActivityRecord class.- Parameters:
id- the id value to set.
-
-
Method Details
-
getType
Get the type property: The type of the activity record.- Overrides:
getTypein classKnowledgeAgentActivityRecord- Returns:
- the type value.
-
getInputTokens
Get the inputTokens property: The number of input tokens for the semantic ranker activity.- Returns:
- the inputTokens value.
-
setInputTokens
Set the inputTokens property: The number of input tokens for the semantic ranker activity.- Parameters:
inputTokens- the inputTokens value to set.- Returns:
- the KnowledgeAgentSemanticRankerActivityRecord object itself.
-
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 KnowledgeAgentSemanticRankerActivityRecord object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>- Overrides:
toJsonin classKnowledgeAgentActivityRecord- Throws:
IOException
-
fromJson
public static KnowledgeAgentSemanticRankerActivityRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentSemanticRankerActivityRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentSemanticRankerActivityRecord 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 KnowledgeAgentSemanticRankerActivityRecord.
-