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

Function WithLogging

internal/compact/logging.go:21–23  ·  view source on GitHub ↗

WithLogging is sugar for &LoggingStrategy{Inner: inner, FilePath: path}.

(inner CompactionStrategy, path string)

Source from the content-addressed store, hash-verified

19
20// WithLogging is sugar for &LoggingStrategy{Inner: inner, FilePath: path}.
21func WithLogging(inner CompactionStrategy, path string) *LoggingStrategy {
22 return &LoggingStrategy{Inner: inner, FilePath: path}
23}
24
25func (l *LoggingStrategy) Compact(ctx context.Context, messages []api.Message) ([]api.Message, error) {
26 before := messages

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected