Class ThinkingConfig
public sealed class ThinkingConfig : LiteRTLMNativeHandle
- Inheritance
-
objectThinkingConfig
- 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
enableThinkingboolWhether thinking is enabled.
SetThinkingTokenBudget(int)
Sets the thinking token budget.
public void SetThinkingTokenBudget(int thinkingTokenBudget)
Parameters
thinkingTokenBudgetintBudget for token-by-token reasoning generation (-1 for infinite).