Class JsonSchemaOutputByJsonExample
- java.lang.Object
-
- de.xima.fc.prompt.service.support.JsonSchemaOutputByJsonExample
-
- All Implemented Interfaces:
Serializable
public final class JsonSchemaOutputByJsonExample extends Object implements 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 ifdefinitionTypeisBY_JSON_EXAMPLE.- Since:
- 8.5.0
- See Also:
JsonSchemaOutput, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaOutputByJsonExample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJsonText()Gets the JSON schema, as entered by the user.voidsetJsonText(String jsonText)Sets the JSON schema, as entered by the user.
-
-
-
Method Detail
-
getJsonText
public String 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
public void setJsonText(String jsonText)
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.
-
-