Interface AgentVersion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AgentVersion.Builder,
,AgentVersion> SdkBuilder<AgentVersion.Builder,
,AgentVersion> SdkPojo
- Enclosing class:
AgentVersion
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the agent that the version belongs to.agentCollaboration
(String agentCollaboration) The agent's collaboration settings.agentCollaboration
(AgentCollaboration agentCollaboration) The agent's collaboration settings.The unique identifier of the agent that the version belongs to.The name of the agent that the version belongs to.agentResourceRoleArn
(String agentResourceRoleArn) The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.agentStatus
(String agentStatus) The status of the agent that the version belongs to.agentStatus
(AgentStatus agentStatus) The status of the agent that the version belongs to.The time at which the version was created.customerEncryptionKeyArn
(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.description
(String description) The description of the version.failureReasons
(String... failureReasons) A list of reasons that the API operation on the version failed.failureReasons
(Collection<String> failureReasons) A list of reasons that the API operation on the version failed.foundationModel
(String foundationModel) The foundation model that the version invokes.default AgentVersion.Builder
guardrailConfiguration
(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration) Details about the guardrail associated with the agent.guardrailConfiguration
(GuardrailConfiguration guardrailConfiguration) Details about the guardrail associated with the agent.idleSessionTTLInSeconds
(Integer idleSessionTTLInSeconds) The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.instruction
(String instruction) The instructions provided to the agent.default AgentVersion.Builder
memoryConfiguration
(Consumer<MemoryConfiguration.Builder> memoryConfiguration) Contains details of the memory configuration on the version of the agent.memoryConfiguration
(MemoryConfiguration memoryConfiguration) Contains details of the memory configuration on the version of the agent.default AgentVersion.Builder
promptOverrideConfiguration
(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration) Contains configurations to override prompt templates in different parts of an agent sequence.promptOverrideConfiguration
(PromptOverrideConfiguration promptOverrideConfiguration) Contains configurations to override prompt templates in different parts of an agent sequence.recommendedActions
(String... recommendedActions) A list of recommended actions to take for the failed API operation on the version to succeed.recommendedActions
(Collection<String> recommendedActions) A list of recommended actions to take for the failed API operation on the version to succeed.The time at which the version was last updated.The version number.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
-
agentArn
The Amazon Resource Name (ARN) of the agent that the version belongs to.
- Parameters:
agentArn
- The Amazon Resource Name (ARN) of the agent that the version belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentCollaboration
The agent's collaboration settings.
- Parameters:
agentCollaboration
- The agent's collaboration settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentCollaboration
The agent's collaboration settings.
- Parameters:
agentCollaboration
- The agent's collaboration settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentId
The unique identifier of the agent that the version belongs to.
- Parameters:
agentId
- The unique identifier of the agent that the version belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentName
The name of the agent that the version belongs to.
- Parameters:
agentName
- The name of the agent that the version belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentResourceRoleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
- Parameters:
agentResourceRoleArn
- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentStatus
The status of the agent that the version belongs to.
- Parameters:
agentStatus
- The status of the agent that the version belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentStatus
The status of the agent that the version belongs to.
- Parameters:
agentStatus
- The status of the agent that the version belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The time at which the version was created.
- Parameters:
createdAt
- The time at which the version was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
- Parameters:
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the version.
- Parameters:
description
- The description of the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
A list of reasons that the API operation on the version failed.
- Parameters:
failureReasons
- A list of reasons that the API operation on the version failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
A list of reasons that the API operation on the version failed.
- Parameters:
failureReasons
- A list of reasons that the API operation on the version failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
foundationModel
The foundation model that the version invokes.
- Parameters:
foundationModel
- The foundation model that the version invokes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
Details about the guardrail associated with the agent.
- Parameters:
guardrailConfiguration
- Details about the guardrail associated with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
default AgentVersion.Builder guardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration) Details about the guardrail associated with the agent.
This is a convenience method that creates an instance of theGuardrailConfiguration.Builder
avoiding the need to create one manually viaGuardrailConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toguardrailConfiguration(GuardrailConfiguration)
.- Parameters:
guardrailConfiguration
- a consumer that will call methods onGuardrailConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
idleSessionTTLInSeconds
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
- Parameters:
idleSessionTTLInSeconds
- The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
The instructions provided to the agent.
- Parameters:
instruction
- The instructions provided to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryConfiguration
Contains details of the memory configuration on the version of the agent.
- Parameters:
memoryConfiguration
- Contains details of the memory configuration on the version of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryConfiguration
default AgentVersion.Builder memoryConfiguration(Consumer<MemoryConfiguration.Builder> memoryConfiguration) Contains details of the memory configuration on the version of the agent.
This is a convenience method that creates an instance of theMemoryConfiguration.Builder
avoiding the need to create one manually viaMemoryConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryConfiguration(MemoryConfiguration)
.- Parameters:
memoryConfiguration
- a consumer that will call methods onMemoryConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
promptOverrideConfiguration
AgentVersion.Builder promptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration) Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.
- Parameters:
promptOverrideConfiguration
- Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptOverrideConfiguration
default AgentVersion.Builder promptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration) Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.
This is a convenience method that creates an instance of thePromptOverrideConfiguration.Builder
avoiding the need to create one manually viaPromptOverrideConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptOverrideConfiguration(PromptOverrideConfiguration)
.- Parameters:
promptOverrideConfiguration
- a consumer that will call methods onPromptOverrideConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedActions
A list of recommended actions to take for the failed API operation on the version to succeed.
- Parameters:
recommendedActions
- A list of recommended actions to take for the failed API operation on the version to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActions
A list of recommended actions to take for the failed API operation on the version to succeed.
- Parameters:
recommendedActions
- A list of recommended actions to take for the failed API operation on the version to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The time at which the version was last updated.
- Parameters:
updatedAt
- The time at which the version was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The version number.
- Parameters:
version
- The version number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-