Class ConversationOptionalArgs
public sealed class ConversationOptionalArgs : LiteRTLMNativeHandle
- Inheritance
-
objectConversationOptionalArgs
- Inherited Members
Constructors
ConversationOptionalArgs()
Creates a managed wrapper around the optional arguments for conversation APIs. The caller is responsible for disposing the wrapper using Dispose().
public ConversationOptionalArgs()
Exceptions
- InvalidOperationException
Thrown if the native object could not be created.
Methods
ReleaseUnmanagedResources()
protected override void ReleaseUnmanagedResources()
SetMaxOutputTokens(int)
Sets the maximum number of output tokens for the conversation optional arguments.
public void SetMaxOutputTokens(int maxOutputTokens)
Parameters
maxOutputTokensintThe maximum number of output tokens.
SetRepetitionPenaltyConfig(RepetitionPenaltyConfig?)
Sets the repetition penalty configuration for the conversation optional args.
public void SetRepetitionPenaltyConfig(RepetitionPenaltyConfig? repetitionPenaltyConfig)
Parameters
repetitionPenaltyConfigRepetitionPenaltyConfigThe repetition penalty config to set. If null, clears any previously set repetition penalty config.
SetThinkingConfig(ThinkingConfig?)
Sets the thinking config for the conversation optional args.
public void SetThinkingConfig(ThinkingConfig? thinkingConfig)
Parameters
thinkingConfigThinkingConfigThe thinking config to set. If null, clears any previously set thinking config.
SetVisualTokenBudget(int)
Sets the visual token budget for the conversation optional arguments.
public void SetVisualTokenBudget(int visualTokenBudget)
Parameters
visualTokenBudgetintThe visual token budget.