Table of Contents

Class TruncationStrategy

Namespace
OpenAI.ObjectModels.SharedModels
Assembly
AntRunnerLib.dll
public class TruncationStrategy
Inheritance
System.Object
TruncationStrategy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Properties

LastMessages

The number of most recent messages from the thread when constructing the context for the run.

[JsonPropertyName("last_messages")]
public int? LastMessages { get; set; }

Property Value

System.Nullable<System.Int32>

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.

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

System.String