Help us shape the future of Go! Take the 2026 Go Developer Survey

dedup

package
v1.95.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dedup holds the session-level metadata deduplication config, split out of pkg/platform to keep that package under its size budget (#594).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Enabled controls whether session dedup is active. Defaults to true.
	Enabled *bool `yaml:"enabled"`

	// Mode controls what is sent for previously-enriched tables.
	// Values: "reference" (default), "summary", "none".
	Mode string `yaml:"mode"`

	// EntryTTL is how long a table's enrichment is considered fresh.
	// Defaults to the semantic cache TTL (typically 5m).
	EntryTTL time.Duration `yaml:"entry_ttl"`

	// SessionTimeout is how long an idle session persists before cleanup.
	// Defaults to the server's streamable session timeout (typically 30m).
	SessionTimeout time.Duration `yaml:"session_timeout"`
}

Config configures session-level metadata deduplication: it avoids repeating large semantic metadata blocks for previously-enriched tables within the same client session, saving LLM context tokens.

func (*Config) EffectiveMode

func (c *Config) EffectiveMode() string

EffectiveMode returns the dedup mode, defaulting to "reference".

func (*Config) IsEnabled

func (c *Config) IsEnabled() bool

IsEnabled returns whether session dedup is enabled, defaulting to true.

Jump to

Keyboard shortcuts

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