Table of Contents

Struct TruncationType

Namespace
Glitch9.AIDevKit
[Serializable]
public readonly struct TruncationType : IStringWrapper
Implements
IStringWrapper

Constructors

TruncationType(string)

public TruncationType(string value)

Parameters

value string

Fields

Auto

If the context of this response and previous ones exceeds the model's context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.

public const string Auto = "auto"

Field Value

string

Disabled

Default. If a model response will exceed the context window size for a model, the request will fail with a 400 error.

public const string Disabled = "disabled"

Field Value

string

LastMessages

public const string LastMessages = "last_messages"

Field Value

string

RetentionRatio

public const string RetentionRatio = "retention_ratio"

Field Value

string

Properties

Value

public string Value { get; }

Property Value

string

Operators

implicit operator string(TruncationType)

public static implicit operator string(TruncationType t)

Parameters

t TruncationType

Returns

string

implicit operator TruncationType(string)

public static implicit operator TruncationType(string v)

Parameters

v string

Returns

TruncationType