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
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 |