Class Usage
java.lang.Object
com.codename1.ai.Usage
public final class Usage
extends java.lang.Object
Token accounting returned by the provider. Any field that the
provider didn't return is
-1.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Usage
public Usage(int promptTokens, int completionTokens, int totalTokens)
-
-
Method Details
-
getPromptTokens
public int getPromptTokens() -
getCompletionTokens
public int getCompletionTokens() -
getTotalTokens
public int getTotalTokens()
-