---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 809
    host: generativelanguage.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.34.0 gl-go/go1.25.4
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-preview:streamGenerateContent?alt=sse
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"add\",\"args\": {\"b\": 3,\"a\": 2}},\"thoughtSignature\": \"ErwDCrkDAdHtim+tgyYiwTOKgDBZ5Psa/ivtDDfvnlqoGDEj97rV2/GvhSSnwedTysVM5tAb6zPepWfsdb2DQy7jdoiKr4XdeSCOUS5LrLlcfBYsfeYrCJv7eDxJMNRqh8yATI6m4HrsM8xmRv4r4T+ciSH6NVMBSRiTuq5+NbIlV1EYnedFeo6Bz76LYZhbeKg0bzOG+VsUQHmyzlevfzZGkJTcDNf16mnN6ncN3dnQEtKg3NCk2KB/zhAyXLRPxBCCYLgv70NKSPAmGhs8v4Qz3vRUCy8ikYN9XGTxPFyFepS/c1N9hWFeGOUerVCmLneXn/LaXHoD5d/w54Cz6EGetOskF9jdNnkZ9SDdAUCHmrcR69A84p/v+900Oxvt39e9KMvSTuar1K+XXuDX/ba6uQoi4ZStXZJKN/oCRmyKUKHUwsUs/1PAGIOgeizxETzC/ExIx4sVeQ7/aslTLP2Dt7842mwgP+TguCkpRmSccZGSqQ6lg+KMiDmqnfYf86Q5Vu5gjqm1o6Y9lRsgsec0ZW2l2+cCuIV1/jQxfSYI3L7lPRPkmmMCZJoXAYNLH1adCMil0Pfzl6rsRGc4\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 157,\"candidatesTokenCount\": 16,\"totalTokenCount\": 264,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 157}],\"thoughtsTokenCount\": 91},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"bKIdaeD9AuPUxs0Pk8v7uA0\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"multiply\",\"args\": {\"b\": 3,\"a\": 2}}}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 157,\"candidatesTokenCount\": 32,\"totalTokenCount\": 280,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 157}],\"thoughtsTokenCount\": 91},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"bKIdaeD9AuPUxs0Pk8v7uA0\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 157,\"candidatesTokenCount\": 32,\"totalTokenCount\": 280,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 157}],\"thoughtsTokenCount\": 91},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"bKIdaeD9AuPUxs0Pk8v7uA0\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 2.587839083s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1756
    host: generativelanguage.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"},{"parts":[{"functionCall":{"args":{"a":2,"b":3},"id":"1","name":"add"},"thoughtSignature":"ErwDCrkDAdHtim+tgyYiwTOKgDBZ5Psa/ivtDDfvnlqoGDEj97rV2/GvhSSnwedTysVM5tAb6zPepWfsdb2DQy7jdoiKr4XdeSCOUS5LrLlcfBYsfeYrCJv7eDxJMNRqh8yATI6m4HrsM8xmRv4r4T+ciSH6NVMBSRiTuq5+NbIlV1EYnedFeo6Bz76LYZhbeKg0bzOG+VsUQHmyzlevfzZGkJTcDNf16mnN6ncN3dnQEtKg3NCk2KB/zhAyXLRPxBCCYLgv70NKSPAmGhs8v4Qz3vRUCy8ikYN9XGTxPFyFepS/c1N9hWFeGOUerVCmLneXn/LaXHoD5d/w54Cz6EGetOskF9jdNnkZ9SDdAUCHmrcR69A84p/v+900Oxvt39e9KMvSTuar1K+XXuDX/ba6uQoi4ZStXZJKN/oCRmyKUKHUwsUs/1PAGIOgeizxETzC/ExIx4sVeQ7/aslTLP2Dt7842mwgP+TguCkpRmSccZGSqQ6lg+KMiDmqnfYf86Q5Vu5gjqm1o6Y9lRsgsec0ZW2l2+cCuIV1/jQxfSYI3L7lPRPkmmMCZJoXAYNLH1adCMil0Pfzl6rsRGc4"},{"functionCall":{"args":{"a":2,"b":3},"id":"2","name":"multiply"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"add","response":{"result":"5"}}},{"functionResponse":{"id":"2","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.34.0 gl-go/go1.25.4
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-preview:streamGenerateContent?alt=sse
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"The addition of \"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 211,\"candidatesTokenCount\": 4,\"totalTokenCount\": 215,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 211}]},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"baIdafSbGseSxN8P7IGBoAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"2 and 3 is 5, and the multiplication of 2 and \"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 211,\"candidatesTokenCount\": 20,\"totalTokenCount\": 231,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 211}]},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"baIdafSbGseSxN8P7IGBoAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"3 is 6.\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 211,\"candidatesTokenCount\": 25,\"totalTokenCount\": 236,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 211}]},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"baIdafSbGseSxN8P7IGBoAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 300,\"candidatesTokenCount\": 25,\"totalTokenCount\": 325,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 300}]},\"modelVersion\": \"gemini-3-pro-preview\",\"responseId\": \"baIdafSbGseSxN8P7IGBoAw\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.385585417s
