installPromptOptimization

fun GraphAIAgent.FeatureContext.installPromptOptimization(configure: PromptPromptOptimizationFeatureConfig.() -> Unit = {})

Installs the PromptOptimizationFeature with the given configuration.

Makes the OptimizationArtifact available to all optimizable subgraphs via agent storage. If the artifact includes strategy-level instruction or demonstrations, those are applied to the prompt at strategy start.

Parameters

configure

Lambda to set the artifact and prompt insertion defaults.