Search Results for

    Show / Hide Table of Contents

    Struct TruncationType

    Implements
    IStringWrapper
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [Serializable]
    public readonly struct TruncationType : IStringWrapper

    Constructors

    | Edit this page View Source

    TruncationType(string)

    Declaration
    public TruncationType(string value)
    Parameters
    Type Name Description
    string value

    Fields

    | Edit this page View Source

    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.

    Declaration
    public const string Auto = "auto"
    Field Value
    Type Description
    string
    | Edit this page View Source

    Disabled

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

    Declaration
    public const string Disabled = "disabled"
    Field Value
    Type Description
    string
    | Edit this page View Source

    LastMessages

    Declaration
    public const string LastMessages = "last_messages"
    Field Value
    Type Description
    string
    | Edit this page View Source

    RetentionRatio

    Declaration
    public const string RetentionRatio = "retention_ratio"
    Field Value
    Type Description
    string

    Properties

    | Edit this page View Source

    Value

    Declaration
    public string Value { get; }
    Property Value
    Type Description
    string

    Operators

    | Edit this page View Source

    implicit operator string(TruncationType)

    Declaration
    public static implicit operator string(TruncationType t)
    Parameters
    Type Name Description
    TruncationType t
    Returns
    Type Description
    string
    | Edit this page View Source

    implicit operator TruncationType(string)

    Declaration
    public static implicit operator TruncationType(string v)
    Parameters
    Type Name Description
    string v
    Returns
    Type Description
    TruncationType

    Implements

    IStringWrapper

    Extension Methods

    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.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation