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"
              }
            ]
          }
        ],
        "inferenceConfig": {
          "max_new_tokens": 1000
        },
        "schemaVersion": "messages-v1",
        "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:
      - '550'
      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:
      - 20250328T095545Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-cc955679-a8c45b468f9db1139b274c15;Parent=0d73ce35f14a3d3d;Sampled=1
      amz-sdk-invocation-id:
      - abb47d5d-46b6-4ffe-a595-392788da86be
      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/invoke-with-response-stream
  response:
    body:
      string: !!binary |
[encoded data, 19720 characters]
        SElKS0xNTk9QUSJ9DZpD9w==
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Fri, 28 Mar 2025 09:55:46 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - 9bf238d7-0bf5-4875-8724-e6c2ff941ba0
    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"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "<thinking> The User has requested the current weather in two different locations: Seattle and San Francisco. I can use the \"get_current_weather\" tool to obtain this information. I will make two separate tool calls, one for each location.</thinking>\n"
              },
              {
                "toolUse": {
                  "toolUseId": "d899da89-5a67-4af2-aa54-54f6d2aadd40",
                  "name": "get_current_weather",
                  "input": {
                    "location": "Seattle"
                  }
                }
              },
              {
                "toolUse": {
                  "toolUseId": "be7b9eba-2914-4a0a-ba1d-e863a8281c18",
                  "name": "get_current_weather",
                  "input": {
                    "location": "San Francisco"
                  }
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "toolResult": {
                  "toolUseId": "d899da89-5a67-4af2-aa54-54f6d2aadd40",
                  "content": [
                    {
                      "json": {
                        "weather": "50 degrees and raining"
                      }
                    }
                  ]
                }
              },
              {
                "toolResult": {
                  "toolUseId": "be7b9eba-2914-4a0a-ba1d-e863a8281c18",
                  "content": [
                    {
                      "json": {
                        "weather": "70 degrees and sunny"
                      }
                    }
                  ]
                }
              }
            ]
          }
        ],
        "inferenceConfig": {
          "max_new_tokens": 1000
        },
        "schemaVersion": "messages-v1",
        "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:
      - '1419'
      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:
      - 20250328T095546Z
      X-Amz-Security-Token:
      - test_aws_security_token
      X-Amzn-Trace-Id:
      - Root=1-149e307b-cdc3a5488e73393d9aaca023;Parent=797734885975d04a;Sampled=1
      amz-sdk-invocation-id:
      - 74c51134-6231-4283-9969-3b9d30af7934
      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/invoke-with-response-stream
  response:
    body:
      string: !!binary |
[encoded data, 16405 characters]
        Dhd0RQ==
    headers:
      Connection:
      - keep-alive
      Content-Type:
      - application/vnd.amazon.eventstream
      Date:
      - Fri, 28 Mar 2025 09:55:46 GMT
      Set-Cookie: test_set_cookie
      Transfer-Encoding:
      - chunked
      X-Amzn-Bedrock-Content-Type:
      - application/json
      x-amzn-RequestId:
      - f7f7a941-75c5-4e55-8788-54537019e78d
    status:
      code: 200
      message: OK
version: 1
