---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 622
    host: ""
    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"What''s the weather in Florence, Italy?","cache_control":{"type":"ephemeral"},"type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","system":[{"text":"You are a helpful assistant","cache_control":{"type":"ephemeral"},"type":"text"}],"thinking":{"budget_tokens":4000,"type":"enabled"},"tool_choice":{"disable_parallel_tool_use":false,"type":"auto"},"tools":[{"input_schema":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://api.anthropic.com/v1/messages
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"model":"claude-sonnet-4-20250514","id":"msg_01FQjfLjtpK1x2eWB3ywwPbJ","type":"message","role":"assistant","content":[{"type":"thinking","thinking":"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The user has provided a specific location: \"Florence, Italy\". I have all the required parameters to make this function call.","signature":"EqoDCkYICxgCKkBbUa2TxSz9pQkxOwba97/2WFKQH64dFiW/RaX1YnwR4s07oEqouxOS9NZOQcdnFfAFkBBEYMzb5Xp+qQVDn9GyEgx4adxqDhij5J3e7UoaDBGn7f7OrRnK/4vzCiIwjQqY7nvv0XdkOhUBjSx1Dp1MH7Sp3mSTdXIjW6gRSnQ7HWLGFUs8E7E+aTaOOzJoKpECLa3BfMiu+gjqTQhuCXOBRVWEw4J/eIwoDQaYB144DQfeXuXx0gcNVrht/N14uqKoRsXL9jvYWzIR4rJRL+MuQabUVtgl/VR3HVy4D5ae8ZAYdp+HjAjd3bM/2EEBcbwgKO+YFYWklPB96wQhhjW0YVOQDYAlzcvuwEE1lkNXjPsqP19kaFmjh5P+J6JEff0gmtxfrk8uvxclz2Y28/8tTM+xniKlskCt+RA4EgYAWOMNSFCZ3pgEQwGkAyjzLUzju5pVsud9NpFkKKhGSWs1fk0LPKzVHgXy4xjQYdRsoDeLRJP3ZUwk9hGsGmVr64DZhvwawIXe5oatWkyZgqWt076HScmjWdKeGuQSL7pbz4JHGAE="},{"type":"tool_use","id":"toolu_01NNKFSpy3EbeMEUzD6yHGCV","name":"weather","input":{"location":"Florence, Italy"},"caller":{"type":"direct"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":424,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":110,"service_tier":"standard","inference_geo":"not_available"}}'
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 4.619574417s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1830
    host: ""
    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"What''s the weather in Florence, Italy?","type":"text"}],"role":"user"},{"content":[{"signature":"EqoDCkYICxgCKkBbUa2TxSz9pQkxOwba97/2WFKQH64dFiW/RaX1YnwR4s07oEqouxOS9NZOQcdnFfAFkBBEYMzb5Xp+qQVDn9GyEgx4adxqDhij5J3e7UoaDBGn7f7OrRnK/4vzCiIwjQqY7nvv0XdkOhUBjSx1Dp1MH7Sp3mSTdXIjW6gRSnQ7HWLGFUs8E7E+aTaOOzJoKpECLa3BfMiu+gjqTQhuCXOBRVWEw4J/eIwoDQaYB144DQfeXuXx0gcNVrht/N14uqKoRsXL9jvYWzIR4rJRL+MuQabUVtgl/VR3HVy4D5ae8ZAYdp+HjAjd3bM/2EEBcbwgKO+YFYWklPB96wQhhjW0YVOQDYAlzcvuwEE1lkNXjPsqP19kaFmjh5P+J6JEff0gmtxfrk8uvxclz2Y28/8tTM+xniKlskCt+RA4EgYAWOMNSFCZ3pgEQwGkAyjzLUzju5pVsud9NpFkKKhGSWs1fk0LPKzVHgXy4xjQYdRsoDeLRJP3ZUwk9hGsGmVr64DZhvwawIXe5oatWkyZgqWt076HScmjWdKeGuQSL7pbz4JHGAE=","thinking":"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The user has provided a specific location: \"Florence, Italy\". I have all the required parameters to make this function call.","type":"thinking"},{"id":"toolu_01NNKFSpy3EbeMEUzD6yHGCV","input":{"location":"Florence, Italy"},"name":"weather","cache_control":{"type":"ephemeral"},"type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01NNKFSpy3EbeMEUzD6yHGCV","cache_control":{"type":"ephemeral"},"content":[{"text":"40 C","type":"text"}],"type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-20250514","system":[{"text":"You are a helpful assistant","cache_control":{"type":"ephemeral"},"type":"text"}],"thinking":{"budget_tokens":4000,"type":"enabled"},"tool_choice":{"disable_parallel_tool_use":false,"type":"auto"},"tools":[{"input_schema":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://api.anthropic.com/v1/messages
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"model":"claude-sonnet-4-20250514","id":"msg_01Ua5NLrjKTBhiNRiu2jkoCp","type":"message","role":"assistant","content":[{"type":"text","text":"The current weather in Florence, Italy is 40°C (104°F). That''s quite warm! It sounds like Florence is experiencing very hot weather right now."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":549,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":37,"service_tier":"standard","inference_geo":"not_available"}}'
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 1.74174825s
