OpenAIReasoningDetail
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class OpenAIReasoningDetail
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:25–93OpenAI 推理详情,与模型服务通信并返回生成或向量化结果。位于 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:46–48setId
public void setId(String id)
设置标识。
Sets the id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:50–52getType
public String getType()
获取类型。
Returns the type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:54–56setType
public void setType(String type)
设置类型。
Sets the type.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:58–60getData
public String getData()
获取数据。
Returns the data.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:62–64setData
public void setData(String data)
设置数据。
Sets the data.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | String | 数据(类型 `String`)。The data. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:66–68getText
public String getText()
获取文本。
Returns the text.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:70–72setText
public void setText(String text)
设置文本。
Sets the text.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
text | String | 文本(类型 `String`)。The text. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:74–76getFormat
public String getFormat()
获取格式。
Returns the format.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:78–80setFormat
public void setFormat(String format)
设置格式。
Sets the format.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
format | String | 格式(类型 `String`)。The format. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:82–84getIndex
public Integer getIndex()
获取索引。
Returns the index.
Integer返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:86–88setIndex
public void setIndex(Integer index)
设置索引。
Sets the index.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | Integer | 索引(类型 `Integer`)。The index. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIReasoningDetail.java:90–92