Table of Contents

Class ThinkingConfig

public sealed class ThinkingConfig : LiteRTLMNativeHandle
Inheritance
object
ThinkingConfig
Inherited Members

Constructors

ThinkingConfig()

Creates a managed wrapper around a LiteRT LM thinking configuration. The caller is responsible for disposing the wrapper using Dispose().

public ThinkingConfig()

Exceptions

InvalidOperationException

Thrown if the native object could not be created.

Methods

ReleaseUnmanagedResources()

protected override void ReleaseUnmanagedResources()

SetEnableThinking(bool)

Sets whether thinking/reasoning generation is enabled.

public void SetEnableThinking(bool enableThinking)

Parameters

enableThinking bool

Whether thinking is enabled.

SetThinkingTokenBudget(int)

Sets the thinking token budget.

public void SetThinkingTokenBudget(int thinkingTokenBudget)

Parameters

thinkingTokenBudget int

Budget for token-by-token reasoning generation (-1 for infinite).