Interface AgentCoreRuntimeInvocation.Builder

  • Method Details

    • agentRuntimeEndpointArn

      AgentCoreRuntimeInvocation.Builder agentRuntimeEndpointArn(String 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

      AgentCoreRuntimeInvocation.Builder requestTemplate(String 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.