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 if definitionType is BY_JSON_EXAMPLE.
Since:
8.5.0
See Also:
  • Constructor Details

    • JsonSchemaOutputByJsonExample

      public JsonSchemaOutputByJsonExample()
  • Method Details

    • 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.