AS AgentScopeAPI 手册 / API Reference

OutputTokenDetail

@JsonIgnoreProperties(ignoreUnknown = true) public class OutputTokenDetail
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputTokenDetail.java:22–34

输出令牌详情,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.protocol.responseapi.model 包。核心成员包括 getReasoningTokens、setReasoningTokens。

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 getReasoningTokens()
获取推理令牌数。
Returns the reasoning tokens.
public void setReasoningTokens(Integer reasoningTokens)
设置推理令牌数。
Sets the reasoning tokens.

方法详情Method Detail

getReasoningTokens

public Integer getReasoningTokens()

获取推理令牌数。

Returns the reasoning tokens.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputTokenDetail.java:27–29

setReasoningTokens

public void setReasoningTokens(Integer reasoningTokens)

设置推理令牌数。

Sets the reasoning tokens.

参数Parameters
名称Name类型Type说明Description
reasoningTokensInteger推理令牌数(类型 `Integer`)。The reasoning tokens.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputTokenDetail.java:31–33
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.