接口 ThinkOption
Defines the configuration contract for the "thinking" capability (Chain of Thought) in AgentScope's Ollama integration.
This interface allows users to control how the underlying model exposes its internal reasoning process.
The configuration supports two distinct strategies:
ThinkOption.ThinkBoolean: A simple toggle to enable or disable thinking (suitable for models like DeepSeek R1).ThinkOption.ThinkLevel: A granular control to set the depth of reasoning (e.g., "low", "medium", "high" for models like GPT-OSS).
-
嵌套类概要
嵌套类修饰符和类型接口说明static final recordImplementation ofThinkOptionrepresenting a binary state (Enabled/Disabled).static final recordImplementation ofThinkOptionrepresenting a specific level of reasoning effort.static classCustom deserializer implementation forThinkOption.static classCustom serializer implementation forThinkOption. -
方法概要
修饰符和类型方法说明Transforms the current option into a format compatible with the Ollama JSON API.