interactions:
- request:
    body: |-
      {
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "text": "What is the weather in Seattle and San Francisco today? Please give one tool call for Seattle and one for San Francisco",
                "type": "text"
              }
            ]
          }
        ],
        "anthropic_version": "bedrock-2023-05-31",
        "tools": [
          {
            "name": "get_current_weather",
            "description": "Get the current weather in a given location.",
            "input_schema": {
              "type": "object",
              "properties": {
                "location": {
                  "type": "string",
                  "description": "The name of the city"
                }
              },
              "required": [
                "location"
              ]
            }
          }
        ],
        "max_tokens": 1000
      }
    headers:
      Content-Length:
      - '513'
      User-Agent:
      - Boto3/1.35.56 md/Botocore#1.35.56 ua/2.0 os/linux#6.1.0-1034-oem md/arch#x86_64
        lang/python#3.10.12 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.56
      X-Amz-Date:
      - 20250325T163458Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-522fe453-45d148244e3e7762363841b4;Parent=df4528398bc97d09;Sampled=1
      amz-sdk-invocation-id:
      - f8ea0f99-772d-4c2e-985c-7a253e7552e3
      amz-sdk-request:
      - attempt=1
      authorization:
      - Bearer test_aws_authorization
    method: POST
    uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-3-5-sonnet-20240620-v1%3A0/invoke-with-response-stream
  response:
    body:
      string: !!binary |
[encoded data, 10965 characters]
        IiwicCI6ImFiY2RlZmdoaWprbG1ub3BxcnMifeVdPcA=
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Tue, 25 Mar 2025 16:34:59 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - b9ea026a-ac98-4d87-9352-99984599e41f
    status:
      code: 200
      message: OK
- request:
    body: |-
      {
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "text": "What is the weather in Seattle and San Francisco today? Please give one tool call for Seattle and one for San Francisco",
                "type": "text"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "text",
                "text": "Certainly! I'll use the get_current_weather function to check the weather for both Seattle and San Francisco. I'll make two separate tool calls within the same function calls block."
              },
              {
                "type": "tool_use",
                "id": "toolu_bdrk_01Rn7Cbar6a4S7we7h6iUwpM",
                "name": "get_current_weather",
                "input": {
                  "location": "Seattle"
                }
              },
              {
                "type": "tool_use",
                "id": "toolu_bdrk_01MwXis2KpuvHLfK1VMtyJ3p",
                "name": "get_current_weather",
                "input": {
                  "location": "San Francisco"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_bdrk_01Rn7Cbar6a4S7we7h6iUwpM",
                "content": "50 degrees and raining"
              },
              {
                "type": "tool_result",
                "tool_use_id": "toolu_bdrk_01MwXis2KpuvHLfK1VMtyJ3p",
                "content": "70 degrees and sunny"
              }
            ]
          }
        ],
        "anthropic_version": "bedrock-2023-05-31",
        "tools": [
          {
            "name": "get_current_weather",
            "description": "Get the current weather in a given location.",
            "input_schema": {
              "type": "object",
              "properties": {
                "location": {
                  "type": "string",
                  "description": "The name of the city"
                }
              },
              "required": [
                "location"
              ]
            }
          }
        ],
        "max_tokens": 1000
      }
    headers:
      Content-Length:
      - '1291'
      User-Agent:
      - Boto3/1.35.56 md/Botocore#1.35.56 ua/2.0 os/linux#6.1.0-1034-oem md/arch#x86_64
        lang/python#3.10.12 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.56
      X-Amz-Date:
      - 20250325T163502Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-e42f5da2-f049566b669ca481c0e86624;Parent=1bdd6579c05809f1;Sampled=1
      amz-sdk-invocation-id:
      - e8800abb-49e8-4f23-8cf1-b0bc695790ff
      amz-sdk-request:
      - attempt=1
      authorization:
      - Bearer test_aws_authorization
    method: POST
    uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-3-5-sonnet-20240620-v1%3A0/invoke-with-response-stream
  response:
    body:
      string: !!binary |
[encoded data, 11645 characters]
        UVJTVFVWV1hZWjAxMjM0NSJ92l5aXQ==
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Tue, 25 Mar 2025 16:35:03 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - 5712a4fc-af29-49e3-878a-c10a7cf8236a
    status:
      code: 200
      message: OK
version: 1
