InputTokenDetail
@JsonIgnoreProperties(ignoreUnknown = true) public class InputTokenDetail
源码Source
io/agentscope/runtime/protocol/responseapi/model/InputTokenDetail.java:22–34输入令牌详情,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.protocol.responseapi.model 包。核心成员包括 getCachedTokens、setCachedTokens。
A class in io.agentscope.runtime.protocol.responseapi.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.protocol.responseapi.model.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Integer getCachedTokens() | 获取已缓存令牌数。 Returns the cached tokens. |
public void setCachedTokens(Integer cachedTokens) | 设置已缓存令牌数。 Sets the cached tokens. |
方法详情Method Detail
getCachedTokens
public Integer getCachedTokens()
获取已缓存令牌数。
Returns the cached tokens.
Integer返回数值结果。Returns a numeric result.
源码Source
io/agentscope/runtime/protocol/responseapi/model/InputTokenDetail.java:27–29setCachedTokens
public void setCachedTokens(Integer cachedTokens)
设置已缓存令牌数。
Sets the cached tokens.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cachedTokens | Integer | 已缓存令牌数(类型 `Integer`)。The cached tokens. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/InputTokenDetail.java:31–33