Thinking

class Thinking

Thinking config. Set on Anthropic models and some Ollama models.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val enabled: Boolean = false
Link copied to clipboard
val excludedTags: Set<String>? = null

when set, com.embabel.common.core.thinking.ThinkingBlocks whose tag name is in this set are dropped. PREFIX and NO_PREFIX blocks pass through.

Link copied to clipboard
Link copied to clipboard
val includedTags: Set<String>? = null

when set, only com.embabel.common.core.thinking.ThinkingBlocks whose tag name is in this set are returned. PREFIX and NO_PREFIX blocks are suppressed.

Link copied to clipboard

when true and includedTags is set, a system prompt hint is injected instructing the model to wrap reasoning in the first included tag.

Link copied to clipboard
val tokenBudget: Int? = null

Functions

Link copied to clipboard

Enable thinking block extraction for user access.

Link copied to clipboard
fun applyTokenBudget(tokenBudget: Int): Thinking

Configure thinking token budget.

Link copied to clipboard

Control whether a system prompt hint is injected when includedTags is set.