Firebase.AI.ContextWindowCompressionConfig

Enables context window compression to manage the model's context window.

Summary

Warning: This API is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

Constructors and Destructors

ContextWindowCompressionConfig(int? triggerTokens, SlidingWindow? slidingWindow)

Properties

SlidingWindow
The sliding window compression mechanism.
TriggerTokens
int
The number of tokens (before running a turn) that triggers the context window compression.

Properties

SlidingWindow

SlidingWindow Firebase::AI::ContextWindowCompressionConfig::SlidingWindow

The sliding window compression mechanism.

TriggerTokens

int Firebase::AI::ContextWindowCompressionConfig::TriggerTokens

The number of tokens (before running a turn) that triggers the context window compression.

Public functions

ContextWindowCompressionConfig

 Firebase::AI::ContextWindowCompressionConfig::ContextWindowCompressionConfig(
  int? triggerTokens,
  SlidingWindow? slidingWindow
)