withPromptContributor

abstract fun withPromptContributor(promptContributor: PromptContributor): THIS

Returns a copy of this LLM service with an additional prompt contributor.

Return

A new instance with the added contributor

Parameters

promptContributor

The prompt contributor to add