Package com.github.copilot.sdk.json
Class ElicitationSchema
java.lang.Object
com.github.copilot.sdk.json.ElicitationSchema
JSON Schema describing the form fields to present for an elicitation dialog.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the form field definitions, keyed by field name.Gets the list of required field names.getType()Gets the schema type indicator (always"object").setProperties(Map<String, Object> properties) Sets the form field definitions, keyed by field name.setRequired(List<String> required) Sets the list of required field names.Sets the schema type indicator.
-
Constructor Details
-
ElicitationSchema
public ElicitationSchema()
-
-
Method Details
-
getType
Gets the schema type indicator (always"object").- Returns:
- the type
-
setType
Sets the schema type indicator.- Parameters:
type- the type (typically"object")- Returns:
- this instance for method chaining
-
getProperties
Gets the form field definitions, keyed by field name.- Returns:
- the properties map
-
setProperties
Sets the form field definitions, keyed by field name.- Parameters:
properties- the properties map- Returns:
- this instance for method chaining
-
getRequired
Gets the list of required field names.- Returns:
- the required field names, or
null
-
setRequired
Sets the list of required field names.- Parameters:
required- the required field names- Returns:
- this instance for method chaining
-