Package com.github.copilot.sdk.json
Class ExitPlanModeRequest
java.lang.Object
com.github.copilot.sdk.json.ExitPlanModeRequest
Request to exit plan mode and continue with a selected action.
This is sent by the server when the agent wants to exit plan mode and requests user confirmation.
- Since:
- 1.0.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the available actions the user can select.Gets the full plan content, when available.Gets the action recommended by the runtime.Gets the summary of the plan or proposed next step.setActions(List<String> actions) Sets the available actions the user can select.setPlanContent(String planContent) Sets the full plan content.setRecommendedAction(String recommendedAction) Sets the action recommended by the runtime.setSummary(String summary) Sets the summary of the plan or proposed next step.
-
Constructor Details
-
ExitPlanModeRequest
public ExitPlanModeRequest()
-
-
Method Details
-
getSummary
Gets the summary of the plan or proposed next step.- Returns:
- the summary
-
setSummary
Sets the summary of the plan or proposed next step.- Parameters:
summary- the summary- Returns:
- this instance for method chaining
-
getPlanContent
Gets the full plan content, when available.- Returns:
- the plan content, or
nullif not available
-
setPlanContent
Sets the full plan content.- Parameters:
planContent- the plan content- Returns:
- this instance for method chaining
-
getActions
Gets the available actions the user can select.- Returns:
- the list of actions, or
nullif not specified
-
setActions
Sets the available actions the user can select.- Parameters:
actions- the list of actions- Returns:
- this instance for method chaining
-
getRecommendedAction
Gets the action recommended by the runtime.- Returns:
- the recommended action
-
setRecommendedAction
Sets the action recommended by the runtime.- Parameters:
recommendedAction- the recommended action- Returns:
- this instance for method chaining
-