ThinkLevel
record ThinkLevel(String level) implements ThinkOption
io/agentscope/extensions/model/ollama/options/ThinkOption.java:127–166承载 Think 级别数据的记录类型。位于 io.agentscope.extensions.model.ollama.options 包,实现 ThinkOption。核心成员包括 level、toJsonValue、ThinkLevel、LOW、MEDIUM、HIGH。
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.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
level | String | 执行级别相关操作。 The desired level of thinking (must be one of: "low", "medium", "high"). |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
LOWstaticfinal | ThinkLevel | LOW字段。 Predefined constant for low-effort thinking. |
MEDIUMstaticfinal | ThinkLevel | MEDIUM字段。 Predefined constant for medium-effort thinking. |
HIGHstaticfinal | ThinkLevel | HIGH字段。 Predefined constant for high-effort thinking. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ThinkLevel(String level) | 初始化 `ThinkLevel` 实例。 Constructs a new ThinkLevel with validation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Object toJsonValue() | 返回到 JSON 值。 Returns the to json value. |
记录组件详情Record Component Detail
level
String level执行级别相关操作。
The desired level of thinking (must be one of: "low", "medium", "high").
io/agentscope/extensions/model/ollama/options/ThinkOption.java:127–166字段详情Field Detail
LOW
public static final ThinkLevel LOW
LOW字段。声明为 public static final ThinkLevel LOW。
Predefined constant for low-effort thinking.
io/agentscope/extensions/model/ollama/options/ThinkOption.java:134MEDIUM
public static final ThinkLevel MEDIUM
MEDIUM字段。声明为 public static final ThinkLevel MEDIUM。
Predefined constant for medium-effort thinking.
io/agentscope/extensions/model/ollama/options/ThinkOption.java:139HIGH
public static final ThinkLevel HIGH
HIGH字段。声明为 public static final ThinkLevel HIGH。
Predefined constant for high-effort thinking.
io/agentscope/extensions/model/ollama/options/ThinkOption.java:144构造器详情Constructor Detail
ThinkLevel
public ThinkLevel(String level)
初始化 ThinkLevel 实例。
Constructs a new ThinkLevel with validation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
level | String | 级别(类型 `String`)。The thinking level string. |
IllegalArgumentException可能抛出 `IllegalArgumentException`。if the provided level is not within the valid set.
io/agentscope/extensions/model/ollama/options/ThinkOption.java:152–160方法详情Method Detail
toJsonValue
public Object toJsonValue()
返回到 JSON 值。
Returns the to json value.
Objectio/agentscope/extensions/model/ollama/options/ThinkOption.java:162–165