SlidingWindow constructor

SlidingWindow({
  1. int? targetTokens,
})

Creates a SlidingWindow instance.

targetTokens (optional): The target number of tokens to keep in the context window.

Implementation

SlidingWindow({this.targetTokens});