AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class TruncationStrategy

    Controls for how a Thread will be truncated prior to the run. Use this to control the intial context window of the run.

    Inheritance
    object
    TruncationStrategy
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class TruncationStrategy

    Properties

    LastMessage

    The number of most recent messages from the Thread when constructing the context for the Run.

    Declaration
    public int? LastMessage { get; set; }
    Property Value
    Type Description
    int?

    Type

    The truncation strategy to use for the Thread. The default is auto. If set to last_messages, the Thread will be truncated to the n most recent messages in the Thread. When set to auto, messages in the middle of the Thread will be dropped to fit the context length of the model, max_prompt_tokens.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    string
    In this article
    Back to top Generated by DocFX