Package com.github.copilot.sdk.json
Class ExitPlanModeResult
java.lang.Object
com.github.copilot.sdk.json.ExitPlanModeResult
Response to an exit-plan-mode request.
- Since:
- 1.0.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets optional feedback provided by the user.Gets the selected action, if the user chose one.booleanReturns whether the user approved exiting plan mode.setApproved(boolean approved) Sets whether the user approved exiting plan mode.setFeedback(String feedback) Sets feedback from the user.setSelectedAction(String selectedAction) Sets the selected action.
-
Constructor Details
-
ExitPlanModeResult
public ExitPlanModeResult()
-
-
Method Details
-
isApproved
public boolean isApproved()Returns whether the user approved exiting plan mode.- Returns:
trueif approved
-
setApproved
Sets whether the user approved exiting plan mode.- Parameters:
approved-trueif approved- Returns:
- this instance for method chaining
-
getSelectedAction
Gets the selected action, if the user chose one.- Returns:
- the selected action, or
null
-
setSelectedAction
Sets the selected action.- Parameters:
selectedAction- the selected action- Returns:
- this instance for method chaining
-
getFeedback
Gets optional feedback provided by the user.- Returns:
- the feedback, or
null
-
setFeedback
Sets feedback from the user.- Parameters:
feedback- the feedback text- Returns:
- this instance for method chaining
-