Class SessionEndHookOutput

java.lang.Object
com.github.copilot.sdk.json.SessionEndHookOutput

public class SessionEndHookOutput extends Object
Output for a session-end hook.

Allows specifying cleanup actions and session summary.

Since:
1.0.7
  • Constructor Details

    • SessionEndHookOutput

      public SessionEndHookOutput()
  • Method Details

    • getSuppressOutput

      public Boolean getSuppressOutput()
      Gets whether output should be suppressed.
      Returns:
      true to suppress output, or null
    • setSuppressOutput

      public SessionEndHookOutput setSuppressOutput(Boolean suppressOutput)
      Sets whether to suppress the output.
      Parameters:
      suppressOutput - true to suppress output
      Returns:
      this instance for method chaining
    • getCleanupActions

      public List<String> getCleanupActions()
      Gets the list of cleanup actions.
      Returns:
      the cleanup actions, or null
    • setCleanupActions

      public SessionEndHookOutput setCleanupActions(List<String> cleanupActions)
      Sets the cleanup actions to perform.
      Parameters:
      cleanupActions - the cleanup actions
      Returns:
      this instance for method chaining
    • getSessionSummary

      public String getSessionSummary()
      Gets the session summary.
      Returns:
      the session summary, or null
    • setSessionSummary

      public SessionEndHookOutput setSessionSummary(String sessionSummary)
      Sets a summary of the session.
      Parameters:
      sessionSummary - the session summary
      Returns:
      this instance for method chaining