createObject

abstract fun <T> createObject(outputClass: Class<T>, model: Map<String, Any>): T

Create an object of the given type using the given model to render the template and LLM options from context.

Return

the created object of type T

Parameters

T

the type of object to create

outputClass

the class of objects to create

model

the model data to use for template rendering