---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 509
    host: us-east5-aiplatform.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://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy/locations/us-east5/publishers/google/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\": {\"role\": \"model\",\"parts\": [{\"functionCall\": {\"name\": \"weather\",\"args\": {\"location\": \"Florence,Italy\"}},\"thoughtSignature\": \"CiQB4/H/XiVd2Ca1mefZ0aLYQnjMBFig65C/dnUtnFkZT4xoiHcKZwHj8f9e8rbVyC3ickntc16RBwRCl6Hh2xBWIL3GUMzy8jYc98uqDcFh9QAEOZXme0vga0w2aHw39rXSHZ61/CJrooMWZa9OSbi6FaSnkJjkrD2y0T2zYx4uAtUnUQlsm6NFY0TjuTwKZAHj8f9eeb8p5DuPp6/oQ1Ldul8Sh0pLWZweoB2kCNqo32qtlnsuVTaNI7YdySX/KlfX7retiXWWUnMFUr9Q0Vy5gtZSoeGB24j9TSt6Y06DOIxQGklBqgEU35B+vPPVJxv54ZQKuwEB4/H/Xi45y/8RIM8hdYJecYG8FkidK5eBV1V41wvCFAw7NnqUyKWAg9EB6I3MdoGXm8xZJVRZVSQ5YYoEfr/109ig3ac0hTOkkmhAE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Luo86C6rCS5zpf6dtvYVHfTsogYdppukK92rpDkKkCb1JzpkHEtcGRXmV0aLS2w69f4OpCfzlTBztZTpN2g5HWH7gD4fuDutPDYTYGqishkOkzhshDJWWRv8lBexq2yUl58a5AlyS2CSwa4BYT9GNF5AEJywImkJL5lUxCh4hISJVxZqO550zXiZoHcJJVMqcgaA4w0sBfy4jFjB6werEz9mYjo34wyBhj286XcYWfOw98myot4vSEWwhF9amVikwHl3meV5gQ8iKuyEG6C9dkEXmGwUf9ywca4vit/F9SGKKc7CC7lUiGqvLSDW6r+TzO2sY59E0sfcE4K4/N7766mSJWCOQwK2pgleuzglopb8zXY+PvYNuXhQ+BsGrCtkBAePx/17EUMUCjtZhMxfoeotAHmAm1Qz+syfxTkH5u87SlvGxtgxnAuu1h3VKUZzVe8hSCMUsoXfsqXroG3UjX/TJFm5yMPqNFYuurXkfjRX9N8IWDyqiz1lOvR5R0pMSMiUX/WHOYH2Efaukz0M2aoigvjH1FI4a/Z2zA2uE14lxq1SQOuI5QEwWKf1NXY8JZ1AhVEp4VUODtwc/DoxCC/hwFhk5hKkz+W1/3o/gAlkU5OeWdDF4KZ74yYFDCpPuPEtvvFqF+3amQMo2dRwcpQsof5x0+xyQgg==\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 28,\"candidatesTokenCount\": 5,\"totalTokenCount\": 340,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 28}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 5}],\"thoughtsTokenCount\": 307},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-10-23T06:56:50.220833Z\",\"responseId\": \"stH5aKG9DcqZptQPrcWIuQM\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 3.985236916s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 722
    host: us-east5-aiplatform.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://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy/locations/us-east5/publishers/google/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\": {\"role\": \"model\",\"parts\": [{\"text\": \"The weather in Florence\"}]}}],\"usageMetadata\": {\"trafficType\": \"ON_DEMAND\"},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-10-23T06:56:54.192162Z\",\"responseId\": \"ttH5aKLdC_LEptQP_MqZuAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \", Italy is 40 degrees Celsius. \\n\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 15,\"totalTokenCount\": 53,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 15}]},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-10-23T06:56:54.192162Z\",\"responseId\": \"ttH5aKLdC_LEptQP_MqZuAw\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.02386s
