Class JsonSchemaOutputByJsonExample
java.lang.Object
de.xima.fc.prompt.service.support.JsonSchemaOutputByJsonExample
- All Implemented Interfaces:
Serializable
View model POJO for users to define a JSON schema for the prompt response, by entering a JSON example. The system
generates a JSON schema from that example. Applicable only if
definitionType is BY_JSON_EXAMPLE.- Since:
- 8.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the JSON schema, as entered by the user.voidsetJsonText(String jsonText) Sets the JSON schema, as entered by the user.
-
Constructor Details
-
JsonSchemaOutputByJsonExample
public JsonSchemaOutputByJsonExample()
-
-
Method Details
-
getJsonText
Gets the JSON schema, as entered by the user. Must be a valid JSON value.- Returns:
- The JSON schema, as entered by the user.
-
setJsonText
Sets the JSON schema, as entered by the user. Must be a valid JSON value.- Parameters:
jsonText- The JSON schema, as entered by the user.
-