Interface OverrideConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
OverrideConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.492Z") @Stability(Stable) public interface OverrideConfig extends software.amazon.jsii.JsiiSerializable
Configuration for overriding model and prompt template.

Example:

 // Create a custom semantic memory strategy
 ManagedMemoryStrategy customSemanticStrategy = MemoryStrategy.usingSemantic(ManagedStrategyProps.builder()
         .strategyName("customSemanticStrategy")
         .description("Custom semantic memory strategy")
         .namespaces(List.of("/custom/strategies/{memoryStrategyId}/actors/{actorId}"))
         .customConsolidation(OverrideConfig.builder()
                 .model(FoundationModel.fromFoundationModelId(this, "ConsolidationModel", FoundationModelIdentifier.ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0))
                 .appendToPrompt("Custom consolidation prompt for semantic memory")
                 .build())
         .customExtraction(OverrideConfig.builder()
                 .model(FoundationModel.fromFoundationModelId(this, "ExtractionModel", FoundationModelIdentifier.ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0))
                 .appendToPrompt("Custom extraction prompt for semantic memory")
                 .build())
         .build());
 // Create memory with custom strategy
 Memory memory = Memory.Builder.create(this, "MyMemory")
         .memoryName("my-custom-memory")
         .description("Memory with custom strategy")
         .expirationDuration(Duration.days(90))
         .memoryStrategies(List.of(customSemanticStrategy))
         .build();