Interface Harness.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Harness.Builder,,Harness> SdkBuilder<Harness.Builder,,Harness> SdkPojo
- Enclosing class:
Harness
-
Method Summary
Modifier and TypeMethodDescriptionallowedTools(String... allowedTools) The allowed tools of the Harness.allowedTools(Collection<String> allowedTools) The allowed tools of the Harness.The ARN of the Harness.default Harness.BuilderauthorizerConfiguration(Consumer<AuthorizerConfiguration.Builder> authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object.authorizerConfiguration(AuthorizerConfiguration authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object.The createdAt time of the Harness.default Harness.Builderenvironment(Consumer<HarnessEnvironmentProvider.Builder> environment) The compute environment on which the Harness runs.environment(HarnessEnvironmentProvider environment) The compute environment on which the Harness runs.default Harness.BuilderenvironmentArtifact(Consumer<HarnessEnvironmentArtifact.Builder> environmentArtifact) The environment artifact (e.g., container) in which the Harness operates.environmentArtifact(HarnessEnvironmentArtifact environmentArtifact) The environment artifact (e.g., container) in which the Harness operates.environmentVariables(Map<String, String> environmentVariables) Environment variables exposed in the environment in which the Harness operates.executionRoleArn(String executionRoleArn) IAM role the Harness assumes when running.failureReason(String failureReason) Reason why create or update operations fail.The ID of the Harness.harnessName(String harnessName) The name of the Harness.maxIterations(Integer maxIterations) The maximum number of iterations in the agent loop allowed before exiting per invocation.The maximum total number of output tokens the agent can generate across all model calls within a single invocation.default Harness.BuilderAgentCore Memory instance configuration for short and long term memory.memory(HarnessMemoryConfiguration memory) AgentCore Memory instance configuration for short and long term memory.default Harness.BuilderThe configuration of the default model used by the Harness.model(HarnessModelConfiguration model) The configuration of the default model used by the Harness.skills(Collection<HarnessSkill> skills) The skills of the Harness.skills(Consumer<HarnessSkill.Builder>... skills) The skills of the Harness.skills(HarnessSkill... skills) The skills of the Harness.The status of the Harness.status(HarnessStatus status) The status of the Harness.systemPrompt(Collection<HarnessSystemContentBlock> systemPrompt) The system prompt of the Harness.systemPrompt(Consumer<HarnessSystemContentBlock.Builder>... systemPrompt) The system prompt of the Harness.systemPrompt(HarnessSystemContentBlock... systemPrompt) The system prompt of the Harness.timeoutSeconds(Integer timeoutSeconds) The maximum duration per invocation.tools(Collection<HarnessTool> tools) The tools of the Harness.tools(Consumer<HarnessTool.Builder>... tools) The tools of the Harness.tools(HarnessTool... tools) The tools of the Harness.default Harness.Buildertruncation(Consumer<HarnessTruncationConfiguration.Builder> truncation) Configuration for truncating model context.truncation(HarnessTruncationConfiguration truncation) Configuration for truncating model context.The updatedAt time of the Harness.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
-
harnessId
The ID of the Harness.
- Parameters:
harnessId- The ID of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
harnessName
The name of the Harness.
- Parameters:
harnessName- The name of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the Harness.
- Parameters:
arn- The ARN of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the Harness.
- Parameters:
status- The status of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the Harness.
- Parameters:
status- The status of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRoleArn
IAM role the Harness assumes when running.
- Parameters:
executionRoleArn- IAM role the Harness assumes when running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The createdAt time of the Harness.
- Parameters:
createdAt- The createdAt time of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The updatedAt time of the Harness.
- Parameters:
updatedAt- The updatedAt time of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
model
The configuration of the default model used by the Harness.
- Parameters:
model- The configuration of the default model used by the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
model
The configuration of the default model used by the Harness.
This is a convenience method that creates an instance of theHarnessModelConfiguration.Builderavoiding the need to create one manually viaHarnessModelConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodel(HarnessModelConfiguration).- Parameters:
model- a consumer that will call methods onHarnessModelConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
systemPrompt
The system prompt of the Harness.
- Parameters:
systemPrompt- The system prompt of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemPrompt
The system prompt of the Harness.
- Parameters:
systemPrompt- The system prompt of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemPrompt
The system prompt of the Harness.
This is a convenience method that creates an instance of theHarnessSystemContentBlock.Builderavoiding the need to create one manually viaHarnessSystemContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosystemPrompt(List<HarnessSystemContentBlock>).- Parameters:
systemPrompt- a consumer that will call methods onHarnessSystemContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tools
The tools of the Harness.
- Parameters:
tools- The tools of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The tools of the Harness.
- Parameters:
tools- The tools of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The tools of the Harness.
This is a convenience method that creates an instance of theHarnessTool.Builderavoiding the need to create one manually viaHarnessTool.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totools(List<HarnessTool>).- Parameters:
tools- a consumer that will call methods onHarnessTool.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
skills
The skills of the Harness.
- Parameters:
skills- The skills of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skills
The skills of the Harness.
- Parameters:
skills- The skills of the Harness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skills
The skills of the Harness.
This is a convenience method that creates an instance of theHarnessSkill.Builderavoiding the need to create one manually viaHarnessSkill.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toskills(List<HarnessSkill>).- Parameters:
skills- a consumer that will call methods onHarnessSkill.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedTools
The allowed tools of the Harness. All tools are allowed by default.
- Parameters:
allowedTools- The allowed tools of the Harness. All tools are allowed by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedTools
The allowed tools of the Harness. All tools are allowed by default.
- Parameters:
allowedTools- The allowed tools of the Harness. All tools are allowed by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncation
Configuration for truncating model context.
- Parameters:
truncation- Configuration for truncating model context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncation
Configuration for truncating model context.
This is a convenience method that creates an instance of theHarnessTruncationConfiguration.Builderavoiding the need to create one manually viaHarnessTruncationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totruncation(HarnessTruncationConfiguration).- Parameters:
truncation- a consumer that will call methods onHarnessTruncationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environment
The compute environment on which the Harness runs.
- Parameters:
environment- The compute environment on which the Harness runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The compute environment on which the Harness runs.
This is a convenience method that creates an instance of theHarnessEnvironmentProvider.Builderavoiding the need to create one manually viaHarnessEnvironmentProvider.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironment(HarnessEnvironmentProvider).- Parameters:
environment- a consumer that will call methods onHarnessEnvironmentProvider.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentArtifact
The environment artifact (e.g., container) in which the Harness operates.
- Parameters:
environmentArtifact- The environment artifact (e.g., container) in which the Harness operates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentArtifact
default Harness.Builder environmentArtifact(Consumer<HarnessEnvironmentArtifact.Builder> environmentArtifact) The environment artifact (e.g., container) in which the Harness operates.
This is a convenience method that creates an instance of theHarnessEnvironmentArtifact.Builderavoiding the need to create one manually viaHarnessEnvironmentArtifact.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironmentArtifact(HarnessEnvironmentArtifact).- Parameters:
environmentArtifact- a consumer that will call methods onHarnessEnvironmentArtifact.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentVariables
Environment variables exposed in the environment in which the Harness operates.
- Parameters:
environmentVariables- Environment variables exposed in the environment in which the Harness operates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizerConfiguration
Sets the value of the AuthorizerConfiguration property for this object.- Parameters:
authorizerConfiguration- The new value for the AuthorizerConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizerConfiguration
default Harness.Builder authorizerConfiguration(Consumer<AuthorizerConfiguration.Builder> authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object. This is a convenience method that creates an instance of theAuthorizerConfiguration.Builderavoiding the need to create one manually viaAuthorizerConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizerConfiguration(AuthorizerConfiguration).- Parameters:
authorizerConfiguration- a consumer that will call methods onAuthorizerConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memory
AgentCore Memory instance configuration for short and long term memory.
- Parameters:
memory- AgentCore Memory instance configuration for short and long term memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
AgentCore Memory instance configuration for short and long term memory.
This is a convenience method that creates an instance of theHarnessMemoryConfiguration.Builderavoiding the need to create one manually viaHarnessMemoryConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemory(HarnessMemoryConfiguration).- Parameters:
memory- a consumer that will call methods onHarnessMemoryConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxIterations
The maximum number of iterations in the agent loop allowed before exiting per invocation.
- Parameters:
maxIterations- The maximum number of iterations in the agent loop allowed before exiting per invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTokens
The maximum total number of output tokens the agent can generate across all model calls within a single invocation.
- Parameters:
maxTokens- The maximum total number of output tokens the agent can generate across all model calls within a single invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutSeconds
The maximum duration per invocation.
- Parameters:
timeoutSeconds- The maximum duration per invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
Reason why create or update operations fail.
- Parameters:
failureReason- Reason why create or update operations fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-