Table of Contents

Class ConversationOptionalArgs

public sealed class ConversationOptionalArgs : LiteRTLMNativeHandle
Inheritance
object
ConversationOptionalArgs
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

maxOutputTokens int

The maximum number of output tokens.

SetRepetitionPenaltyConfig(RepetitionPenaltyConfig?)

Sets the repetition penalty configuration for the conversation optional args.

public void SetRepetitionPenaltyConfig(RepetitionPenaltyConfig? repetitionPenaltyConfig)

Parameters

repetitionPenaltyConfig RepetitionPenaltyConfig

The 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

thinkingConfig ThinkingConfig

The 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

visualTokenBudget int

The visual token budget.