Object PromptUtils

  • All Implemented Interfaces:

    
    public class PromptUtils
    
                        

    Utility functions for building prompts.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String jsonExampleOf(Class<?> clazz) Generates a JSON example of the given class with dummy data.
      final <T extends Any> String jsonExampleOf() Generates a JSON example of the given class with dummy data.
      final DummyInstanceCreator getDummyInstanceCreator()
      final ObjectMapper getOm()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • jsonExampleOf

         final static String jsonExampleOf(Class<?> clazz)

        Generates a JSON example of the given class with dummy data. Makes few shot examples easier to create.

        Parameters:
        clazz - The class to generate a JSON example for.
      • jsonExampleOf

         final <T extends Any> String jsonExampleOf()

        Generates a JSON example of the given class with dummy data. Makes few shot examples easier to create.

      • getOm

         final ObjectMapper getOm()