Return this from a PreCompact hook callback to control whether compaction should proceed.
See also
CallbackResult for read-only properties and S7 inspection.
Examples
# Allow compaction
HookResultPreCompact()
#> <deputy::HookResultPreCompact>
#> @ continue: logi TRUE
#> @ summary : NULL
# Cancel compaction
HookResultPreCompact(continue = FALSE)
#> <deputy::HookResultPreCompact>
#> @ continue: logi FALSE
#> @ summary : NULL
# Provide custom summary
HookResultPreCompact(summary = "Previous conversation discussed X, Y, Z.")
#> <deputy::HookResultPreCompact>
#> @ continue: logi TRUE
#> @ summary : chr "Previous conversation discussed X, Y, Z."