thinking.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.47.0 gl-go/go1.26.0
 18    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash: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": "Okay, here's my thought process regarding the user's request:\n\n**Analyzing the Query: Florence Weather**\n\nAlright, I see the user wants the weather for Florence, Italy. That's straightforward. The key here is the tool I have access to – the `weather` tool. I know this tool is designed for precisely this kind of query. Crucially, the tool documentation says it requires a `location` argument. So, my task is to parse the user's request and feed that location information to the tool. It's a classic input-process-output situation. The \"input\" is Florence, Italy, or at least, that's what I'll be using for the query, and the \"process\" is to send it to the weather tool with the location parameter. I'm ready to query!\n",
 34                  "thought": true
 35                },
 36                {
 37                  "functionCall": {
 38                    "name": "weather",
 39                    "args": {
 40                      "location": "Florence, Italy"
 41                    }
 42                  },
 43                  "thoughtSignature": "CoACAb4+9vsBHFxHrQuonIUfSR6Nm17lrRyUzuM6N/Hcp+/BSAONP0z+zhyo4cp6LNYfVevZZJjYIbDZrdqY/Quk9hwF1CaGnxmSMl5S6MbEYyIyNckE7tHMcNMJu3ODw37XOzCltw40lrTQvZmvkSrmMy9+X45L0RXDOJf9mYy9V3BCwPBoFK5uJr+BsaXb/DAbbFoPJXKuN++xTywS1smdJRB8YcVq/oGdbgB8RY0+/2EfNWrHipiSq06vjvwuXyCJFdziEtsxWNqv3GvqCv+M7BfE3P3EXCRbiNfDmfLjilifRs1Xw12rK7wC9TMUS7b52d/k/Js/StKn1ww8CtRffA=="
 44                }
 45              ],
 46              "role": "model"
 47            },
 48            "finishReason": "STOP",
 49            "index": 0,
 50            "finishMessage": "Model generated function call(s)."
 51          }
 52        ],
 53        "usageMetadata": {
 54          "promptTokenCount": 54,
 55          "candidatesTokenCount": 15,
 56          "totalTokenCount": 120,
 57          "promptTokensDetails": [
 58            {
 59              "modality": "TEXT",
 60              "tokenCount": 54
 61            }
 62          ],
 63          "thoughtsTokenCount": 51
 64        },
 65        "modelVersion": "gemini-2.5-flash",
 66        "responseId": "eP-dacvXLKScz7IP_bysiAI"
 67      }
 68    headers:
 69      Content-Type:
 70      - application/json; charset=UTF-8
 71    status: 200 OK
 72    code: 200
 73    duration: 2.312526792s
 74- id: 1
 75  request:
 76    proto: HTTP/1.1
 77    proto_major: 1
 78    proto_minor: 1
 79    content_length: 1134
 80    host: generativelanguage.googleapis.com
 81    body: |
 82      {"contents":[{"parts":[{"text":"What's the weather in Florence, Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence, Italy"},"id":"1","name":"weather"},"thoughtSignature":"CoACAb4+9vsBHFxHrQuonIUfSR6Nm17lrRyUzuM6N/Hcp+/BSAONP0z+zhyo4cp6LNYfVevZZJjYIbDZrdqY/Quk9hwF1CaGnxmSMl5S6MbEYyIyNckE7tHMcNMJu3ODw37XOzCltw40lrTQvZmvkSrmMy9+X45L0RXDOJf9mYy9V3BCwPBoFK5uJr+BsaXb/DAbbFoPJXKuN++xTywS1smdJRB8YcVq/oGdbgB8RY0+/2EfNWrHipiSq06vjvwuXyCJFdziEtsxWNqv3GvqCv+M7BfE3P3EXCRbiNfDmfLjilifRs1Xw12rK7wC9TMUS7b52d/k/Js/StKn1ww8CtRffA=="}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","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"}}]}]}
 83    headers:
 84      Content-Type:
 85      - application/json
 86      User-Agent:
 87      - google-genai-sdk/1.47.0 gl-go/go1.26.0
 88    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
 89    method: POST
 90  response:
 91    proto: HTTP/2.0
 92    proto_major: 2
 93    proto_minor: 0
 94    content_length: -1
 95    uncompressed: true
 96    body: |
 97      {
 98        "candidates": [
 99          {
100            "content": {
101              "parts": [
102                {
103                  "text": "The weather in Florence, Italy is 40 C."
104                }
105              ],
106              "role": "model"
107            },
108            "finishReason": "STOP",
109            "index": 0
110          }
111        ],
112        "usageMetadata": {
113          "promptTokenCount": 84,
114          "candidatesTokenCount": 12,
115          "totalTokenCount": 96,
116          "promptTokensDetails": [
117            {
118              "modality": "TEXT",
119              "tokenCount": 84
120            }
121          ]
122        },
123        "modelVersion": "gemini-2.5-flash",
124        "responseId": "e_-daeLyAsDhz7IPvpGWmQ0"
125      }
126    headers:
127      Content-Type:
128      - application/json; charset=UTF-8
129    status: 200 OK
130    code: 200
131    duration: 759.335917ms