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:
      - 20250325T163434Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-9caf13be-645b4e873de5413a21fd5559;Parent=86c9f4d15772db4a;Sampled=1
      amz-sdk-invocation-id:
      - cb26d944-c107-4af2-9e43-c712c373e0f2
      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, 11305 characters]
        uDbBJw==
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Tue, 25 Mar 2025 16:34:35 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - 17808f83-6c84-4f3d-9e81-4007fd8f848e
    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 function calls within the same block for these cities."
              },
              {
                "type": "tool_use",
                "id": "toolu_bdrk_01KatiGijVFb9yuMPcnVk38e",
                "name": "get_current_weather",
                "input": {
                  "location": "Seattle"
                }
              },
              {
                "type": "tool_use",
                "id": "toolu_bdrk_01Tzb35EydKHWz4UZP3puTbF",
                "name": "get_current_weather",
                "input": {
                  "location": "San Francisco"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_bdrk_01KatiGijVFb9yuMPcnVk38e",
                "content": "50 degrees and raining"
              },
              {
                "type": "tool_result",
                "tool_use_id": "toolu_bdrk_01Tzb35EydKHWz4UZP3puTbF",
                "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:
      - '1297'
      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:
      - 20250325T163438Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-feef9d11-6a09175d24533ea9968f07ff;Parent=952177b027cf0daa;Sampled=1
      amz-sdk-invocation-id:
      - 5ac7874b-78a1-4e44-8fa5-7afeabdc1343
      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, 13345 characters]
        RUZHSElKS0xNTk8ifQgFpq0=
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Tue, 25 Mar 2025 16:34:38 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - 8376cb65-4e45-4f96-a8fc-31cefffb8ca6
    status:
      code: 200
      message: OK
version: 1
