AS AgentScopeAPI 手册 / API Reference

OpenAIReasoningDetail

@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class OpenAIReasoningDetail
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:25–93

OpenAI 推理详情,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.openai.dto 包。核心成员包括 getId、setId、getType、setType、getData、setData。

OpenAI Reasoning Detail DTO (OpenRouter specific for Gemini).

方法摘要Method Summary

方法Method说明Description
public String getId()
获取标识。
Returns the id.
public void setId(String id)
设置标识。
Sets the id.
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public String getData()
获取数据。
Returns the data.
public void setData(String data)
设置数据。
Sets the data.
public String getText()
获取文本。
Returns the text.
public void setText(String text)
设置文本。
Sets the text.
public String getFormat()
获取格式。
Returns the format.
public void setFormat(String format)
设置格式。
Sets the format.
public Integer getIndex()
获取索引。
Returns the index.
public void setIndex(Integer index)
设置索引。
Sets the index.

方法详情Method Detail

getId

public String getId()

获取标识。

Returns the id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:46–48

setId

public void setId(String id)

设置标识。

Sets the id.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:50–52

getType

public String getType()

获取类型。

Returns the type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:54–56

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:58–60

getData

public String getData()

获取数据。

Returns the data.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:62–64

setData

public void setData(String data)

设置数据。

Sets the data.

参数Parameters
名称Name类型Type说明Description
dataString数据(类型 `String`)。The data.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:66–68

getText

public String getText()

获取文本。

Returns the text.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:70–72

setText

public void setText(String text)

设置文本。

Sets the text.

参数Parameters
名称Name类型Type说明Description
textString文本(类型 `String`)。The text.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:74–76

getFormat

public String getFormat()

获取格式。

Returns the format.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:78–80

setFormat

public void setFormat(String format)

设置格式。

Sets the format.

参数Parameters
名称Name类型Type说明Description
formatString格式(类型 `String`)。The format.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:82–84

getIndex

public Integer getIndex()

获取索引。

Returns the index.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:86–88

setIndex

public void setIndex(Integer index)

设置索引。

Sets the index.

参数Parameters
名称Name类型Type说明Description
indexInteger索引(类型 `Integer`)。The index.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:90–92
基于官方固定版本源码静态生成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.