Package com.github.copilot.sdk.json
Class ElicitationResult
java.lang.Object
com.github.copilot.sdk.json.ElicitationResult
Result returned from an elicitation dialog.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the user action taken on the elicitation dialog.Gets the form values submitted by the user.setAction(ElicitationResultAction action) Sets the user action taken on the elicitation dialog.setContent(Map<String, Object> content) Sets the form values submitted by the user.
-
Constructor Details
-
ElicitationResult
public ElicitationResult()
-
-
Method Details
-
getAction
Gets the user action taken on the elicitation dialog.ElicitationResultAction.ACCEPTmeans the user submitted the form,ElicitationResultAction.DECLINEmeans the user rejected the request, andElicitationResultAction.CANCELmeans the user dismissed the dialog.- Returns:
- the user action
-
setAction
Sets the user action taken on the elicitation dialog.- Parameters:
action- the user action- Returns:
- this instance for method chaining
-
getContent
Gets the form values submitted by the user.Only present when
getAction()isElicitationResultAction.ACCEPT.- Returns:
- the submitted form values, or
nullif the user did not accept
-
setContent
Sets the form values submitted by the user.- Parameters:
content- the submitted form values- Returns:
- this instance for method chaining
-