compactionctx

package
v0.9.26 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrefixTokens

func PrefixTokens(ctx context.Context) int

PrefixTokens returns the non-persisted prefix token count stored in the context, if any.

func WithPrefixTokens

func WithPrefixTokens(ctx context.Context, tokens int) context.Context

WithPrefixTokens stores the token count of non-persisted prefix context for compaction accounting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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