AS AgentScopeAPI 手册 / API Reference

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
enabledboolean
执行已启用相关操作。
The state of the thinking capability.

字段摘要Field Summary

字段Field类型Type说明Description
ENABLED
staticfinal
ThinkBoolean
已启用字段。
Constant representing the enabled state for thinking.
DISABLED
staticfinal
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:108

DISABLED

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.

返回Returns Object
返回对象。Returns object.
源码Source io/agentscope/extensions/model/ollama/options/ThinkOption.java:115–118
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.