Interface AgentCoreRuntimeTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgentCoreRuntimeTarget.Builder,,AgentCoreRuntimeTarget> SdkBuilder<AgentCoreRuntimeTarget.Builder,,AgentCoreRuntimeTarget> SdkPojo
- Enclosing class:
AgentCoreRuntimeTarget
@Mutable
@NotThreadSafe
public static interface AgentCoreRuntimeTarget.Builder
extends SdkPojo, CopyableBuilder<AgentCoreRuntimeTarget.Builder,AgentCoreRuntimeTarget>
-
Method Summary
Modifier and TypeMethodDescriptionendpointArn(String endpointArn) The ARN of the runtime endpoint.requestTemplate(String requestTemplate) The request sent to the agent for each turn, in the AgentCore datasetExecutionConfig format: a JSON object containing exactly one {{turn.input}} as a complete string value.The runtime version the endpoint pointed to.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
-
endpointArn
The ARN of the runtime endpoint. Must belong to the experiment's runtimeArn.
- Parameters:
endpointArn- The ARN of the runtime endpoint. Must belong to the experiment's runtimeArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestTemplate
The request sent to the agent for each turn, in the AgentCore datasetExecutionConfig format: a JSON object containing exactly one {{turn.input}} as a complete string value. The AgentCore default is {"prompt":"{{turn.input}}"}. An invalid template fails with a ValidationException.
- Parameters:
requestTemplate- The request sent to the agent for each turn, in the AgentCore datasetExecutionConfig format: a JSON object containing exactly one {{turn.input}} as a complete string value. The AgentCore default is {"prompt":"{{turn.input}}"}. An invalid template fails with a ValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The runtime version the endpoint pointed to. For hosted runs, output only and resolved when the run starts. Optional for reported runs.
- Parameters:
version- The runtime version the endpoint pointed to. For hosted runs, output only and resolved when the run starts. Optional for reported runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-