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