---
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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
      - google-genai-sdk/1.49.0 gl-go/go1.26.1
    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\": {\"b\": 3,\"a\": 2}},\"thoughtSignature\": \"CiQBvj72+/5mzhxPMHPnuLp75uv0yLiXlilHJLAP+kJiaYBuOWMKXgG+Pvb7cVVqLAomoUlGHWT11Qpw9y385/61+scbxb8OIInn4iCkBmjAGUZRQzLepGleNqs5cgSE0aU7tHEqK+VFg8NkWslo6qK56AfAV92M56MTL4W2paG5/3y83G8KiwEBvj72+5i8WiXe1K5jKOI8hwA2av98K2GygjwYmqRU4cLlRqUC22+iVRdyP+8aL7LdrZ10IskKtQTiHLI52oSYRDOhAg5EvZfdwafQTsgcx1IInXYJuwe2yzeXUHZvFoacZTO2dxi4Z6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Wt2ff6dhi/ni0JLeDqT2BMpVlA=\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 121,\"candidatesTokenCount\": 18,\"totalTokenCount\": 332,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 121}],\"thoughtsTokenCount\": 193},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"fwCzaajKAZDmz7IP9Pvy-AE\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"multiply\",\"args\": {\"a\": 2,\"b\": 3}}}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0,\"finishMessage\": \"Model generated function call(s).\"}],\"usageMetadata\": {\"promptTokenCount\": 121,\"candidatesTokenCount\": 36,\"totalTokenCount\": 350,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 121}],\"thoughtsTokenCount\": 193},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"fwCzaajKAZDmz7IP9Pvy-AE\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 2.94081375s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 2596
    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":"CiQBvj72+/5mzhxPMHPnuLp75uv0yLiXlilHJLAP+kJiaYBuOWMKXgG+Pvb7cVVqLAomoUlGHWT11Qpw9y385/61+scbxb8OIInn4iCkBmjAGUZRQzLepGleNqs5cgSE0aU7tHEqK+VFg8NkWslo6qK56AfAV92M56MTL4W2paG5/3y83G8KiwEBvj72+5i8WiXe1K5jKOI8hwA2av98K2GygjwYmqRU4cLlRqUC22+iVRdyP+8aL7LdrZ10IskKtQTiHLI52oSYRDOhAg5EvZfdwafQTsgcx1I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dgGKyG0srSCxFua+rIg3C0wRHQLc/Q5Wt2ff6dhi/ni0JLeDqT2BMpVlA="},{"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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
      - google-genai-sdk/1.49.0 gl-go/go1.26.1
    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\": 374,\"candidatesTokenCount\": 1,\"totalTokenCount\": 375,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 374}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"gQCzacGbM8Xgz7IPpMmF2AI\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" sum of 2 and 3 is 5. The product of 2 and 3\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 374,\"candidatesTokenCount\": 20,\"totalTokenCount\": 394,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 374}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"gQCzacGbM8Xgz7IPpMmF2AI\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" is 6.\\n\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 374,\"candidatesTokenCount\": 24,\"totalTokenCount\": 398,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 374}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"gQCzacGbM8Xgz7IPpMmF2AI\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.229607833s
