withExamples

Convenience method to add multiple examples from a list or other iterable. Each example will be added as a prompt contributor to improve LLM output quality.


open fun withExamples(vararg examples: ObjectCreationExample<T>): ObjectCreator<T>

Convenience method to add multiple examples using vararg syntax. Each example will be added as a prompt contributor to improve LLM output quality.