Class TruncationStrategy
Inheritance
TruncationStrategy
Assembly: Glitch9.AIDevKit.dll
Syntax
[Serializable]
[JsonConverter(typeof(TruncationStrategyJsonConverter))]
public class TruncationStrategy
Fields
|
Edit this page
View Source
Auto
Declaration
public static readonly TruncationStrategy Auto
Field Value
|
Edit this page
View Source
Disabled
Declaration
public static readonly TruncationStrategy Disabled
Field Value
|
Edit this page
View Source
LastMessage
The number of most recent messages from the Thread
when constructing the context for the Run.
Declaration
[InspectorDisplay(1)]
[ShowInInspectorIf("Type", "last_messages", CompareMode.Equal, null, false)]
[SerializeField]
public SerializableNullable<int> LastMessage
Field Value
|
Edit this page
View Source
RetentionRatio
Required. Fraction of post-instruction conversation tokens to retain (0.0 - 1.0)
when the conversation exceeds the input token limit.
Declaration
[InspectorDisplay(1)]
[ShowInInspectorIf("Type", "retention_ratio", CompareMode.Equal, null, false)]
[SerializeField]
public float RetentionRatio
Field Value
|
Edit this page
View Source
Type
Declaration
[StringPopup(new string[] { "Disabled", "Auto", "Last Messages", "Retention Ratio" }, new string[] { "disabled", "auto", "last_messages", "retention_ratio" })]
[SerializeField]
public string Type
Field Value
Extension Methods