interactions:
- request:
    body: |-
      {
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "text": "What is the weather in Seattle and San Francisco today?"
              }
            ]
          }
        ],
        "toolConfig": {
          "tools": [
            {
              "toolSpec": {
                "name": "get_current_weather",
                "description": "Get the current weather in a given location.",
                "inputSchema": {
                  "json": {
                    "type": "object",
                    "properties": {
                      "location": {
                        "type": "string",
                        "description": "The name of the city"
                      }
                    },
                    "required": [
                      "location"
                    ]
                  }
                }
              }
            }
          ]
        }
      }
    headers:
      Content-Length:
      - '409'
      Content-Type:
      - application/json
      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:
      - 20250226T110349Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-14730244-640b58229ef56a614d4a069d;Parent=13190044e1ff46a8;Sampled=1
      amz-sdk-invocation-id:
      - 5073899c-6d97-4455-9a8b-fb76fa8d3246
      amz-sdk-request:
      - attempt=1
      authorization:
      - Bearer test_aws_authorization
    method: POST
    uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.nova-micro-v1%3A0/converse-stream
  response:
    body:
      string: !!binary |
[encoded data, 17000 characters]
        bFRva2VucyI6NjEwfX3rWRkN
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Wed, 26 Feb 2025 11:03:49 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      x-amzn-RequestId:
      - b386c247-d072-4cc9-a14d-4d63ef2952ca
    status:
      code: 200
      message: OK
- request:
    body: |-
      {
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "text": "What is the weather in Seattle and San Francisco today?"
              }
            ]
          },
          {
            "content": [
              {
                "text": "<thinking> The User has asked for the current weather in two different cities: Seattle and San Francisco. To provide this information, I will need to use the `get_current_weather` tool twice, once for each city. </thinking>\n"
              },
              {
                "toolUse": {
                  "toolUseId": "tooluse_IIpMFTgaRVGyI7x4sJfKzQ",
                  "name": "get_current_weather",
                  "input": {
                    "location": "Seattle"
                  }
                }
              },
              {
                "toolUse": {
                  "toolUseId": "tooluse_KZPBYYUtS72Um_JDI8hTow",
                  "name": "get_current_weather",
                  "input": {
                    "location": "San Francisco"
                  }
                }
              }
            ],
            "role": "assistant"
          },
          {
            "role": "user",
            "content": [
              {
                "toolResult": {
                  "content": [
                    {
                      "json": {
                        "weather": "50 degrees and raining"
                      }
                    }
                  ],
                  "toolUseId": "tooluse_IIpMFTgaRVGyI7x4sJfKzQ"
                }
              },
              {
                "toolResult": {
                  "content": [
                    {
                      "json": {
                        "weather": "70 degrees and sunny"
                      }
                    }
                  ],
                  "toolUseId": "tooluse_KZPBYYUtS72Um_JDI8hTow"
                }
              }
            ]
          }
        ],
        "toolConfig": {
          "tools": [
            {
              "toolSpec": {
                "name": "get_current_weather",
                "description": "Get the current weather in a given location.",
                "inputSchema": {
                  "json": {
                    "type": "object",
                    "properties": {
                      "location": {
                        "type": "string",
                        "description": "The name of the city"
                      }
                    },
                    "required": [
                      "location"
                    ]
                  }
                }
              }
            }
          ]
        }
      }
    headers:
      Content-Length:
      - '1227'
      Content-Type:
      - application/json
      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:
      - 20250226T110350Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-a7f289c8-1900bcc14d30a430fe81c6c0;Parent=19191d335b8dee7e;Sampled=1
      amz-sdk-invocation-id:
      - 4a1d4e1e-7212-4ad8-bc30-46a0dd038dfb
      amz-sdk-request:
      - attempt=1
      authorization:
      - Bearer test_aws_authorization
    method: POST
    uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.nova-micro-v1%3A0/converse-stream
  response:
    body:
      string: !!binary |
[encoded data, 17000 characters]
        a2VucyI6NjE1fX0yjOMb
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Wed, 26 Feb 2025 11:03:50 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      x-amzn-RequestId:
      - 3b6454ed-7ed2-4289-b2ef-d41a4b135f4e
    status:
      code: 200
      message: OK
version: 1
