Versions in this module Expand all Collapse all v0 v0.3.0 Nov 3, 2026 v0.2.0 Nov 3, 2026 Changes in this version + const EnvDeepCompression + type Budget struct + MaxChars int + type Collapse struct + EndIndex int + ID string + OriginalIDs []string + Originals []Message + StartIndex int + Summary Message + type Compact struct + Metadata map[string]any + Summary string + type Compressor interface + Compress func(ctx context.Context, req Request) (*Result, error) + type Level int + const LevelAutoCompact + const LevelProjection + const LevelReversibleCollapse + const LevelToolResultBudget + const LevelWindowPruning + func LevelsForProfile(profile Profile) []Level + type Message struct + Content string + ID string + Metadata map[string]any + Ref string + Role Role + Status string + ToolCallID string + ToolName string + func RestoreProjection(messages []Message, collapses []Collapse) []Message + func (m Message) CharLen() int + type Profile string + const ProfileDeep + const ProfileStandard + func ProfileFromEnv() Profile + func ProfileFromLookup(lookup func(string) (string, bool)) Profile + type Request struct + Budget Budget + Messages []Message + Metadata map[string]any + type Result struct + AutoCompact *Compact + Collapses []Collapse + Dropped int + Levels []Level + Messages []Message + Metadata map[string]any + OverBudget bool + Profile Profile + Summary string + type Role string + const RoleAssistant + const RoleSystem + const RoleTool + const RoleUser + type SummarizeRequest struct + Budget Budget + Collapsed []Message + Metadata map[string]any + Previous string + Recent []Message + type SummarizeResult struct + Metadata map[string]any + Summary string + type Summarizer interface + Summarize func(ctx context.Context, req SummarizeRequest) (*SummarizeResult, error) Other modules containing this package github.com/eruca/goagents/contextkit