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.

public class TruncationStrategy
Inheritance
object
TruncationStrategy

Properties

LastMessage

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

public int? LastMessage { get; set; }

Property Value

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.

public string Type { get; set; }

Property Value

string