Interface ThinkOption
- All Known Implementing Classes:
ThinkOption.ThinkBoolean,ThinkOption.ThinkLevel
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).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic 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. -
Method Summary
Modifier and TypeMethodDescriptionTransforms the current option into a format compatible with the Ollama JSON API.