---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 481
    host: generativelanguage.googleapis.com
    body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence?\"}],\"role\":\"user\"}],\"generationConfig\":{},\"systemInstruction\":{\"parts\":[{\"text\":\"You are a helpful assistant\"}],\"role\":\"user\"},\"toolConfig\":{\"functionCallingConfig\":{\"mode\":\"AUTO\"}},\"tools\":[{\"functionDeclarations\":[{\"description\":\"Get weather information for a location\",\"name\":\"weather\",\"parameters\":{\"properties\":{\"location\":{\"description\":\"the city\",\"type\":\"STRING\"}},\"required\":[\"location\"],\"type\":\"OBJECT\"}}]}]}\n"
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.23.0 gl-go/go1.24.5
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: "{\n  \"candidates\": [\n    {\n      \"content\": {\n        \"parts\": [\n          {\n            \"functionCall\": {\n              \"name\": \"weather\",\n              \"args\": {\n                \"location\": \"Florence\"\n              }\n            },\n            \"thoughtSignature\": \"CpkEAdHtim+EtnrVkWr/1MyuKGUtmnac2ihex9vY7ws2/Y2MPtaieXMdvYOE0YwAA3oV6VELDoHoz4++dx3qGkTwnxMachj5W+EuyQ0FaXtPP/OrMZDEmGVjhQZ0ADj9Q/8BJ/J6KonretAC3baPhvUCCmnQy4/5UPoVkcmQJkusUABUnCQoXQMv1nIEoQZDa3OWw3kZzHrIlk5/1/vaWqEVPtQ76EHOeQic3C3waGzDtmbqV4f9Ygy2ImLNfB8DlPq3JBfG/gkGaxA6RiOW3yRoRBdIxpsaPmzEyt1AZpNzJR0Jv6HuzjM1bv4tcjcTQwXZagjkFC/TkJ8wwDhhG0L78rCFguZZJhBVULYWXiBpIkWzhemreSHE5q8X5nzNxV2BIddYXEMWjy31IimBPYzmH32ithFjpDuW2T5I/4MYhCB8BlBw++ii5xbIL/WfFDzJwRXaWNx2/cmcT9Un+AruUfHFDUGCFeOCqq/1daPk1qQkyZY6d3T7dx9dt1vKICqXSETtoZMfuBdre931vOmklm7oRrWROKIz/tIBXU4NvWf9wT1dDWegusxLMl76UHSb2//ArXtvj1FbY2loas7VpxSW0zIeRmsGQhY5/hskKk917ppNKNvUSqX7OlHP9rW+/OIuxQpGj3t8PNtoqGQsO1FDrYhNq/M/56jVt6rkkYzRffno0tvDiJa2fySVFo7F0m2XNgGyavbQ\"\n          }\n        ],\n        \"role\": \"model\"\n      },\n      \"finishReason\": \"STOP\",\n      \"index\": 0\n    }\n  ],\n  \"usageMetadata\": {\n    \"promptTokenCount\": 52,\n    \"candidatesTokenCount\": 13,\n    \"totalTokenCount\": 186,\n    \"promptTokensDetails\": [\n      {\n        \"modality\": \"TEXT\",\n        \"tokenCount\": 52\n      }\n    ],\n    \"thoughtsTokenCount\": 121\n  },\n  \"modelVersion\": \"gemini-2.5-pro\",\n  \"responseId\": \"_JPAaPK5ML_Vz7IP-4KM-QQ\"\n}\n"
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 2.469309625s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 700
    host: generativelanguage.googleapis.com
    body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence?\"}],\"role\":\"user\"},{\"parts\":[{\"functionCall\":{\"args\":{\"location\":\"Florence\"},\"id\":\"weather\",\"name\":\"weather\"}}],\"role\":\"model\"},{\"parts\":[{\"functionResponse\":{\"id\":\"weather\",\"name\":\"weather\",\"response\":{\"result\":\"40 C\"}}}],\"role\":\"user\"}],\"generationConfig\":{},\"systemInstruction\":{\"parts\":[{\"text\":\"You are a helpful assistant\"}],\"role\":\"user\"},\"toolConfig\":{\"functionCallingConfig\":{\"mode\":\"AUTO\"}},\"tools\":[{\"functionDeclarations\":[{\"description\":\"Get weather information for a location\",\"name\":\"weather\",\"parameters\":{\"properties\":{\"location\":{\"description\":\"the city\",\"type\":\"STRING\"}},\"required\":[\"location\"],\"type\":\"OBJECT\"}}]}]}\n"
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.23.0 gl-go/go1.24.5
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: "{\n  \"candidates\": [\n    {\n      \"content\": {\n        \"parts\": [\n          {\n            \"text\": \"The weather in Florence is 40 C. \\n\"\n          }\n        ],\n        \"role\": \"model\"\n      },\n      \"finishReason\": \"STOP\",\n      \"index\": 0\n    }\n  ],\n  \"usageMetadata\": {\n    \"promptTokenCount\": 80,\n    \"candidatesTokenCount\": 10,\n    \"totalTokenCount\": 90,\n    \"promptTokensDetails\": [\n      {\n        \"modality\": \"TEXT\",\n        \"tokenCount\": 80\n      }\n    ]\n  },\n  \"modelVersion\": \"gemini-2.5-pro\",\n  \"responseId\": \"_pPAaJuZF-itz7IP-rWq8Aw\"\n}\n"
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 1.571857334s
