Header menu logo Nao

WindowStrategy Type

Strategy for managing conversation history length

Union cases

Union case Description

LastN int

Full Usage: LastN int

Parameters:
    Item : int

Keep only the last N messages

Item : int

SummarizeAfter threshold

Full Usage: SummarizeAfter threshold

Parameters:
    threshold : int

Summarize messages older than the threshold count, keeping recent ones

threshold : int

TokenBudget maxTokens

Full Usage: TokenBudget maxTokens

Parameters:
    maxTokens : int

Keep messages that fit within an estimated token budget

maxTokens : int

Instance members

Instance member Description

this.IsLastN

Full Usage: this.IsLastN

Returns: bool
Returns: bool

this.IsSummarizeAfter

Full Usage: this.IsSummarizeAfter

Returns: bool
Returns: bool

this.IsTokenBudget

Full Usage: this.IsTokenBudget

Returns: bool
Returns: bool

Type something to start searching.