withExamples

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

Return

this instance for method chaining

Parameters

examples

the examples to add


open fun withExamples(vararg examples: CreationExample<T>): PromptRunner.Creating<T>

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

Return

this instance for method chaining

Parameters

examples

the examples to add