Interface PromptCreationConfigurations.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PromptCreationConfigurations.Builder,
,PromptCreationConfigurations> SdkBuilder<PromptCreationConfigurations.Builder,
,PromptCreationConfigurations> SdkPojo
- Enclosing class:
PromptCreationConfigurations
@Mutable
@NotThreadSafe
public static interface PromptCreationConfigurations.Builder
extends SdkPojo, CopyableBuilder<PromptCreationConfigurations.Builder,PromptCreationConfigurations>
-
Method Summary
Modifier and TypeMethodDescriptionexcludePreviousThinkingSteps
(Boolean excludePreviousThinkingSteps) Iftrue
, the service removes any content between<thinking>
tags from previous conversations in an agent session.previousConversationTurnsToInclude
(Integer previousConversationTurnsToInclude) The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
excludePreviousThinkingSteps
PromptCreationConfigurations.Builder excludePreviousThinkingSteps(Boolean excludePreviousThinkingSteps) If
true
, the service removes any content between<thinking>
tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value isfalse
.- Parameters:
excludePreviousThinkingSteps
- Iftrue
, the service removes any content between<thinking>
tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousConversationTurnsToInclude
PromptCreationConfigurations.Builder previousConversationTurnsToInclude(Integer previousConversationTurnsToInclude) The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session.
- Parameters:
previousConversationTurnsToInclude
- The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-