overflow

package
v0.8.1-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package overflow is the session-layer view of the compaction budget.

The arithmetic lives in internal/engine/calc, where the engine already consumes this module's decisions. Type aliases keep both call sites on one implementation.

Index

Constants

View Source
const PolicyWindow = calc.PolicyWindow

Variables

This section is empty.

Functions

func EffectiveInputCapacity

func EffectiveInputCapacity(input UsableInput) float64

func IsOverflow

func IsOverflow(input OverflowInput) bool

func MaxOutputTokens

func MaxOutputTokens(model Model) float64

MaxOutputTokens is the most a single reply from model may hold, which is also the most a generated summary can be.

func ValidatePolicy

func ValidatePolicy(cfg Config) error

Types

type CompactionConfig

type CompactionConfig = calc.CompactionConfig

type CompactionWatermarks

type CompactionWatermarks = calc.CompactionWatermarks

func Watermarks

func Watermarks(input UsableInput) CompactionWatermarks

type Config

type Config = calc.Config

type Model

type Model = calc.Model

type ModelLimit

type ModelLimit = calc.ModelLimit

type OverflowInput

type OverflowInput = calc.OverflowInput

type TokenCache

type TokenCache = calc.TokenCache

type Tokens

type Tokens = calc.Tokens

type UsableInput

type UsableInput = calc.UsableInput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL