Class ExitPlanModeResult

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

public class ExitPlanModeResult extends Object
Response to an exit-plan-mode request.
Since:
1.0.8
  • Constructor Details

    • ExitPlanModeResult

      public ExitPlanModeResult()
  • Method Details

    • isApproved

      public boolean isApproved()
      Returns whether the user approved exiting plan mode.
      Returns:
      true if approved
    • setApproved

      public ExitPlanModeResult setApproved(boolean approved)
      Sets whether the user approved exiting plan mode.
      Parameters:
      approved - true if approved
      Returns:
      this instance for method chaining
    • getSelectedAction

      public String getSelectedAction()
      Gets the selected action, if the user chose one.
      Returns:
      the selected action, or null
    • setSelectedAction

      public ExitPlanModeResult setSelectedAction(String selectedAction)
      Sets the selected action.
      Parameters:
      selectedAction - the selected action
      Returns:
      this instance for method chaining
    • getFeedback

      public String getFeedback()
      Gets optional feedback provided by the user.
      Returns:
      the feedback, or null
    • setFeedback

      public ExitPlanModeResult setFeedback(String feedback)
      Sets feedback from the user.
      Parameters:
      feedback - the feedback text
      Returns:
      this instance for method chaining