Package com.embabel.agent.prompt
Object PromptUtils
-
- All Implemented Interfaces:
public class PromptUtilsUtility functions for building prompts.
-
-
Field Summary
Fields Modifier and Type Field Description private final DummyInstanceCreatordummyInstanceCreatorprivate final ObjectMapperompublic final static PromptUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringjsonExampleOf(Class<?> clazz)Generates a JSON example of the given class with dummy data. final <T extends Any> StringjsonExampleOf()Generates a JSON example of the given class with dummy data. final DummyInstanceCreatorgetDummyInstanceCreator()final ObjectMappergetOm()-
-
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.
-
getDummyInstanceCreator
final DummyInstanceCreator getDummyInstanceCreator()
-
getOm
final ObjectMapper getOm()
-
-
-
-