Interface AgentCoreRuntimeInvocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgentCoreRuntimeInvocation.Builder,,AgentCoreRuntimeInvocation> SdkBuilder<AgentCoreRuntimeInvocation.Builder,,AgentCoreRuntimeInvocation> SdkPojo
- Enclosing class:
AgentCoreRuntimeInvocation
@Mutable
@NotThreadSafe
public static interface AgentCoreRuntimeInvocation.Builder
extends SdkPojo, CopyableBuilder<AgentCoreRuntimeInvocation.Builder,AgentCoreRuntimeInvocation>
-
Method Summary
Modifier and TypeMethodDescriptionagentRuntimeEndpointArn(String agentRuntimeEndpointArn) The Amazon Resource Name (ARN) of the agent runtime endpoint to invoke.requestTemplate(String requestTemplate) A JSON object template for the request payload sent to the agent for each turn.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
-
agentRuntimeEndpointArn
The Amazon Resource Name (ARN) of the agent runtime endpoint to invoke. Specify an endpoint in the same account and Region as the batch evaluation. The service requires the endpoint and its agent runtime version to be ready. The agent runtime must use the HTTP protocol and IAM inbound authorization.
- Parameters:
agentRuntimeEndpointArn- The Amazon Resource Name (ARN) of the agent runtime endpoint to invoke. Specify an endpoint in the same account and Region as the batch evaluation. The service requires the endpoint and its agent runtime version to be ready. The agent runtime must use the HTTP protocol and IAM inbound authorization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestTemplate
A JSON object template for the request payload sent to the agent for each turn. The template must contain the placeholder
{{turn.input}}exactly once, as the complete value of a JSON string and not as a field name. The service replaces the placeholder with the input of the turn. If the input isn't a string, the service inserts it as a JSON value. If you don't specify a template, the service uses{"prompt": "{{turn.input}}"}.- Parameters:
requestTemplate- A JSON object template for the request payload sent to the agent for each turn. The template must contain the placeholder{{turn.input}}exactly once, as the complete value of a JSON string and not as a field name. The service replaces the placeholder with the input of the turn. If the input isn't a string, the service inserts it as a JSON value. If you don't specify a template, the service uses{"prompt": "{{turn.input}}"}.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-