PromptUtils

Utility functions for building prompts.

Properties

Link copied to clipboard
val dummyInstanceCreator: <Error class: unknown class>
Link copied to clipboard
val om: <Error class: unknown class>

Functions

Link copied to clipboard
inline fun <T> jsonExampleOf(): String
fun jsonExampleOf(clazz: Class<*>): String

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