MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / Compact

Method Compact

internal/compact/strategy.go:15–15  ·  view source on GitHub ↗
(ctx context.Context, messages []api.Message)

Source from the content-addressed store, hash-verified

13
14type CompactionStrategy interface {
15 Compact(ctx context.Context, messages []api.Message) ([]api.Message, error)
16}
17
18// SafeSplitPoint walks backward from `desired` to find an index where the

Callers 4

cmdCompactFunction · 0.65
CompactMethod · 0.65
loopMethod · 0.65

Implementers 4

LoggingStrategyinternal/compact/logging.go
SlidingWindowinternal/compact/slidingwindow.go
Summarizeinternal/compact/summarize.go
NoCompactioninternal/compact/nocompaction.go

Calls

no outgoing calls

Tested by 1