记录类 ThinkOption.ThinkLevel
java.lang.Object
java.lang.Record
io.agentscope.core.model.ollama.ThinkOption.ThinkLevel
- 记录组件:
level- The desired level of thinking (must be one of: "low", "medium", "high").
- 所有已实现的接口:
ThinkOption
- 封闭接口:
ThinkOption
Implementation of
ThinkOption representing a specific level of reasoning effort.
Designed for models that allow tuning the "effort" or "depth" of the chain of thought.-
嵌套类概要
从接口继承的嵌套类/接口 io.agentscope.core.model.ollama.ThinkOption
ThinkOption.ThinkBoolean, ThinkOption.ThinkLevel, ThinkOption.ThinkOptionDeserializer, ThinkOption.ThinkOptionSerializer -
字段概要
字段修饰符和类型字段说明static final ThinkOption.ThinkLevelPredefined constant for high-effort thinking.static final ThinkOption.ThinkLevelPredefined constant for low-effort thinking.static final ThinkOption.ThinkLevelPredefined constant for medium-effort thinking. -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
LOW
Predefined constant for low-effort thinking. -
MEDIUM
Predefined constant for medium-effort thinking. -
HIGH
Predefined constant for high-effort thinking.
-
-
构造器详细资料
-
ThinkLevel
Constructs a new ThinkLevel with validation.- 参数:
level- The thinking level string.- 抛出:
IllegalArgumentException- if the provided level is not within the valid set.
-
-
方法详细资料
-
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
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
level
返回level记录组件的值。- 返回:
level记录组件的值
-