Interface ContextConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContextConfiguration.Builder,,ContextConfiguration> SdkBuilder<ContextConfiguration.Builder,,ContextConfiguration> SdkPojo
- Enclosing class:
ContextConfiguration
@Mutable
@NotThreadSafe
public static interface ContextConfiguration.Builder
extends SdkPojo, CopyableBuilder<ContextConfiguration.Builder,ContextConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionentries(Collection<ContextConfigurationEntry> entries) The context sources for the AI Agent.entries(Consumer<ContextConfigurationEntry.Builder>... entries) The context sources for the AI Agent.entries(ContextConfigurationEntry... entries) The context sources for the AI Agent.maxMergedContextCharacters(Integer maxMergedContextCharacters) Maximum size in characters of the merged context.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
entries
The context sources for the AI Agent. You can configure between 1 and 20 context sources.
- Parameters:
entries- The context sources for the AI Agent. You can configure between 1 and 20 context sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The context sources for the AI Agent. You can configure between 1 and 20 context sources.
- Parameters:
entries- The context sources for the AI Agent. You can configure between 1 and 20 context sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The context sources for the AI Agent. You can configure between 1 and 20 context sources.
This is a convenience method that creates an instance of theContextConfigurationEntry.Builderavoiding the need to create one manually viaContextConfigurationEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentries(List<ContextConfigurationEntry>).- Parameters:
entries- a consumer that will call methods onContextConfigurationEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxMergedContextCharacters
Maximum size in characters of the merged context. Absent means the service merged-context default of 150000 characters applies
- Parameters:
maxMergedContextCharacters- Maximum size in characters of the merged context. Absent means the service merged-context default of 150000 characters applies- Returns:
- Returns a reference to this object so that method calls can be chained together.
-