---
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-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\": {\"parts\": [{\"functionCall\": {\"name\": \"add\",\"args\": {\"a\": 2,\"b\": 3}},\"thoughtSignature\": \"CiQB0e2Kbx/zJCGX4QRM1YjdG/0vM0O4q138GSgP9DFjPo5BvxgKXgHR7Ypvpmm3CK4gVVZtV0AvJ5MhonziwhvNMCDxg+jdrww42W8UHrTuM1cvExKrM1WsQkHnTo1PUMcUH9Ju006B1GZbgQvs3J8svt8NYJgh0WNDt8UHPO6b6VGSss4KkQEB0e2Kb68CHsB09XAnHX229MS+YrPraiD8fPqMxVLLkc2FuCR5+fI7A+kzP91qGr92hzdvYlksVeLRy5a5n1LEQmnxxFXtY8xsKDaBXDUlIvdK7VEUb60Gn9vss03eABVgI6cmwR46HFzDAvSwsl3sWtP2U4qoHTTNZ4Dt36pl/S4nxB7Lp14pcLP7sOLZkowTCoEBAdHtim8Pb7C65eIUdYFOqURU6C1ur0uJa+zVoM2/bIsSO8LXUpvdLcOM6mPhIxLisPAwhhk35D3vgnRW+luq0e8A0VsKo6AhR0NAsIN3IQnC0+vreFuIzaCYOpNuHlYXjNVbfX/CbLHsIF0+waFfbkF2ZO3GFOji0b0BTsrXoheuCo4BAdHtim8nuIkYXJNfCkRLNH8/SIGCEBIFitZzjcwzbfOLkNm/ibVwVYY8D838Gii33aJN1DyuxE4k3A+c0W8pe/YXPkdV9SXSsQ+N8KDwKRNjgjpog9psIBwG+7GfNkk3ImBvN1NwptAWKOgk5AO4dt0K7aGzWpdN+a8CfHlIjv3SKlt8AHvS82uRqv235QpmAdHtim9SMTkv6plfjBrsVRQqxAgl0jx8LVeR230NGsiTtc79hjGV1U/s2pDAdJDZp717tUJ0qL7L222pR5YbwtxqZZKBUl/ouOKOaYbZwXfuVAfL6U22ByxWWzjqXv360BthO8IVCogBAdHtim+nET8Gb9Oab/o8GshmXqUY2b7baafXDOcauibkZcx71dgfKxCnCm22wy1rTGG1Nz0nsJTPsAn2cVw+8XcWqSzpwDTRlxqnLu4/XoxjgE2nWADt8xTOgp5wFd4nw9tIs+5G2ApE2wCpRZ2cVWo2m/3onEfP9+GUJutE5YEzyXgThr7nGgpOAdHtim+uYwn7607G/Pg+uC0cCWm7SJZxDYhohc40e5tqDXxIXfixJ5CYUiKURKX658TamimYkiBr8FGZs2XkdMKkn1gFbQj4tZjpHu+R\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 121,\"candidatesTokenCount\": 18,\"totalTokenCount\": 308,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 121}],\"thoughtsTokenCount\": 169},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"k6Idad-8PLLUvdIP9tDr8As\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"multiply\",\"args\": {\"b\": 3,\"a\": 2}}}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0,\"finishMessage\": \"Model generated function call(s).\"}],\"usageMetadata\": {\"promptTokenCount\": 121,\"candidatesTokenCount\": 36,\"totalTokenCount\": 326,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 121}],\"thoughtsTokenCount\": 169},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"k6Idad-8PLLUvdIP9tDr8As\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 2.96572975s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 2336
    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":"CiQB0e2Kbx/zJCGX4QRM1YjdG/0vM0O4q138GSgP9DFjPo5BvxgKXgHR7Ypvpmm3CK4gVVZtV0AvJ5MhonziwhvNMCDxg+jdrww42W8UHrTuM1cvExKrM1WsQkHnTo1PUMcUH9Ju006B1GZbgQvs3J8svt8NYJgh0WNDt8UHPO6b6VGSss4KkQEB0e2Kb68CHsB09XAnHX229MS+YrPraiD8fPqMxVLLkc2FuCR5+fI7A+kzP91qGr92hzdvYlksVeLRy5a5n1LEQmnxxFXtY8xsKDaBXDUlIvdK7VEUb60Gn9vss03eABVgI6cmwR46HFzDAvSwsl3sWtP2U4qoHTTNZ4Dt36pl/S4nxB7Lp14pcLP7sOLZkowTCoEBAdHtim8Pb7C65eIUdYFOqURU6C1ur0uJa+zVoM2/bIsSO8LXUpvdLcOM6mPhIxLisPAwhhk35D3vgnRW+luq0e8A0VsKo6AhR0NAsIN3IQnC0+vreFuIzaCYOpNuHlYXjNVbfX/CbLHsIF0+waFfbkF2ZO3GFOji0b0BTsrXoheuCo4BAdHtim8nuIkYXJNfCkRLNH8/SIGCEBIFitZzjcwzbfOLkNm/ibVwVYY8D838Gii33aJN1DyuxE4k3A+c0W8pe/YXPkdV9SXSsQ+N8KDwKRNjgjpog9psIBwG+7GfNkk3ImBvN1NwptAWKOgk5AO4dt0K7aGzWpdN+a8CfHlIjv3SKlt8AHvS82uRqv235QpmAdHtim9SMTkv6plfjBrsVRQqxAgl0jx8LVeR230NGsiTtc79hjGV1U/s2pDAdJDZp717tUJ0qL7L222pR5YbwtxqZZKBUl/ouOKOaYbZwXfuVAfL6U22ByxWWzjqXv360BthO8IVCogBAdHtim+nET8Gb9Oab/o8GshmXqUY2b7baafXDOcauibkZcx71dgfKxCnCm22wy1rTGG1Nz0nsJTPsAn2cVw+8XcWqSzpwDTRlxqnLu4/XoxjgE2nWADt8xTOgp5wFd4nw9tIs+5G2ApE2wCpRZ2cVWo2m/3onEfP9+GUJutE5YEzyXgThr7nGgpOAdHtim+uYwn7607G/Pg+uC0cCWm7SJZxDYhohc40e5tqDXxIXfixJ5CYUiKURKX658TamimYkiBr8FGZs2XkdMKkn1gFbQj4tZjpHu+R"},{"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-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\": {\"parts\": [{\"text\": \"The\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 348,\"candidatesTokenCount\": 1,\"totalTokenCount\": 349,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 348}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"lqIdafyeNI7WvdIP2uCBoAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" sum of 2 and 3 is 5, and the product of 2 and \"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 348,\"candidatesTokenCount\": 19,\"totalTokenCount\": 367,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 348}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"lqIdafyeNI7WvdIP2uCBoAw\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"3 is 6.\\n\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 348,\"candidatesTokenCount\": 24,\"totalTokenCount\": 372,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 348}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"lqIdafyeNI7WvdIP2uCBoAw\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.420692s
