thinking-gemini-2.5-pro.yaml

  1---
  2version: 2
  3interactions:
  4  - id: 0
  5    request:
  6        proto: HTTP/1.1
  7        proto_major: 1
  8        proto_minor: 1
  9        content_length: 550
 10        host: generativelanguage.googleapis.com
 11        body: |
 12            {"contents":[{"parts":[{"text":"What's the weather in Florence, Italy?"}],"role":"user"}],"generationConfig":{"thinkingConfig":{"includeThoughts":true,"thinkingBudget":128}},"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"}}]}]}
 13        headers:
 14            Content-Type:
 15              - application/json
 16            User-Agent:
 17              - google-genai-sdk/1.23.0 gl-go/go1.25.0
 18        url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
 19        method: POST
 20    response:
 21        proto: HTTP/2.0
 22        proto_major: 2
 23        proto_minor: 0
 24        content_length: -1
 25        uncompressed: true
 26        body: |
 27            {
 28              "candidates": [
 29                {
 30                  "content": {
 31                    "parts": [
 32                      {
 33                        "text": "**Thinking about Weather in Florence**\n\nOkay, so I'm trying to figure out the weather in Florence, Italy. That's a pretty straightforward request. From what I know about the available tools, this falls perfectly within the scope of the `weather.get_weather` function. It seems that all I need to do is plug \"Florence, Italy\" into the `location` parameter and I should get the information I need.  Seems simple enough.\n",
 34                        "thought": true
 35                      },
 36                      {
 37                        "functionCall": {
 38                          "name": "weather",
 39                          "args": {
 40                            "location": "Florence, Italy"
 41                          }
 42                        },
 43                        "thoughtSignature": "CpwCAdHtim88P4nCnVwvqi9uT52t2Jr3nEZZzq0Nc4Nu8ZYwHUX2ZctVNCfrWJjOAzPFVSaT5b8mIZTGog+tkOI8gJdAzyrUwi3N2ArFuTZq/be92EzfVEBmCyrG4sVqsQsMbpNfM6Xq0XUa8XC3H9yOh0mWGBjGEaM6t511bAJ0bst1pkTo2u1GXOFvnVbMjENFnbkkZz4Zrjp+JFQvyX+MAVV0MkVyaJ0Pru/J7lHZgT+TPO9pz70LUomT2XepZKBIeEvsjRux7obfsX9AfiTPNY4m9SAFNZGlZOMbGbijIYMgODR0XPaLwXtLtDthaJrZANKPsAn9NKdLBOT7wBSM2PJoJ/cGklvvH6G11Ouhqno9iILH5DvJkCJUcbg="
 44                      }
 45                    ],
 46                    "role": "model"
 47                  },
 48                  "finishReason": "STOP",
 49                  "index": 0
 50                }
 51              ],
 52              "usageMetadata": {
 53                "promptTokenCount": 54,
 54                "candidatesTokenCount": 15,
 55                "totalTokenCount": 135,
 56                "promptTokensDetails": [
 57                  {
 58                    "modality": "TEXT",
 59                    "tokenCount": 54
 60                  }
 61                ],
 62                "thoughtsTokenCount": 66
 63              },
 64              "modelVersion": "gemini-2.5-pro",
 65              "responseId": "tsXTaOmOLK7CnsEPhrDXmA0"
 66            }
 67        headers:
 68            Content-Type:
 69              - application/json; charset=UTF-8
 70        status: 200 OK
 71        code: 200
 72        duration: 5.094352209s
 73  - id: 1
 74    request:
 75        proto: HTTP/1.1
 76        proto_major: 1
 77        proto_minor: 1
 78        content_length: 776
 79        host: generativelanguage.googleapis.com
 80        body: |
 81            {"contents":[{"parts":[{"text":"What's the weather in Florence, Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence, Italy"},"id":"weather","name":"weather"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"weather","name":"weather","response":{"result":"40 C"}}}],"role":"user"}],"generationConfig":{"thinkingConfig":{"includeThoughts":true,"thinkingBudget":128}},"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"}}]}]}
 82        headers:
 83            Content-Type:
 84              - application/json
 85            User-Agent:
 86              - google-genai-sdk/1.23.0 gl-go/go1.25.0
 87        url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
 88        method: POST
 89    response:
 90        proto: HTTP/2.0
 91        proto_major: 2
 92        proto_minor: 0
 93        content_length: -1
 94        uncompressed: true
 95        body: |
 96            {
 97              "candidates": [
 98                {
 99                  "content": {
100                    "parts": [
101                      {
102                        "text": "The weather in Florence, Italy is 40 C. \n"
103                      }
104                    ],
105                    "role": "model"
106                  },
107                  "finishReason": "STOP",
108                  "index": 0
109                }
110              ],
111              "usageMetadata": {
112                "promptTokenCount": 84,
113                "candidatesTokenCount": 12,
114                "totalTokenCount": 96,
115                "promptTokensDetails": [
116                  {
117                    "modality": "TEXT",
118                    "tokenCount": 84
119                  }
120                ]
121              },
122              "modelVersion": "gemini-2.5-pro",
123              "responseId": "t8XTaNbKL6-FvdIPhdyn2QI"
124            }
125        headers:
126            Content-Type:
127              - application/json; charset=UTF-8
128        status: 200 OK
129        code: 200
130        duration: 1.057940625s