rewritePrompt

fun rewritePrompt(body: (prompt: Prompt) -> Prompt)(source)

Rewrites the current prompt by applying a transformation function.