记录类 ThinkOption.ThinkBoolean
java.lang.Object
java.lang.Record
io.agentscope.core.model.ollama.ThinkOption.ThinkBoolean
- 记录组件:
enabled- The state of the thinking capability.
- 所有已实现的接口:
ThinkOption
- 封闭接口:
ThinkOption
public static record ThinkOption.ThinkBoolean(boolean enabled)
extends Record
implements ThinkOption
Implementation of
ThinkOption representing a binary state (Enabled/Disabled).
Ideal for models that do not support granular thinking levels.-
嵌套类概要
从接口继承的嵌套类/接口 io.agentscope.core.model.ollama.ThinkOption
ThinkOption.ThinkBoolean, ThinkOption.ThinkLevel, ThinkOption.ThinkOptionDeserializer, ThinkOption.ThinkOptionSerializer -
字段概要
字段修饰符和类型字段说明static final ThinkOption.ThinkBooleanConstant representing the disabled state for thinking.static final ThinkOption.ThinkBooleanConstant representing the enabled state for thinking. -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
ENABLED
Constant representing the enabled state for thinking. -
DISABLED
Constant representing the disabled state for thinking.
-
-
构造器详细资料
-
ThinkBoolean
public ThinkBoolean(boolean enabled) 创建ThinkBoolean记录类的实例。- 参数:
enabled-enabled记录组件的值
-
-
方法详细资料
-
toJsonValue
从接口复制的说明:ThinkOptionTransforms the current option into a format compatible with the Ollama JSON API.- 指定者:
toJsonValue在接口中ThinkOption- 返回:
- A
Booleanfor toggle-based options, or aStringfor level-based options.
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用 '==' 进行比较。 -
enabled
public boolean enabled()返回enabled记录组件的值。- 返回:
enabled记录组件的值
-