---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 509
    host: generativelanguage.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"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"}}]}]}
    form:
      alt:
      - sse
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.29.0 gl-go/go1.25.1
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"weather\",\"args\": {\"location\": \"Florence,Italy\"}},\"thoughtSignature\": \"CiIB0e2Kbz0BLNkrLk7+No9WGlLTJZ+xMx9A1TxMe+Y6NonoCmcB0e2Kb706fnMCgK85NUwapXVlvHLfykeWH8MI5LgoV4MUsEHZYCpYIl727ErZ4RBQjtGmeXlj/azrhRNM/TvHMnk7zJYadvftZaTiGdRl9jKvlQe6/S7M6bSkxPlYp+lQo2ty1L2YCpwBAdHtim8LzZus032fdxYFzNkGGMGKtMP2tUDh99Z03MCvi+wxA8BNAb6TO+WBH9n4w811qYi6vtnx6CSEpNfmu69Gxg0mzzJcy18aftjQsIMI9I6s/Em67I0H5KvvJIIORVUQRJV79WxBxJosXKq6Qp0ouGnHDeu6amYE3gNkPa5avQ6ylcPFYxEFiocnnByI2+T5c/MfX0VMuhfJCn8B0e2Kb5mZWqcXceVRxrUEPnB9hIZ1Z1Fw0LsZu0mtQLIu5wrbKASt8tngqGH/Ih0JKjyhYCMMXQgZv/+SSD9aCrNuHVcuUT70gOAlh1+8GAVExQKK91LNOqzJQzPY3eDWmZeOaZzTClGndGvV5yei98NXpot/WLOSk+0vjOKRCogBAdHtim8NoLk4AU1mmgzvKhGBdd2+k40AXhi5/HdOH25mDEIu1aE2UYzGb5fWDHEBPk9kCLXboACayHmSUL5jn4vZGD6RGOeD8fLWkMZ9QkMHVIHqeJf6/bWWGpXJqyKJuPuVJr4Js942G2j0HuRZhjE/Pp0Juo1nZLPnCpXF/ocgNvajxnChSwp8AdHtim8NRblW7y2ldLbbnvLJxgEdlbXwFdIfCdhh9o/Z9bey8btecUY1RDywFlbieqveGpM7JYL44YqHx49mhiA6xMqNYSlBdjmyDGMCSRe2DqM3Q9tZlJsDU98Ram0r30EaaLbdegYMvxRRJQxfqwyUYWj6sBxnSIePmAo8AdHtim8/Dviufwa51o7mshU5jZE49QI8GXiYtII8ISmrhZp3U6FDPpyvnanR17ZVXQ4n78bmWk2hW6lUCiIB0e2Kb51t7bXCuEJajiqXKq10+LClxmq1MeDkr8I+kQyX\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 54,\"candidatesTokenCount\": 15,\"totalTokenCount\": 197,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 54}],\"thoughtsTokenCount\": 128},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"edH5aJCaLLH6nsEPqZGMqAY\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 54,\"candidatesTokenCount\": 15,\"totalTokenCount\": 197,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 54}],\"thoughtsTokenCount\": 128},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"edH5aJCaLLH6nsEPqZGMqAY\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 3.057425792s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 722
    host: generativelanguage.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence,Italy"},"id":"1","name":"weather"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"weather","response":{"result":"40 C"}}}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"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"}}]}]}
    form:
      alt:
      - sse
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.29.0 gl-go/go1.25.1
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"The weather in Florence, Italy is 40 C.\",\"thoughtSignature\": \"CiIB0e2Kb56sxLRU03mYcZSclEd3sEuDNOhALD62B0KGHxFYCmcB0e2Kb+ghbxMMaV82lqir0eauJgRynLiu4qQd9yj+0pycTZ29YhNIr/WDsrDK/WHOdFO2pMleUHDx0tvOtpGDMkraX/dm4wWmufOU7X7JY/JwAzzJzyCWTWHl5VdSM5sBMeyzYayMCpwBAdHtim/sqOq26orx9LidxeQIl6psi5DopqlHlNiDzoMhQ9cElW01aJRwICHbhJVyuSeq4ZAIzgKZ9F5VVd27PsG+jfZu5nvsLVBiD3kNKx9EYoVNqiXBwyRD9z41ws45gFrgJDkb72kwZ3RWdVKhnIdd+AmKM0VeLHlrbCoDMS4s+s9qJOs7X1n5Q2kj3cr+Ac3ywIShC1GqdOpDCogBAdH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+EfoYFZM6bCrwzOz3c/vARCDiQMBrXnhVtqt/Cm+F6xrY+EoAob7STNlrfxVDYNmvi6I9LvV8dQb+30ljuamBEe5lB4LZqYXz7z5UOctskS1BqkwZJzMNC2gqAAQHR7YpvAtO00MWKSEJ11C0llAJpdzfKY14sPFgXAWoBpJKes3OElywBKNH91m8Kzi6zQO9UVVYWGga/IGJIII9fzfUXVnTXAswMkMTr9xAIj8Z4v4znxZ5dI6QYLUbuh7P8ufb+Lbwrlp1C7qBELl3FqHptJ3HWZs58GPmyN6jSCicB0e2Kbxwoui+FrdfG/ptxdQpa/AzB+NRjqab1gKpMlOPSFZ2SdF8=\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 84,\"candidatesTokenCount\": 12,\"totalTokenCount\": 321,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 84}],\"thoughtsTokenCount\": 225},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"fNH5aPmlPNWsnsEPvpnKoAs\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 4.537089792s
