MemoryConfigurationProperty
Struct External
Details of the memory configuration.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const memoryConfigurationProperty: bedrock.CfnAgent.MemoryConfigurationProperty = {
enabledMemoryTypes: ['enabledMemoryTypes'],
sessionSummaryConfiguration: {
maxRecentSessions: 123,
},
storageDays: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
memory_configuration_property = bedrock.CfnAgent.MemoryConfigurationProperty(
enabled_memory_types=["enabledMemoryTypes"],
session_summary_configuration=bedrock.CfnAgent.SessionSummaryConfigurationProperty(
max_recent_sessions=123
),
storage_days=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
MemoryConfigurationProperty memoryConfigurationProperty = MemoryConfigurationProperty.builder()
.enabledMemoryTypes(List.of("enabledMemoryTypes"))
.sessionSummaryConfiguration(SessionSummaryConfigurationProperty.builder()
.maxRecentSessions(123)
.build())
.storageDays(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var memoryConfigurationProperty = new MemoryConfigurationProperty {
EnabledMemoryTypes = new [] { "enabledMemoryTypes" },
SessionSummaryConfiguration = new SessionSummaryConfigurationProperty {
MaxRecentSessions = 123
},
StorageDays = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
memoryConfigurationProperty := &MemoryConfigurationProperty{
EnabledMemoryTypes: []*string{
jsii.String("enabledMemoryTypes"),
},
SessionSummaryConfiguration: &SessionSummaryConfigurationProperty{
MaxRecentSessions: jsii.Number(123),
},
StorageDays: jsii.Number(123),
}
Properties
enabledMemoryTypesoptionalstring[]enabled_memory_typesoptionaltyping.List[str]enabledMemoryTypesoptionalList<String>EnabledMemoryTypesoptionalstring[]EnabledMemoryTypesoptional*[]*string #The type of memory that is stored.
sessionSummaryConfigurationoptionalIResolvable | CfnAgent.session_summary_configurationoptionaltyping.Union[IResolvable, SessionSummaryConfigurationProperty]sessionSummaryConfigurationoptionalIResolvableSessionSummaryConfigurationoptionalIResolvableSessionSummaryConfigurationoptionalinterface{} #Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
storageDaysoptionalnumberstorage_daysoptionalint | floatstorageDaysoptionalNumberStorageDaysoptionaldoubleStorageDaysoptional*float64 #The number of days the agent is configured to retain the conversational context.