---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 809
    host: us-east5-aiplatform.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant. Always use both add and multiply at the same time."}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Add two numbers","name":"add","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}},{"description":"Multiply two numbers","name":"multiply","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}}]}]}
    form:
      alt:
      - sse
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.29.0 gl-go/go1.25.0
    url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/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\": \"add\",\"args\": {\"a\": 2,\"b\": 3}},\"thoughtSignature\": \"CiQBH8yFtiOcSPrtiNL/5MXYrS703YDiQC/ZycyRiAmPUlpi6l0KXgEfzIW29A9U1otPsCUT7fad8To1donPd/baxgZRwk/fEs0gO/09Op57nJ05ewa7TOEObY4lWHdPf1sa+xYyeZz6g9pZvN5wUeRoasi0bXmjorjsnfOCCnB1axBa9NoKawEfzIW2oHaOoL5wS/Cl8MTLXRGopnupUTLoAEoxQ059IF3Ac/KK4gzVUgR0zU32nPxctzscNnSV/fhTkHoTUPJ1fi4jKnnBAaHBrIO9+wdGJ6K0IUcDI6AwdJQoCdcZc2KoCnq2DveJsALPCocBAR/MhbZ5vtT1vqjHBw7JBLescYfie2bV9pWagSRmJeht2TpVC6kHSJzaq9bSmxoogznwAQQQ9Viv4Sk7Noh4nT/4RYb8VxQf73EO7x/ZWIqBiXeJH1/UGtRqf39sTPf41t8BgDFXd4GWMDD5LfIDg8A4+t8f9LJnfoaS1Q5Mq5iQF0WDt7LECjcBH8yFtiJotlgofhgSjsotMNdEZlax36o6OLNnE++1a+1x+kxfG3nfV7Ck5ulR1olMb9coOPNt\"},{\"functionCall\": {\"name\": \"multiply\",\"args\": {\"b\": 3,\"a\": 2}}}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 57,\"candidatesTokenCount\": 10,\"totalTokenCount\": 147,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 57}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 10}],\"thoughtsTokenCount\": 80},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-10-10T17:54:16.458370Z\",\"responseId\": \"SEjpaIL9G6GI0ekPqveHmA4\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.744036208s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1156
    host: us-east5-aiplatform.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"},{"parts":[{"functionCall":{"args":{"a":2,"b":3},"id":"add","name":"add"}},{"functionCall":{"args":{"a":2,"b":3},"id":"multiply","name":"multiply"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"add","name":"add","response":{"result":"5"}}},{"functionResponse":{"id":"multiply","name":"multiply","response":{"result":"6"}}}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant. Always use both add and multiply at the same time."}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Add two numbers","name":"add","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}},{"description":"Multiply two numbers","name":"multiply","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}}]}]}
    form:
      alt:
      - sse
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.29.0 gl-go/go1.25.0
    url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/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 sum of 2 and 3 is 5 and the product is 6.\",\"thoughtSignature\": \"CiIBH8yFtlXMzNL6Mlcd9Oh4/T39qsj/so81HRuh5ja754RbCmQBH8yFtkiXilnsEhjqc+/oAV73czI/IVX63MIHx3fP6R6ym+AMNejgj5D0Mnk0MrxaOjFENDK4uUSK40L73j4kyIyZK0pVYoiNDAk0u+MwyI1kpCgdBnFuz9/8lIuOyStAZEPNCmwBH8yFtny8MMG09k0CweELugi0Zh/wRbjCIr9hWcbbVLLYypxNsFa6mEmLukfA/a+ot+kC03T15CEXfgDzmG5AOMQM2PQPErmfWU6Bee6ig3dtgVR6Fbb+97giKMq58tA2ZCZEQomBQ0xT1gMKkAEBH8yFtja3OB/r3IDwXUfQZkMMyHb7gkS1G/2TT0xbJ+7Yf5AdJ/E9wMLbVBGTu9hcnvHtB5A1Avp1cHBuXIWAlXtmayNEdausKCknw6zTkJ+iKilGhfOuRkzB8zEkH6RZlOoLSVRbOWZxV/7U5pS9LHdemdNe9h0Ajfny7Q6YmqmfuHTQtkdl39IcYLCyF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ADGTnUBEADNUzLa2f2gNIUqfer85QfjZGUCLU9PWgepAf0eyMwqw47XB4cjz0Nigz5meNqt8sYwD9Vnxn3C18KawEfzIW2J+5eifzMPjA70QprJPL4wejGz5LaslO4rJZtnN1RnfNmsoWWaq6+V9mzvISPD9me2lVRWCnfXc0hCj4qFUPaH51l6/K56Q6JAdccLX379ipjSLjlI8reh13IYdC5ZrfRx1dcXC2t\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 73,\"candidatesTokenCount\": 18,\"totalTokenCount\": 373,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 73}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 18}],\"thoughtsTokenCount\": 282},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-10-10T17:54:18.206739Z\",\"responseId\": \"SkjpaJPPDNOJ0ekPr4ebwAs\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 4.37384875s
