PromptInsertionDefaults

@Serializable
data class PromptInsertionDefaults(val fewShotPromptType: FewShotPromptType = FewShotPromptType.AS_MESSAGE_HISTORY, val demonstrationFormat: DemonstrationFormat = DemonstrationFormat.FULL_TRACE)

Default settings for how demonstrations are inserted into prompts.

These defaults are set at the feature level via ai.koog.agents.optimization.features.PromptOptimizationFeature and propagated to all optimizable subgraphs via agent storage. Individual subgraphs can override these defaults by specifying explicit values in optimizableSubgraphWithTask.

Constructors

Link copied to clipboard
constructor(fewShotPromptType: FewShotPromptType = FewShotPromptType.AS_MESSAGE_HISTORY, demonstrationFormat: DemonstrationFormat = DemonstrationFormat.FULL_TRACE)

Types

Link copied to clipboard
object Companion

Holds the agent-storage key under which these defaults are propagated to subgraphs.

Properties

Link copied to clipboard

Level of detail for each demonstration (compact I/O or full trace).

Link copied to clipboard

How demonstrations are inserted (as a single string or as messages).