Search Results for

    Show / Hide Table of Contents

    Class TruncationStrategy

    Inheritance
    object
    TruncationStrategy
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    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
    Type Description
    TruncationStrategy
    | Edit this page View Source

    Disabled

    Declaration
    public static readonly TruncationStrategy Disabled
    Field Value
    Type Description
    TruncationStrategy
    | 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
    Type Description
    SerializableNullable<int>
    | 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
    Type Description
    float
    | 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
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation