Share via


TruncationStrategy Struct

Definition

Possible truncation strategies for the thread.

public readonly struct TruncationStrategy : IEquatable<Azure.AI.Projects.TruncationStrategy>
type TruncationStrategy = struct
Public Structure TruncationStrategy
Implements IEquatable(Of TruncationStrategy)
Inheritance
TruncationStrategy
Implements

Constructors

TruncationStrategy(String)

Initializes a new instance of TruncationStrategy.

Properties

Auto

Default value. Messages in the middle of the thread will be dropped to fit the context length of the model.

LastMessages

The thread will truncate to the lastMessages count of recent messages.

Methods

Equals(TruncationStrategy)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(TruncationStrategy, TruncationStrategy)

Determines if two TruncationStrategy values are the same.

Implicit(String to TruncationStrategy)

Converts a String to a TruncationStrategy.

Inequality(TruncationStrategy, TruncationStrategy)

Determines if two TruncationStrategy values are not the same.

Applies to