ThinkBoolean
record ThinkBoolean(boolean enabled) implements ThinkOption
源码Source
io/agentscope/extensions/model/ollama/options/ThinkOption.java:103–119承载 Think Boolean数据的记录类型。位于 io.agentscope.extensions.model.ollama.options 包,实现 ThinkOption。核心成员包括 enabled、toJsonValue、ENABLED、DISABLED。
Implementation of ThinkOption representing a binary state (Enabled/Disabled).
Ideal for models that do not support granular thinking levels.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 执行已启用相关操作。 The state of the thinking capability. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
ENABLEDstaticfinal | ThinkBoolean | 已启用字段。 Constant representing the enabled state for thinking. |
DISABLEDstaticfinal | ThinkBoolean | 已禁用字段。 Constant representing the disabled state for thinking. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Object toJsonValue() | 返回到 JSON 值。 Returns the to json value. |
记录组件详情Record Component Detail
enabled
boolean enabled执行已启用相关操作。
The state of the thinking capability.
源码Source
io/agentscope/extensions/model/ollama/options/ThinkOption.java:103–119字段详情Field Detail
ENABLED
public static final ThinkBoolean ENABLED
staticfinal
已启用字段。声明为 public static final ThinkBoolean ENABLED。
Constant representing the enabled state for thinking.
源码Source
io/agentscope/extensions/model/ollama/options/ThinkOption.java:108DISABLED
public static final ThinkBoolean DISABLED
staticfinal
已禁用字段。声明为 public static final ThinkBoolean DISABLED。
Constant representing the disabled state for thinking.
源码Source
io/agentscope/extensions/model/ollama/options/ThinkOption.java:113方法详情Method Detail
toJsonValue
public Object toJsonValue()
返回到 JSON 值。
Returns the to json value.
Object返回对象。Returns object.
源码Source
io/agentscope/extensions/model/ollama/options/ThinkOption.java:115–118