public class CompletionUsage
extends com.fasterxml.jackson.databind.node.ObjectNode
| 构造器和说明 |
|---|
CompletionUsage() |
CompletionUsage(com.fasterxml.jackson.databind.node.ObjectNode objectNode) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCompletionTokens() |
int |
getPromptTokens() |
int |
getTotalTokens() |
void |
setCompletionTokens(int completionTokens) |
void |
setPromptTokens(int promptTokens) |
void |
setTotalTokens(int totalTokens) |
_at, _childrenEqual, _put, asToken, deepCopy, elements, equals, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, get, get, getNodeType, hashCode, isEmpty, isEmpty, isObject, path, path, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, replace, required, retain, retain, serialize, serializeWithType, set, setAll, setAll, size, with, withArray, without, withoutarrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, textNodefindPath, numberType, required, toPrettyString, toString, traverse, traverse_reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, require, requiredAt, requiredAt, requireNonNull, shortValue, textValueforEach, spliteratorpublic CompletionUsage()
public CompletionUsage(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
public int getPromptTokens()
public void setPromptTokens(int promptTokens)
public int getCompletionTokens()
public void setCompletionTokens(int completionTokens)
public int getTotalTokens()
public void setTotalTokens(int totalTokens)
Copyright © 2025. All rights reserved.