withSystemPrompt

Create a copy with a dynamic system prompt creator. The creator receives the execution context and input string.


open fun withSystemPrompt(prompt: String): THIS

Create a copy with a fixed system prompt. This is a convenience method that delegates to withSystemPrompt with a creator.