Ergo Field GuideAWS product page
Menu

Amazon Ergo playground and Bedrock request builder

Build and export a Bedrock Converse request in your browser. To run Amazon Ergo and receive a model response, use your own AWS account.

Build a request you can run

Compose a request

This limit includes reasoning and the final answer. Your prompt stays in this tab while you edit.

Converse request

ergo-request.json

{
  "modelId": "global.amazon.ergo-1.0",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "text": "Review the following Python 3 change to a CSV importer. It must preserve empty fields, quoted commas, and quote characters inside field values. For each regression you find, give a minimal input, the expected list of fields, the actual result, and a Python assertion that would catch it.\n\nimport csv\n\ndef original(row):\n    return next(csv.reader([row]))\n\ndef proposed(row):\n    fields = original(row)\n    return [value.strip('\"') for value in fields if value != \"\"]\n\n# These two existing tests pass for both versions.\nassert proposed(\"Ada,Paris\") == [\"Ada\", \"Paris\"]\nassert proposed('\"Doe, Jane\",Boston') == [\"Doe, Jane\", \"Boston\"]\n\nCheck a trailing empty field and a field whose value ends in a literal quotation mark. Explain which cleanup operation changes each result."
        }
      ]
    }
  ],
  "inferenceConfig": {
    "maxTokens": 8192
  }
}

Run it in your AWS account

Save the JSON as ergo-request.json. From the same directory, run this command with an AWS CLI profile that can invoke the model in Bedrock. AWS bills your account when you run it.

aws bedrock-runtime converse --region us-west-2 --cli-input-json file://ergo-request.json

AWS CLI command reference · Supported profiles and regions

Run the request in Bedrock

Download the JSON to invoke Converse from the AWS CLI. To try the prompt interactively, sign in to the AWS Bedrock console, open Chat / Text playground, select Amazon Ergo, and choose an available inference profile. AWS bills inference to the account that sends the request. AWS console instructions.