tool.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: 509
 10    host: us-east5-aiplatform.googleapis.com
 11    body: |
 12      {"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"}}]}]}
 13    headers:
 14      Content-Type:
 15      - application/json
 16      User-Agent:
 17      - google-genai-sdk/1.33.0 gl-go/go1.25.0
 18    url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/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              "role": "model",
 32              "parts": [
 33                {
 34                  "functionCall": {
 35                    "name": "weather",
 36                    "args": {
 37                      "location": "Florence,Italy"
 38                    }
 39                  },
 40                  "thoughtSignature": "CqoCAePx/17/8Q8KZZMun2Jh8nZkCjH+u0w5GCukRd4aSFxz4PI0YFXB/lvok+cVkxL3Fv0ZrP45+NDbGDDT+4Gf7lNe21zmmu3xQWaXmR+/EaYhuaHiFj8icU2IzVr0ra22AJ2SQFJNMB5g5Uu1TSJsYD1IkrB4NnkyudqlctBE1400PoB9wOzxM5kNtWseTLDw0a3XPgh0sV82nkHOyt8ogFkqNwIovTrvqQ+9HB0bTGqYk5U2XikPiCRzjJ9/g3CRzydE5eg6oLn7E5qR4WD25xOcHBki9RxITWSglwG3tYYDI8s/UG7eNc6aDiX72LL8xwEQMwOT6DQUzQanoQC7nlIqnHXas2eiq1zCkS7O6HGfuuXtcz0euBKxndi/3ESgzzQGKY8rCa065Q=="
 41                }
 42              ]
 43            },
 44            "finishReason": "STOP",
 45            "avgLogprobs": -1.3909281730651855
 46          }
 47        ],
 48        "usageMetadata": {
 49          "promptTokenCount": 28,
 50          "candidatesTokenCount": 5,
 51          "totalTokenCount": 96,
 52          "trafficType": "ON_DEMAND",
 53          "promptTokensDetails": [
 54            {
 55              "modality": "TEXT",
 56              "tokenCount": 28
 57            }
 58          ],
 59          "candidatesTokensDetails": [
 60            {
 61              "modality": "TEXT",
 62              "tokenCount": 5
 63            }
 64          ],
 65          "thoughtsTokenCount": 63
 66        },
 67        "modelVersion": "gemini-2.5-flash",
 68        "createTime": "2025-11-03T19:52:51.509145Z",
 69        "responseId": "EwgJadmJH9nEptQP9fCJyQY"
 70      }
 71    headers:
 72      Content-Type:
 73      - application/json; charset=UTF-8
 74    status: 200 OK
 75    code: 200
 76    duration: 1.300916167s
 77- id: 1
 78  request:
 79    proto: HTTP/1.1
 80    proto_major: 1
 81    proto_minor: 1
 82    content_length: 722
 83    host: us-east5-aiplatform.googleapis.com
 84    body: |
 85      {"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"}}]}]}
 86    headers:
 87      Content-Type:
 88      - application/json
 89      User-Agent:
 90      - google-genai-sdk/1.33.0 gl-go/go1.25.0
 91    url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent
 92    method: POST
 93  response:
 94    proto: HTTP/2.0
 95    proto_major: 2
 96    proto_minor: 0
 97    content_length: -1
 98    uncompressed: true
 99    body: |
100      {
101        "candidates": [
102          {
103            "content": {
104              "role": "model",
105              "parts": [
106                {
107                  "text": "The weather in Florence, Italy is 40 degrees Celsius."
108                }
109              ]
110            },
111            "finishReason": "STOP",
112            "avgLogprobs": -0.052264484075399548
113          }
114        ],
115        "usageMetadata": {
116          "promptTokenCount": 38,
117          "candidatesTokenCount": 13,
118          "totalTokenCount": 51,
119          "trafficType": "ON_DEMAND",
120          "promptTokensDetails": [
121            {
122              "modality": "TEXT",
123              "tokenCount": 38
124            }
125          ],
126          "candidatesTokensDetails": [
127            {
128              "modality": "TEXT",
129              "tokenCount": 13
130            }
131          ]
132        },
133        "modelVersion": "gemini-2.5-flash",
134        "createTime": "2025-11-03T19:52:52.815110Z",
135        "responseId": "FAgJaYbgMe2iptQP__zTsAs"
136      }
137    headers:
138      Content-Type:
139      - application/json; charset=UTF-8
140    status: 200 OK
141    code: 200
142    duration: 653.623083ms