---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 832
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://ai-gateway.vercel.sh/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"id":"gen_01KKHTRQRYKH43CS2M3V70YQSP","object":"chat.completion","created":1773346254,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"message":{"role":"assistant","content":null,"tool_calls":[{"id":"UEWl8wf7vCtSQIdF","type":"function","function":{"name":"add","arguments":"{\"b\":3,\"a\":2}"}},{"id":"lnzdKpzE1MRoXxao","type":"function","function":{"name":"multiply","arguments":"{\"b\":3,\"a\":2}"}}],"provider_metadata":{"google":{"promptFeedback":null,"groundingMetadata":null,"urlContextMetadata":null,"safetyRatings":null,"usageMetadata":{"thoughtsTokenCount":137,"promptTokenCount":61,"candidatesTokenCount":18,"totalTokenCount":216,"trafficType":"ON_DEMAND"}},"gateway":{"routing":{"originalModelId":"google/gemini-3-pro-preview","resolvedProvider":"vertex","resolvedProviderApiModelId":"gemini-3-pro-preview","internalResolvedModelId":"vertex:gemini-3-pro-preview","fallbacksAvailable":["google"],"internalReasoning":"Selected vertex as preferred provider for gemini-3-pro-preview. 1 fallback(s) available: google","planningReasoning":"System credentials planned for: vertex, google. Total execution order: vertex(system) → google(system)","canonicalSlug":"google/gemini-3-pro-preview","finalProvider":"vertex","attempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":true,"startTime":1302633.769555,"endTime":1306285.12625,"statusCode":200,"providerResponseId":"yh2zaeuHJJKA4OUPxM_iqQI"}],"modelAttemptCount":1,"modelAttempts":[{"modelId":"vertex:gemini-3-pro-preview","canonicalSlug":"google/gemini-3-pro-preview","success":true,"providerAttemptCount":1,"providerAttempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":true,"startTime":1302633.769555,"endTime":1306285.12625,"statusCode":200,"providerResponseId":"yh2zaeuHJJKA4OUPxM_iqQI"}]}],"totalProviderAttemptCount":1},"cost":"0.001982","marketCost":"0.001982","generationId":"gen_01KKHTRQRYKH43CS2M3V70YQSP","billableWebSearchCalls":0}}},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":61,"completion_tokens":18,"total_tokens":79,"cost":0.001982,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0,"upstream_inference_completions_cost":0},"completion_tokens_details":{"reasoning_tokens":137,"image_tokens":0},"cache_creation_input_tokens":0,"market_cost":0.001982},"system_fingerprint":"fp_1qu3iai0cv","generationId":"gen_01KKHTRQRYKH43CS2M3V70YQSP"}'
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 3.855656s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1205
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"UEWl8wf7vCtSQIdF","function":{"arguments":"{\"b\":3,\"a\":2}","name":"add"},"type":"function"},{"id":"lnzdKpzE1MRoXxao","function":{"arguments":"{\"b\":3,\"a\":2}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"UEWl8wf7vCtSQIdF","role":"tool"},{"content":"6","tool_call_id":"lnzdKpzE1MRoXxao","role":"tool"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://ai-gateway.vercel.sh/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"id":"gen_01KKHTRVHAN3K5TGZF8S3JD965","object":"chat.completion","created":1773346258,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"message":{"role":"assistant","content":"The addition of 2 and 3 is 5, and the multiplication of 2 and 3 is 6.","reasoning_details":[{"type":"reasoning.encrypted","data":"EtsJCtgJAb4+9vuyV/3o1mGMws57R53bb1BY3r592wvKawVw4531Zc39lmmapELYnk4WmzMDcHh7EayWrZKnF63PZanblkkfZ5xp/M3t+8P8Q4wzkq+IPuiHGOoraQSNxyYD3n/oumaOmejR75KTGUrI5sVLDL0eyN5NcvFNOk2cOUPycOfGK/eKbHl8g8qgrk7S0RqgZOxsVtmpU8MYmFo736W1RGR3oXxjBekPTIQu6hZtgoNxR4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+BC5ZKRzrgLb20KymkqmEKOm+5ZEIxNXuNN4DJAfFg+n7OkxUjPDIkubmMR/GlItrUlRjC05u21yyR4A9PMwm4g250srB+cCmxvhknIPdUT0CCoSWUxSgX3JaBmiNv2jSpqo7LKF3vnqMm5Vm5VzWpiidh4rsQqJv/RZJG0Qjafemr16Fy4OtQpSfZKcVmaByliCneW8e+xPEkKcJG9SUVpDms4nPAJs/GrpfV5DOOynJEDI8zeGUJNnwq0f1MSvP0K+uyRsLeREYkhqHhrapx57TbbuMv6mb58I2Qdie1CB8OjyQrpr+QoV1jlpbVcqDcTwp4XyD5BZvN6WlPldw==","format":"google-gemini-v1","index":0}],"provider_metadata":{"google":{"promptFeedback":null,"groundingMetadata":null,"urlContextMetadata":null,"safetyRatings":null,"usageMetadata":{"thoughtsTokenCount":266,"promptTokenCount":223,"candidatesTokenCount":25,"totalTokenCount":514}},"gateway":{"routing":{"originalModelId":"google/gemini-3-pro-preview","resolvedProvider":"vertex","resolvedProviderApiModelId":"gemini-3-pro-preview","internalResolvedModelId":"vertex:gemini-3-pro-preview","fallbacksAvailable":["google"],"internalReasoning":"Selected vertex as preferred provider for gemini-3-pro-preview. 1 fallback(s) available: google","planningReasoning":"System credentials planned for: vertex, google. Total execution order: vertex(system) → google(system)","canonicalSlug":"google/gemini-3-pro-preview","finalProvider":"google","attempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":false,"error":"Please ensure that the number of function response parts is equal to the number of function call parts of the function call turn.","startTime":1306349.557116,"endTime":1306479.321452,"statusCode":400},{"provider":"google","internalModelId":"google:gemini-3.1-pro-preview-customtools","providerApiModelId":"gemini-3.1-pro-preview-customtools","credentialType":"system","success":true,"startTime":1306487.215895,"endTime":1310248.782797,"statusCode":200,"providerResponseId":"0h2zafDWD6OD-8YP-5vPwA0"}],"modelAttemptCount":1,"modelAttempts":[{"modelId":"vertex:gemini-3-pro-preview","canonicalSlug":"google/gemini-3-pro-preview","success":true,"providerAttemptCount":2,"providerAttempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":false,"error":"Please ensure that the number of function response parts is equal to the number of function call parts of the function call turn.","startTime":1306349.557116,"endTime":1306479.321452,"statusCode":400},{"provider":"google","internalModelId":"google:gemini-3.1-pro-preview-customtools","providerApiModelId":"gemini-3.1-pro-preview-customtools","credentialType":"system","success":true,"startTime":1306487.215895,"endTime":1310248.782797,"statusCode":200,"providerResponseId":"0h2zafDWD6OD-8YP-5vPwA0"}]}],"totalProviderAttemptCount":2},"cost":"0.003938","marketCost":"0.003938","generationId":"gen_01KKHTRVHAN3K5TGZF8S3JD965","billableWebSearchCalls":0}}},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":223,"completion_tokens":25,"total_tokens":248,"cost":0.003938,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0,"upstream_inference_completions_cost":0},"completion_tokens_details":{"reasoning_tokens":266,"image_tokens":0},"cache_creation_input_tokens":0,"market_cost":0.003938},"system_fingerprint":"fp_muqainsi9x","generationId":"gen_01KKHTRVHAN3K5TGZF8S3JD965"}'
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 4.082352584s
