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.29.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-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              "role": "model",
 32              "parts": [
 33                {
 34                  "functionCall": {
 35                    "name": "weather",
 36                    "args": {
 37                      "location": "Florence, Italy"
 38                    }
 39                  },
 40                  "thoughtSignature": "Cv4DAR/MhbZ2LpWbGDKTyyTnSEI5Mbxsa8KH+9LlZ7C1whClIZwMMYizqs+M3qhEkbCwG4lqJXruVsWCWHhA8Mth+s3XzLc4cq3DChXa/vjuNuTGi7NWDzjAOA5ZY+BnK658YQvva+1dFinvrKu1H928HLMQkthqikGFX/oEJw+VJo0tKTWAEKU00oL5D3BL10AWE+D7xcuc/sxoEsJXq+cJaZf4TqNuQ2WvsPi0bx+CIqDmCVJ8Zr7S94jYj0CiAX+taFLoPyvpjG79R5kcnqI6euqhckUnsSbG3nXOeHBiNvsaTD3eHjl+lIs6rWOCVu7sQDOQhO2IkZlrVl+/uYzWFLz/4JJYODYtECgJCz7VK5OSeqIx/YOxADIMpCCgF5S74pGz+9o33foKqukPtPHiJ22YMOs37RYFZDR8f5cnvkomHwIChRQ1T723wsGHLK/KD2c6mb2I8eeVtYQwODyP11ryI5r7G7aMUKM6NKu9K/FzlSkURUlJ18hZ1tPaIyFYGys3+WI0Q7CbxP9Yc7M6luXxy8UdiMqZkk7fegM4EO3IVHp4yYB9exU9Y1QjhY1jTsZcgYZd8QMLpI6mRtwnqtsPF6ymqvo9jfxi1FXCAjhyiNjmP1IPjt1hPoYXbOb+Ntbb9XvGxWtGv1ZhVSveggLzbI53wZFTGd6IuhWd"
 41                }
 42              ]
 43            },
 44            "finishReason": "STOP",
 45            "avgLogprobs": -0.83615646362304685
 46          }
 47        ],
 48        "usageMetadata": {
 49          "promptTokenCount": 28,
 50          "candidatesTokenCount": 5,
 51          "totalTokenCount": 150,
 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": 117
 66        },
 67        "modelVersion": "gemini-2.5-pro",
 68        "createTime": "2025-10-10T17:54:02.708890Z",
 69        "responseId": "OkjpaJqiK6GI0ekPqveHmA4"
 70      }
 71    headers:
 72      Content-Type:
 73      - application/json; charset=UTF-8
 74    status: 200 OK
 75    code: 200
 76    duration: 2.841282292s
 77- id: 1
 78  request:
 79    proto: HTTP/1.1
 80    proto_major: 1
 81    proto_minor: 1
 82    content_length: 735
 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":"weather","name":"weather"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"weather","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.29.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-pro: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.\n"
108                }
109              ]
110            },
111            "finishReason": "STOP",
112            "avgLogprobs": -0.07556527001517159
113          }
114        ],
115        "usageMetadata": {
116          "promptTokenCount": 38,
117          "candidatesTokenCount": 14,
118          "totalTokenCount": 52,
119          "trafficType": "ON_DEMAND",
120          "promptTokensDetails": [
121            {
122              "modality": "TEXT",
123              "tokenCount": 38
124            }
125          ],
126          "candidatesTokensDetails": [
127            {
128              "modality": "TEXT",
129              "tokenCount": 14
130            }
131          ]
132        },
133        "modelVersion": "gemini-2.5-pro",
134        "createTime": "2025-10-10T17:54:05.547479Z",
135        "responseId": "PUjpaJe1IbqD0ekPpPnL0A0"
136      }
137    headers:
138      Content-Type:
139      - application/json; charset=UTF-8
140    status: 200 OK
141    code: 200
142    duration: 1.102223375s