Return this from a SessionEnd hook callback. This hook fires once at the
end of an agent session, after the agent stops for any reason.
Usage
HookResultSessionEnd(handled = TRUE)
Arguments
- handled
If TRUE, indicates the hook handled the session end event
Value
A HookResultSessionEnd object
Examples
# Log session end
HookResultSessionEnd()
#> $handled
#> [1] TRUE
#>
#> attr(,"class")
#> [1] "HookResultSessionEnd" "HookResult" "list"
# Mark as handled
HookResultSessionEnd(handled = TRUE)
#> $handled
#> [1] TRUE
#>
#> attr(,"class")
#> [1] "HookResultSessionEnd" "HookResult" "list"