RunStepCompletionUsage Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. RunStepCompletionUsage
- com.
Implements
public final class RunStepCompletionUsage
implements JsonSerializable<RunStepCompletionUsage>
Usage statistics related to the run step.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
| long |
getCompletionTokens()
Get the completion |
| long |
getPromptTokens()
Get the prompt |
| long |
getTotalTokens()
Get the total |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static RunStepCompletionUsage fromJson(JsonReader jsonReader)
Reads an instance of RunStepCompletionUsage from the JsonReader.
Parameters:
Returns:
Throws:
getCompletionTokens
public long getCompletionTokens()
Get the completionTokens property: Number of completion tokens used over the course of the run step.
Returns:
getPromptTokens
public long getPromptTokens()
Get the promptTokens property: Number of prompt tokens used over the course of the run step.
Returns:
getTotalTokens
public long getTotalTokens()
Get the totalTokens property: Total number of tokens used (prompt + completion).
Returns: