Package com.github.copilot.sdk.json
Class SessionEndHookOutput
java.lang.Object
com.github.copilot.sdk.json.SessionEndHookOutput
Output for a session-end hook.
Allows specifying cleanup actions and session summary.
- Since:
- 1.0.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of cleanup actions.Gets the session summary.Gets whether output should be suppressed.setCleanupActions(List<String> cleanupActions) Sets the cleanup actions to perform.setSessionSummary(String sessionSummary) Sets a summary of the session.setSuppressOutput(Boolean suppressOutput) Sets whether to suppress the output.
-
Constructor Details
-
SessionEndHookOutput
public SessionEndHookOutput()
-
-
Method Details
-
getSuppressOutput
Gets whether output should be suppressed.- Returns:
trueto suppress output, ornull
-
setSuppressOutput
Sets whether to suppress the output.- Parameters:
suppressOutput-trueto suppress output- Returns:
- this instance for method chaining
-
getCleanupActions
Gets the list of cleanup actions.- Returns:
- the cleanup actions, or
null
-
setCleanupActions
Sets the cleanup actions to perform.- Parameters:
cleanupActions- the cleanup actions- Returns:
- this instance for method chaining
-
getSessionSummary
Gets the session summary.- Returns:
- the session summary, or
null
-
setSessionSummary
Sets a summary of the session.- Parameters:
sessionSummary- the session summary- Returns:
- this instance for method chaining
-