Annotation Type PromptConfigJsonField


  • @Documented
    @Target(FIELD)
    @Retention(RUNTIME)
    public @interface PromptConfigJsonField
    Optional annotation for customizing instance fields when serializing and deserializing prompt configuration instances. Intended for use with the JsonConfig mixin for prompt service handlers. If you annotate a field in your model class with this annotation, you can customize the serialization and deserialization process for that field.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String name
      The name of the field in the serialized JSON object.
    • Element Detail

      • name

        String name
        The name of the field in the serialized JSON object. Defaults to the name of the instance field if empty.
        Returns:
        The name of the field in the serialized JSON object.
        Default:
        ""