Package com.github.copilot.sdk.json
Class UserInputResponse
java.lang.Object
com.github.copilot.sdk.json.UserInputResponse
Response to a user input request.
- Since:
- 1.0.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the user's answer.booleanReturns whether the answer was freeform (not from the provided choices).Sets the user's answer.setWasFreeform(boolean wasFreeform) Sets whether the answer was freeform.
-
Constructor Details
-
UserInputResponse
public UserInputResponse()
-
-
Method Details
-
getAnswer
Gets the user's answer.- Returns:
- the answer text
-
setAnswer
Sets the user's answer.- Parameters:
answer- the answer text- Returns:
- this instance for method chaining
-
isWasFreeform
public boolean isWasFreeform()Returns whether the answer was freeform (not from the provided choices).- Returns:
trueif the answer was freeform
-
setWasFreeform
Sets whether the answer was freeform.- Parameters:
wasFreeform-trueif the answer was freeform- Returns:
- this instance for method chaining
-