From e4a0622ba5a499e0fa2abefdc5a5bcb2e2856497 Mon Sep 17 00:00:00 2001 From: lforst <8118419+lforst@users.noreply.github.com> Date: Tue, 8 Sep 2026 17:20:05 +0000 Subject: [PATCH 1/2] feat: Track tool ids for ai SDK v6 --- .../ai-sdk-v6-auto-hook.span-tree.json | 452 ++++++++++++------ .../ai-sdk-v6-auto-hook.span-tree.txt | 438 +++++++++++------ .../ai-sdk-v6-latest-auto-hook.span-tree.json | 452 ++++++++++++------ .../ai-sdk-v6-latest-auto-hook.span-tree.txt | 438 +++++++++++------ .../ai-sdk-v6-latest-wrapped.span-tree.json | 352 +++++++++----- .../ai-sdk-v6-latest-wrapped.span-tree.txt | 338 ++++++++----- .../ai-sdk-v6-wrapped.span-tree.json | 352 +++++++++----- .../ai-sdk-v6-wrapped.span-tree.txt | 338 ++++++++----- .../ai-sdk-v7-auto-hook.span-tree.json | 366 +++++++++----- .../ai-sdk-v7-auto-hook.span-tree.txt | 366 +++++++++----- .../ai-sdk-v7-explicit.span-tree.json | 434 ++++++++++++----- .../ai-sdk-v7-explicit.span-tree.txt | 434 ++++++++++++----- .../ai-sdk-v7-latest-auto-hook.span-tree.json | 294 ++++++++---- .../ai-sdk-v7-latest-auto-hook.span-tree.txt | 294 ++++++++---- .../ai-sdk-v7-latest-explicit.span-tree.json | 294 ++++++++---- .../ai-sdk-v7-latest-explicit.span-tree.txt | 294 ++++++++---- .../ai-sdk-instrumentation/assertions.ts | 47 +- .../plugins/ai-sdk-plugin.streaming.test.ts | 55 +++ .../instrumentation/plugins/ai-sdk-plugin.ts | 13 +- 19 files changed, 4118 insertions(+), 1933 deletions(-) diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.json index 2412a9be1..9d0559531 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.json @@ -978,9 +978,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1050,7 +1051,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1080,9 +1084,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1098,9 +1103,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1140,9 +1146,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1212,7 +1219,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1242,9 +1252,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1260,9 +1271,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1277,9 +1289,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1295,9 +1308,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1337,9 +1351,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1409,7 +1424,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1439,9 +1457,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1457,9 +1476,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1474,9 +1494,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1492,9 +1513,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1509,9 +1531,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1527,9 +1550,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1569,9 +1593,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1641,7 +1666,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } } ], "input": { @@ -1696,9 +1724,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1710,9 +1739,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1720,7 +1750,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1735,9 +1765,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1753,9 +1784,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1770,9 +1802,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1788,9 +1821,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1805,9 +1839,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1823,9 +1858,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1840,9 +1876,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1858,9 +1895,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1880,9 +1918,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1894,9 +1933,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1904,7 +1944,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1919,9 +1959,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1937,9 +1978,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1985,9 +2027,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1999,9 +2042,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2009,7 +2053,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2024,9 +2068,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2042,9 +2087,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2059,9 +2105,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2077,9 +2124,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2125,9 +2173,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2139,9 +2188,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2149,7 +2199,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2164,9 +2214,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2182,9 +2233,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2199,9 +2251,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2217,9 +2270,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2234,9 +2288,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2252,9 +2307,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2300,9 +2356,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2314,9 +2371,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2324,7 +2382,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2339,9 +2397,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2357,9 +2416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2374,9 +2434,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2392,9 +2453,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2409,9 +2471,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2427,9 +2490,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2444,9 +2508,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2462,9 +2527,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2511,9 +2577,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2527,9 +2594,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6038,9 +6106,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6048,9 +6117,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6121,7 +6191,10 @@ "item": "laptop", "store": "StoreA" }, - "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "get_store_price", @@ -6131,7 +6204,10 @@ "item": "laptop", "store": "StoreB" }, - "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -6180,9 +6256,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6193,9 +6270,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6211,9 +6289,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6224,9 +6303,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6295,9 +6375,10 @@ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6368,7 +6449,10 @@ "discountCode": "SAVE20", "total": 999 }, - "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -6417,9 +6501,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6430,9 +6515,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6448,9 +6534,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6461,9 +6548,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6479,9 +6567,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6497,9 +6586,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6721,7 +6811,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6732,7 +6822,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6748,9 +6838,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6761,9 +6852,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6779,9 +6871,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6792,9 +6885,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6810,9 +6904,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6828,9 +6923,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6842,7 +6938,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6865,9 +6961,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6878,9 +6975,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6893,9 +6991,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6908,9 +7007,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6918,7 +7018,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6934,9 +7034,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6947,9 +7048,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6965,9 +7067,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6978,9 +7081,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7027,9 +7131,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -7042,9 +7147,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7052,7 +7158,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7068,9 +7174,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7081,9 +7188,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7099,9 +7207,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7112,9 +7221,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7130,9 +7240,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7148,9 +7259,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7193,7 +7305,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7203,7 +7315,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7219,9 +7331,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7232,9 +7345,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7250,9 +7364,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7263,9 +7378,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7281,9 +7397,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7299,9 +7416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7313,7 +7431,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7477,7 +7595,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7488,7 +7606,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7504,9 +7622,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7517,9 +7636,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7535,9 +7655,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7548,9 +7669,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7566,9 +7688,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7584,9 +7707,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7598,7 +7722,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7621,9 +7745,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7634,9 +7759,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7649,9 +7775,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7664,9 +7791,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7674,7 +7802,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7690,9 +7818,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7703,9 +7832,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7721,9 +7851,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7734,9 +7865,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7783,9 +7915,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -7798,9 +7931,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7808,7 +7942,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7824,9 +7958,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7837,9 +7972,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7855,9 +7991,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7868,9 +8005,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7886,9 +8024,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7904,9 +8043,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7949,7 +8089,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7959,7 +8099,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7975,9 +8115,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7988,9 +8129,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -8006,9 +8148,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -8019,9 +8162,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -8037,9 +8181,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -8055,9 +8200,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -8069,7 +8215,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.txt index 0258fd857..4ea445c52 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-auto-hook.span-tree.txt @@ -911,9 +911,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -925,9 +926,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -935,7 +937,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -950,9 +952,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -968,9 +971,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -985,9 +989,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1003,9 +1008,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1020,9 +1026,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1038,9 +1045,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1055,9 +1063,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1073,9 +1082,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1095,9 +1105,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1109,9 +1120,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1119,7 +1131,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1134,9 +1146,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1152,9 +1165,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1200,9 +1214,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1214,9 +1229,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1224,7 +1240,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1239,9 +1255,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1257,9 +1274,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1274,9 +1292,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1292,9 +1311,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1340,9 +1360,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1354,9 +1375,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1364,7 +1386,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1379,9 +1401,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1397,9 +1420,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1414,9 +1438,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1432,9 +1457,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1449,9 +1475,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1467,9 +1494,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1515,9 +1543,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1529,9 +1558,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1539,7 +1569,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1554,9 +1584,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1572,9 +1603,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1589,9 +1621,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1607,9 +1640,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1624,9 +1658,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1642,9 +1677,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1659,9 +1695,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1677,9 +1714,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1726,9 +1764,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1742,9 +1781,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1868,9 +1908,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1937,6 +1978,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -1962,9 +2006,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1980,9 +2025,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2022,9 +2068,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2091,6 +2138,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2116,9 +2166,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2134,9 +2185,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2151,9 +2203,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2169,9 +2222,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2211,9 +2265,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2280,6 +2335,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2305,9 +2363,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2323,9 +2382,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2340,9 +2400,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2358,9 +2419,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2375,9 +2437,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2393,9 +2456,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2435,9 +2499,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2504,6 +2569,9 @@ span_tree: │ "location": "Paris, France" │ } │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ metadata: { + │ "toolCallId": "" + │ } ├── generateText [function] │ input: { │ "maxOutputTokens": 24, @@ -5712,7 +5780,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5723,7 +5791,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5739,9 +5807,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5752,9 +5821,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5770,9 +5840,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5783,9 +5854,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5801,9 +5873,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5819,9 +5892,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5833,7 +5907,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5856,9 +5930,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5869,9 +5944,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5884,9 +5960,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5899,9 +5976,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5909,7 +5987,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5925,9 +6003,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5938,9 +6017,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5956,9 +6036,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5969,9 +6050,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6018,9 +6100,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -6033,9 +6116,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6043,7 +6127,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6059,9 +6143,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6072,9 +6157,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6090,9 +6176,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6103,9 +6190,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6121,9 +6209,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6139,9 +6228,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6184,7 +6274,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6194,7 +6284,7 @@ span_tree: "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6210,9 +6300,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6223,9 +6314,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6241,9 +6333,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6254,9 +6347,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6272,9 +6366,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6290,9 +6385,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6304,7 +6400,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6533,7 +6629,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6544,7 +6640,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6560,9 +6656,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6573,9 +6670,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6591,9 +6689,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6604,9 +6703,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6622,9 +6722,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6640,9 +6741,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6654,7 +6756,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6677,9 +6779,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6690,9 +6793,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6705,9 +6809,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6720,9 +6825,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6730,7 +6836,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6746,9 +6852,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6759,9 +6866,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6777,9 +6885,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6790,9 +6899,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6839,9 +6949,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -6854,9 +6965,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6864,7 +6976,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6880,9 +6992,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6893,9 +7006,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6911,9 +7025,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6924,9 +7039,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6942,9 +7058,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6960,9 +7077,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7005,7 +7123,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7015,7 +7133,7 @@ span_tree: "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7031,9 +7149,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7044,9 +7163,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7062,9 +7182,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7075,9 +7196,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7093,9 +7215,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7111,9 +7234,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7125,7 +7249,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7362,9 +7486,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -7372,9 +7497,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -7442,12 +7568,18 @@ span_tree: │ "store": "StoreA" │ } │ output: "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── get_store_price [tool] │ input: { │ "item": "laptop", │ "store": "StoreB" │ } │ output: "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── doGenerate [llm] │ input: { │ "maxOutputTokens": 256, @@ -7492,9 +7624,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -7505,9 +7638,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -7523,9 +7657,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -7536,9 +7671,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -7607,9 +7743,10 @@ span_tree: │ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -7677,6 +7814,9 @@ span_tree: │ "total": 999 │ } │ output: "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + │ metadata: { + │ "toolCallId": "" + │ } └── doGenerate [llm] input: { "maxOutputTokens": 256, @@ -7721,9 +7861,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7734,9 +7875,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7752,9 +7894,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7765,9 +7908,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7783,9 +7927,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7801,9 +7946,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.json index 56852acc9..72259afcc 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.json @@ -1009,9 +1009,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1084,7 +1085,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1114,9 +1118,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1132,9 +1137,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1174,9 +1180,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1249,7 +1256,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1279,9 +1289,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1297,9 +1308,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1314,9 +1326,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1332,9 +1345,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1374,9 +1388,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1449,7 +1464,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1479,9 +1497,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1497,9 +1516,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1514,9 +1534,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1532,9 +1553,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1549,9 +1571,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1567,9 +1590,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1609,9 +1633,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1684,7 +1709,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } } ], "input": { @@ -1739,9 +1767,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1753,9 +1782,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1763,7 +1793,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1778,9 +1808,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1796,9 +1827,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1813,9 +1845,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1831,9 +1864,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1848,9 +1882,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1866,9 +1901,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1883,9 +1919,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1901,9 +1938,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1923,9 +1961,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1937,9 +1976,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1951,7 +1991,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1966,9 +2006,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1984,9 +2025,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2035,9 +2077,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2049,9 +2092,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2063,7 +2107,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2078,9 +2122,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2096,9 +2141,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2113,9 +2159,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2131,9 +2178,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2182,9 +2230,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2196,9 +2245,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2210,7 +2260,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2225,9 +2275,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2243,9 +2294,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2260,9 +2312,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2278,9 +2331,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2295,9 +2349,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2313,9 +2368,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2364,9 +2420,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2378,9 +2435,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2392,7 +2450,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2407,9 +2465,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2425,9 +2484,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2442,9 +2502,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2460,9 +2521,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2477,9 +2539,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2495,9 +2558,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2512,9 +2576,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2530,9 +2595,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2582,9 +2648,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2598,9 +2665,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6213,9 +6281,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6223,9 +6292,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6299,7 +6369,10 @@ "item": "laptop", "store": "StoreA" }, - "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "get_store_price", @@ -6309,7 +6382,10 @@ "item": "laptop", "store": "StoreB" }, - "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -6358,9 +6434,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6371,9 +6448,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6389,9 +6467,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6402,9 +6481,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6473,9 +6553,10 @@ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6549,7 +6630,10 @@ "discountCode": "SAVE20", "total": 999 }, - "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -6598,9 +6682,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6611,9 +6696,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6629,9 +6715,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6642,9 +6729,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6660,9 +6748,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6678,9 +6767,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6905,7 +6995,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6916,7 +7006,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6932,9 +7022,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6945,9 +7036,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6963,9 +7055,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6976,9 +7069,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6994,9 +7088,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7012,9 +7107,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7026,7 +7122,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7049,9 +7145,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7062,9 +7159,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7077,9 +7175,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7092,9 +7191,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7106,7 +7206,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7122,9 +7222,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7135,9 +7236,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7153,9 +7255,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7166,9 +7269,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7218,9 +7322,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -7233,9 +7338,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7247,7 +7353,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7263,9 +7369,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7276,9 +7383,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7294,9 +7402,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7307,9 +7416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7325,9 +7435,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7343,9 +7454,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7391,7 +7503,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7405,7 +7517,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7421,9 +7533,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7434,9 +7547,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7452,9 +7566,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7465,9 +7580,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7483,9 +7599,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7501,9 +7618,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7515,7 +7633,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7685,7 +7803,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7696,7 +7814,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7712,9 +7830,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7725,9 +7844,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7743,9 +7863,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7756,9 +7877,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7774,9 +7896,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7792,9 +7915,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7806,7 +7930,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7829,9 +7953,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7842,9 +7967,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7857,9 +7983,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7872,9 +7999,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7886,7 +8014,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7902,9 +8030,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7915,9 +8044,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7933,9 +8063,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7946,9 +8077,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7998,9 +8130,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -8013,9 +8146,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -8027,7 +8161,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -8043,9 +8177,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -8056,9 +8191,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -8074,9 +8210,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -8087,9 +8224,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -8105,9 +8243,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -8123,9 +8262,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -8171,7 +8311,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -8185,7 +8325,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -8201,9 +8341,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -8214,9 +8355,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -8232,9 +8374,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -8245,9 +8388,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -8263,9 +8407,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -8281,9 +8426,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -8295,7 +8441,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.txt index 27b9b23f8..5d687c3e8 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-auto-hook.span-tree.txt @@ -942,9 +942,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -956,9 +957,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -966,7 +968,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -981,9 +983,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -999,9 +1002,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1016,9 +1020,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1034,9 +1039,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1051,9 +1057,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1069,9 +1076,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1086,9 +1094,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1104,9 +1113,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1126,9 +1136,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1140,9 +1151,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1154,7 +1166,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1169,9 +1181,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1187,9 +1200,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1238,9 +1252,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1252,9 +1267,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1266,7 +1282,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1281,9 +1297,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1299,9 +1316,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1316,9 +1334,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1334,9 +1353,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1385,9 +1405,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1399,9 +1420,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1413,7 +1435,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1428,9 +1450,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1446,9 +1469,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1463,9 +1487,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1481,9 +1506,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1498,9 +1524,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1516,9 +1543,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1567,9 +1595,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1581,9 +1610,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1595,7 +1625,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1610,9 +1640,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1628,9 +1659,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1645,9 +1677,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1663,9 +1696,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1680,9 +1714,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1698,9 +1733,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1715,9 +1751,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1733,9 +1770,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1785,9 +1823,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1801,9 +1840,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1930,9 +1970,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2002,6 +2043,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2027,9 +2071,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2045,9 +2090,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2087,9 +2133,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2159,6 +2206,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2184,9 +2234,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2202,9 +2253,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2219,9 +2271,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2237,9 +2290,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2279,9 +2333,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2351,6 +2406,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2376,9 +2434,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2394,9 +2453,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2411,9 +2471,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2429,9 +2490,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2446,9 +2508,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2464,9 +2527,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2506,9 +2570,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2578,6 +2643,9 @@ span_tree: │ "location": "Paris, France" │ } │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ metadata: { + │ "toolCallId": "" + │ } ├── generateText [function] │ input: { │ "maxOutputTokens": 24, @@ -5887,7 +5955,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5898,7 +5966,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5914,9 +5982,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5927,9 +5996,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5945,9 +6015,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5958,9 +6029,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5976,9 +6048,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5994,9 +6067,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6008,7 +6082,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6031,9 +6105,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6044,9 +6119,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6059,9 +6135,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6074,9 +6151,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6088,7 +6166,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6104,9 +6182,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6117,9 +6196,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6135,9 +6215,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6148,9 +6229,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6200,9 +6282,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -6215,9 +6298,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6229,7 +6313,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6245,9 +6329,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6258,9 +6343,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6276,9 +6362,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6289,9 +6376,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6307,9 +6395,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6325,9 +6414,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6373,7 +6463,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6387,7 +6477,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6403,9 +6493,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6416,9 +6507,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6434,9 +6526,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6447,9 +6540,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6465,9 +6559,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6483,9 +6578,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6497,7 +6593,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6732,7 +6828,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6743,7 +6839,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6759,9 +6855,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6772,9 +6869,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6790,9 +6888,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6803,9 +6902,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6821,9 +6921,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6839,9 +6940,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6853,7 +6955,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6876,9 +6978,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6889,9 +6992,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6904,9 +7008,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6919,9 +7024,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6933,7 +7039,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6949,9 +7055,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6962,9 +7069,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6980,9 +7088,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6993,9 +7102,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7045,9 +7155,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -7060,9 +7171,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7074,7 +7186,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7090,9 +7202,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7103,9 +7216,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7121,9 +7235,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7134,9 +7249,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7152,9 +7268,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7170,9 +7287,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7218,7 +7336,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7232,7 +7350,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7248,9 +7366,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7261,9 +7380,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7279,9 +7399,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7292,9 +7413,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -7310,9 +7432,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -7328,9 +7451,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -7342,7 +7466,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -7585,9 +7709,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -7595,9 +7720,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -7668,12 +7794,18 @@ span_tree: │ "store": "StoreA" │ } │ output: "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── get_store_price [tool] │ input: { │ "item": "laptop", │ "store": "StoreB" │ } │ output: "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── doGenerate [llm] │ input: { │ "maxOutputTokens": 256, @@ -7718,9 +7850,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -7731,9 +7864,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -7749,9 +7883,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -7762,9 +7897,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -7833,9 +7969,10 @@ span_tree: │ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -7906,6 +8043,9 @@ span_tree: │ "total": 999 │ } │ output: "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + │ metadata: { + │ "toolCallId": "" + │ } └── doGenerate [llm] input: { "maxOutputTokens": 256, @@ -7950,9 +8090,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -7963,9 +8104,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -7981,9 +8123,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -7994,9 +8137,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -8012,9 +8156,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -8030,9 +8175,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.json index d5c812b7f..a8197eceb 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.json @@ -1009,9 +1009,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1084,7 +1085,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1114,9 +1118,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1132,9 +1137,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1174,9 +1180,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1249,7 +1256,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1279,9 +1289,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1297,9 +1308,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1314,9 +1326,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1332,9 +1345,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1374,9 +1388,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1449,7 +1464,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1479,9 +1497,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1497,9 +1516,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1514,9 +1534,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1532,9 +1553,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1549,9 +1571,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1567,9 +1590,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1609,9 +1633,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1684,7 +1709,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } } ], "input": { @@ -1739,9 +1767,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1753,9 +1782,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1763,7 +1793,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1778,9 +1808,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1796,9 +1827,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1813,9 +1845,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1831,9 +1864,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1848,9 +1882,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1866,9 +1901,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1883,9 +1919,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1901,9 +1938,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1923,9 +1961,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1937,9 +1976,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1951,7 +1991,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1966,9 +2006,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1984,9 +2025,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2035,9 +2077,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2049,9 +2092,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2063,7 +2107,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2078,9 +2122,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2096,9 +2141,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2113,9 +2159,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2131,9 +2178,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2182,9 +2230,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2196,9 +2245,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2210,7 +2260,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2225,9 +2275,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2243,9 +2294,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2260,9 +2312,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2278,9 +2331,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2295,9 +2349,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2313,9 +2368,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2364,9 +2420,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2378,9 +2435,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2392,7 +2450,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2407,9 +2465,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2425,9 +2484,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2442,9 +2502,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2460,9 +2521,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2477,9 +2539,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2495,9 +2558,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2512,9 +2576,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2530,9 +2595,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2582,9 +2648,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2598,9 +2665,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5372,9 +5440,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5382,9 +5451,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5458,7 +5528,10 @@ "item": "laptop", "store": "StoreA" }, - "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "get_store_price", @@ -5468,7 +5541,10 @@ "item": "laptop", "store": "StoreB" }, - "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -5517,9 +5593,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5530,9 +5607,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5548,9 +5626,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5561,9 +5640,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5632,9 +5712,10 @@ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5708,7 +5789,10 @@ "discountCode": "SAVE20", "total": 999 }, - "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -5757,9 +5841,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5770,9 +5855,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5788,9 +5874,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5801,9 +5888,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5819,9 +5907,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5837,9 +5926,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6064,7 +6154,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6075,7 +6165,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6091,9 +6181,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6104,9 +6195,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6122,9 +6214,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6135,9 +6228,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6153,9 +6247,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6171,9 +6266,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6185,7 +6281,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6208,9 +6304,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6221,9 +6318,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6236,9 +6334,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6251,9 +6350,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6265,7 +6365,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6281,9 +6381,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6294,9 +6395,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6312,9 +6414,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6325,9 +6428,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6377,9 +6481,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -6392,9 +6497,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6406,7 +6512,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6422,9 +6528,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6435,9 +6542,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6453,9 +6561,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6466,9 +6575,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6484,9 +6594,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6502,9 +6613,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6550,7 +6662,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6564,7 +6676,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6580,9 +6692,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6593,9 +6706,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6611,9 +6725,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6624,9 +6739,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6642,9 +6758,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6660,9 +6777,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6674,7 +6792,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.txt index 50a0d97d5..146b3281c 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-latest-wrapped.span-tree.txt @@ -942,9 +942,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -956,9 +957,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -966,7 +968,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -981,9 +983,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -999,9 +1002,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1016,9 +1020,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1034,9 +1039,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1051,9 +1057,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1069,9 +1076,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1086,9 +1094,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1104,9 +1113,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1126,9 +1136,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1140,9 +1151,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1154,7 +1166,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1169,9 +1181,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1187,9 +1200,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1238,9 +1252,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1252,9 +1267,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1266,7 +1282,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1281,9 +1297,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1299,9 +1316,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1316,9 +1334,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1334,9 +1353,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1385,9 +1405,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1399,9 +1420,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1413,7 +1435,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1428,9 +1450,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1446,9 +1469,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1463,9 +1487,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1481,9 +1506,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1498,9 +1524,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1516,9 +1543,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1567,9 +1595,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1581,9 +1610,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1595,7 +1625,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1610,9 +1640,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1628,9 +1659,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1645,9 +1677,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1663,9 +1696,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1680,9 +1714,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1698,9 +1733,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1715,9 +1751,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1733,9 +1770,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1785,9 +1823,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1801,9 +1840,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1930,9 +1970,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2002,6 +2043,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2027,9 +2071,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2045,9 +2090,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2087,9 +2133,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2159,6 +2206,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2184,9 +2234,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2202,9 +2253,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2219,9 +2271,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2237,9 +2290,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2279,9 +2333,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2351,6 +2406,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2376,9 +2434,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2394,9 +2453,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2411,9 +2471,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2429,9 +2490,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2446,9 +2508,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2464,9 +2527,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2506,9 +2570,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2578,6 +2643,9 @@ span_tree: │ "location": "Paris, France" │ } │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ metadata: { + │ "toolCallId": "" + │ } ├── ai-sdk-openai-cache-operation │ metadata: { │ "operation": "openai-cache", @@ -5144,7 +5212,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5155,7 +5223,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5171,9 +5239,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5184,9 +5253,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5202,9 +5272,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5215,9 +5286,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5233,9 +5305,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5251,9 +5324,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5265,7 +5339,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5288,9 +5362,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5301,9 +5376,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5316,9 +5392,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5331,9 +5408,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5345,7 +5423,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5361,9 +5439,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5374,9 +5453,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5392,9 +5472,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5405,9 +5486,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5457,9 +5539,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5472,9 +5555,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5486,7 +5570,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5502,9 +5586,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5515,9 +5600,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5533,9 +5619,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5546,9 +5633,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5564,9 +5652,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5582,9 +5671,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5630,7 +5720,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5644,7 +5734,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5660,9 +5750,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5673,9 +5764,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5691,9 +5783,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5704,9 +5797,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5722,9 +5816,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5740,9 +5835,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5754,7 +5850,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A**. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5997,9 +6093,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -6007,9 +6104,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -6080,12 +6178,18 @@ span_tree: │ "store": "StoreA" │ } │ output: "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── get_store_price [tool] │ input: { │ "item": "laptop", │ "store": "StoreB" │ } │ output: "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── doGenerate [llm] │ input: { │ "maxOutputTokens": 256, @@ -6130,9 +6234,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -6143,9 +6248,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -6161,9 +6267,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -6174,9 +6281,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -6245,9 +6353,10 @@ span_tree: │ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -6318,6 +6427,9 @@ span_tree: │ "total": 999 │ } │ output: "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + │ metadata: { + │ "toolCallId": "" + │ } └── doGenerate [llm] input: { "maxOutputTokens": 256, @@ -6362,9 +6474,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6375,9 +6488,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6393,9 +6507,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6406,9 +6521,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6424,9 +6540,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6442,9 +6559,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.json index 81db352a6..296890390 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.json @@ -978,9 +978,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1050,7 +1051,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1080,9 +1084,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1098,9 +1103,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1140,9 +1146,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1212,7 +1219,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1242,9 +1252,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1260,9 +1271,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1277,9 +1289,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1295,9 +1308,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1337,9 +1351,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1409,7 +1424,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -1439,9 +1457,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1457,9 +1476,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1474,9 +1494,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1492,9 +1513,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1509,9 +1531,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1527,9 +1550,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1569,9 +1593,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1641,7 +1666,10 @@ "input": { "location": "Paris, France" }, - "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", + "metadata": { + "toolCallId": "" + } } ], "input": { @@ -1696,9 +1724,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1710,9 +1739,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1720,7 +1750,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1735,9 +1765,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1753,9 +1784,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1770,9 +1802,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1788,9 +1821,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1805,9 +1839,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1823,9 +1858,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1840,9 +1876,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1858,9 +1895,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1880,9 +1918,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1894,9 +1933,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1904,7 +1944,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1919,9 +1959,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1937,9 +1978,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1985,9 +2027,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1999,9 +2042,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2009,7 +2053,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2024,9 +2068,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2042,9 +2087,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2059,9 +2105,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2077,9 +2124,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2125,9 +2173,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2139,9 +2188,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2149,7 +2199,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2164,9 +2214,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2182,9 +2233,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2199,9 +2251,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2217,9 +2270,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2234,9 +2288,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2252,9 +2307,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2300,9 +2356,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2314,9 +2371,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2324,7 +2382,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2339,9 +2397,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2357,9 +2416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2374,9 +2434,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2392,9 +2453,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2409,9 +2471,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2427,9 +2490,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2444,9 +2508,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2462,9 +2527,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2511,9 +2577,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2527,9 +2594,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5225,9 +5293,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5235,9 +5304,10 @@ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5308,7 +5378,10 @@ "item": "laptop", "store": "StoreA" }, - "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "get_store_price", @@ -5318,7 +5391,10 @@ "item": "laptop", "store": "StoreB" }, - "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -5367,9 +5443,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5380,9 +5457,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5398,9 +5476,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5411,9 +5490,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5482,9 +5562,10 @@ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5555,7 +5636,10 @@ "discountCode": "SAVE20", "total": 999 }, - "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", + "metadata": { + "toolCallId": "" + } }, { "name": "doGenerate", @@ -5604,9 +5688,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5617,9 +5702,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5635,9 +5721,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5648,9 +5735,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5666,9 +5754,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5684,9 +5773,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5908,7 +5998,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5919,7 +6009,7 @@ "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5935,9 +6025,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5948,9 +6039,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5966,9 +6058,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5979,9 +6072,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5997,9 +6091,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6015,9 +6110,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6029,7 +6125,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6052,9 +6148,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6065,9 +6162,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6080,9 +6178,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6095,9 +6194,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6105,7 +6205,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6121,9 +6221,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6134,9 +6235,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6152,9 +6254,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6165,9 +6268,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6214,9 +6318,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -6229,9 +6334,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6239,7 +6345,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6255,9 +6361,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6268,9 +6375,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6286,9 +6394,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6299,9 +6408,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6317,9 +6427,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6335,9 +6446,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6380,7 +6492,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -6390,7 +6502,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6406,9 +6518,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6419,9 +6532,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6437,9 +6551,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6450,9 +6565,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6468,9 +6584,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6486,9 +6603,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -6500,7 +6618,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.txt index b8d9f1d51..e78d7a23e 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v6-wrapped.span-tree.txt @@ -911,9 +911,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -925,9 +926,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -935,7 +937,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -950,9 +952,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -968,9 +971,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -985,9 +989,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1003,9 +1008,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1020,9 +1026,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1038,9 +1045,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1055,9 +1063,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1073,9 +1082,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1095,9 +1105,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1109,9 +1120,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1119,7 +1131,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1134,9 +1146,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1152,9 +1165,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1200,9 +1214,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1214,9 +1229,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1224,7 +1240,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1239,9 +1255,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1257,9 +1274,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1274,9 +1292,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1292,9 +1311,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1340,9 +1360,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1354,9 +1375,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1364,7 +1386,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1379,9 +1401,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1397,9 +1420,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1414,9 +1438,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1432,9 +1457,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1449,9 +1475,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1467,9 +1494,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1515,9 +1543,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1529,9 +1558,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1539,7 +1569,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1554,9 +1584,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1572,9 +1603,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1589,9 +1621,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1607,9 +1640,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1624,9 +1658,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1642,9 +1677,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1659,9 +1695,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1677,9 +1714,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1726,9 +1764,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1742,9 +1781,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1868,9 +1908,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1937,6 +1978,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -1962,9 +2006,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1980,9 +2025,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2022,9 +2068,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2091,6 +2138,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2116,9 +2166,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2134,9 +2185,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2151,9 +2203,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2169,9 +2222,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2211,9 +2265,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2280,6 +2335,9 @@ span_tree: │ │ "location": "Paris, France" │ │ } │ │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doGenerate [llm] │ │ input: { │ │ "maxOutputTokens": 128, @@ -2305,9 +2363,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2323,9 +2382,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2340,9 +2400,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2358,9 +2419,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2375,9 +2437,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2393,9 +2456,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2435,9 +2499,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2504,6 +2569,9 @@ span_tree: │ "location": "Paris, France" │ } │ output: "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}" + │ metadata: { + │ "toolCallId": "" + │ } ├── ai-sdk-openai-cache-operation │ metadata: { │ "operation": "openai-cache", @@ -4997,7 +5065,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5008,7 +5076,7 @@ span_tree: "output": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5024,9 +5092,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5037,9 +5106,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5055,9 +5125,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5068,9 +5139,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5086,9 +5158,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5104,9 +5177,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5118,7 +5192,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5141,9 +5215,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5154,9 +5229,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5169,9 +5245,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5184,9 +5261,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5194,7 +5272,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5210,9 +5288,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5223,9 +5302,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5241,9 +5321,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5254,9 +5335,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5303,9 +5385,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5318,9 +5401,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5328,7 +5412,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5344,9 +5428,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5357,9 +5442,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5375,9 +5461,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5388,9 +5475,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5406,9 +5494,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5424,9 +5513,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5469,7 +5559,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5479,7 +5569,7 @@ span_tree: "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5495,9 +5585,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5508,9 +5599,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5526,9 +5618,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5539,9 +5632,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5557,9 +5651,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5575,9 +5670,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5589,7 +5685,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5826,9 +5922,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -5836,9 +5933,10 @@ span_tree: │ "input": "{\"item\":\"laptop\",\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -5906,12 +6004,18 @@ span_tree: │ "store": "StoreA" │ } │ output: "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── get_store_price [tool] │ input: { │ "item": "laptop", │ "store": "StoreB" │ } │ output: "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}" + │ metadata: { + │ "toolCallId": "" + │ } ├── doGenerate [llm] │ input: { │ "maxOutputTokens": 256, @@ -5956,9 +6060,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -5969,9 +6074,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -5987,9 +6093,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -6000,9 +6107,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -6071,9 +6179,10 @@ span_tree: │ "input": "{\"discountCode\":\"SAVE20\",\"total\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -6141,6 +6250,9 @@ span_tree: │ "total": 999 │ } │ output: "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}" + │ metadata: { + │ "toolCallId": "" + │ } └── doGenerate [llm] input: { "maxOutputTokens": 256, @@ -6185,9 +6297,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -6198,9 +6311,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -6216,9 +6330,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -6229,9 +6344,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -6247,9 +6363,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -6265,9 +6382,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.json index d063363ed..28f97e365 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.json @@ -1065,9 +1065,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1126,6 +1127,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1149,9 +1151,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1167,9 +1170,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1212,9 +1216,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1273,6 +1278,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1296,9 +1302,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1314,9 +1321,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1331,9 +1339,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1349,9 +1358,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1394,9 +1404,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1455,6 +1466,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1478,9 +1490,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1496,9 +1509,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1513,9 +1527,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1531,9 +1546,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1548,9 +1564,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1566,9 +1583,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1611,9 +1629,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1672,6 +1691,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } } @@ -1720,9 +1740,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1734,9 +1755,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1746,9 +1768,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1760,9 +1783,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1772,9 +1796,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1786,9 +1811,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1798,9 +1824,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1812,9 +1839,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1822,7 +1850,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1836,9 +1864,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1854,9 +1883,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1878,9 +1908,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1892,9 +1923,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1906,7 +1938,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1920,9 +1952,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1938,9 +1971,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1988,9 +2022,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2002,9 +2037,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2016,7 +2052,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2030,9 +2066,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2048,9 +2085,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2098,9 +2136,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2112,9 +2151,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2126,7 +2166,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2140,9 +2180,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2158,9 +2199,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2208,9 +2250,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2222,9 +2265,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2236,7 +2280,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2250,9 +2294,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2268,9 +2313,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2318,9 +2364,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2330,9 +2377,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2342,9 +2390,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2354,9 +2403,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2370,9 +2420,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2384,9 +2435,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2398,9 +2450,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2412,9 +2465,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -4201,9 +4255,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4214,9 +4269,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4276,6 +4332,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4293,6 +4350,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4325,9 +4383,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4338,9 +4397,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4356,9 +4416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4369,9 +4430,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4444,9 +4506,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4506,6 +4569,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "apply_discount" } }, @@ -4538,9 +4602,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4551,9 +4616,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4569,9 +4635,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4582,9 +4649,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4600,9 +4668,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4618,9 +4687,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4817,9 +4887,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4830,9 +4901,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4845,9 +4917,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4860,9 +4933,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4873,9 +4947,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4888,16 +4963,17 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4907,7 +4983,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4918,7 +4994,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4943,9 +5019,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4956,9 +5033,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4971,9 +5049,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4986,9 +5065,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5000,7 +5080,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5015,9 +5095,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5028,9 +5109,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5046,9 +5128,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5059,9 +5142,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5110,9 +5194,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5125,9 +5210,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5139,7 +5225,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5154,9 +5240,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5172,9 +5259,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5219,7 +5307,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5233,7 +5321,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5244,7 +5332,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5295,9 +5383,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5308,9 +5397,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5321,9 +5411,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5338,9 +5429,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5353,9 +5445,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5368,9 +5461,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5452,6 +5546,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5537,6 +5632,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -5568,6 +5664,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5585,6 +5682,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5599,6 +5697,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5684,6 +5783,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -5715,6 +5815,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5732,6 +5833,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5744,6 +5846,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5761,6 +5864,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5775,6 +5879,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5860,6 +5965,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -5891,6 +5997,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5908,6 +6015,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5920,6 +6028,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5937,6 +6046,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5949,6 +6059,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5966,6 +6077,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5980,6 +6092,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6065,6 +6178,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -6086,6 +6200,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6093,7 +6208,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6113,6 +6228,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6124,7 +6240,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6171,6 +6287,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6182,7 +6299,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6229,6 +6346,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6240,7 +6358,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6287,6 +6405,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6298,7 +6417,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6345,6 +6464,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6436,6 +6556,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6521,6 +6642,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -6552,6 +6674,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6569,6 +6692,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6583,6 +6707,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6668,6 +6793,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -6699,6 +6825,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6716,6 +6843,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6728,6 +6856,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6745,6 +6874,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6759,6 +6889,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6844,6 +6975,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -6875,6 +7007,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6892,6 +7025,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6904,6 +7038,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6921,6 +7056,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6933,6 +7069,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6950,6 +7087,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6964,6 +7102,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7049,6 +7188,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" }, "metrics": { @@ -7070,6 +7210,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7077,7 +7218,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7097,6 +7238,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7108,7 +7250,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7155,6 +7297,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7166,7 +7309,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7213,6 +7356,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7224,7 +7368,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7271,6 +7415,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7282,7 +7427,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7329,6 +7474,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.txt index 48848bccd..801c1513e 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-auto-hook.span-tree.txt @@ -981,9 +981,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -995,9 +996,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1007,9 +1009,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1021,9 +1024,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1033,9 +1037,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1047,9 +1052,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1059,9 +1065,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1073,9 +1080,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1083,7 +1091,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1097,9 +1105,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1115,9 +1124,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1139,9 +1149,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1153,9 +1164,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1167,7 +1179,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1181,9 +1193,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1199,9 +1212,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1249,9 +1263,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1263,9 +1278,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1277,7 +1293,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1291,9 +1307,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1309,9 +1326,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1359,9 +1377,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1373,9 +1392,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1387,7 +1407,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1401,9 +1421,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1419,9 +1440,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1469,9 +1491,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1483,9 +1506,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1497,7 +1521,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1511,9 +1535,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1529,9 +1554,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1579,9 +1605,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1591,9 +1618,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1603,9 +1631,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1615,9 +1644,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1631,9 +1661,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1645,9 +1676,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1659,9 +1691,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1673,9 +1706,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1761,9 +1795,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1818,6 +1853,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1837,9 +1873,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1855,9 +1892,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -1900,9 +1938,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1957,6 +1996,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1976,9 +2016,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1994,9 +2035,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2011,9 +2053,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2029,9 +2072,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2074,9 +2118,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2131,6 +2176,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2150,9 +2196,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2168,9 +2215,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2185,9 +2233,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2203,9 +2252,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2220,9 +2270,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2238,9 +2289,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2283,9 +2335,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2340,6 +2393,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } ├── generateText [function] @@ -3990,9 +4044,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4003,9 +4058,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4018,9 +4074,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4033,9 +4090,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4046,9 +4104,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ }, @@ -4061,16 +4120,17 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ }, │ { │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4080,7 +4140,7 @@ span_tree: │ "finishReason": "stop", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4091,7 +4151,7 @@ span_tree: │ { │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4116,9 +4176,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4129,9 +4190,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4144,9 +4206,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4159,9 +4222,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4173,7 +4237,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4188,9 +4252,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4201,9 +4266,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4219,9 +4285,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4232,9 +4299,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4283,9 +4351,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ }, @@ -4298,9 +4367,10 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4312,7 +4382,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4327,9 +4397,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -4345,9 +4416,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4392,7 +4464,7 @@ span_tree: │ { │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4406,7 +4478,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4417,7 +4489,7 @@ span_tree: │ { │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4468,9 +4540,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4481,9 +4554,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4494,9 +4568,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -4511,9 +4586,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4526,9 +4602,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4541,9 +4618,10 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4667,9 +4745,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ }, @@ -4680,9 +4759,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ } @@ -4738,6 +4818,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price" │ │ } │ ├── get_store_price [tool] @@ -4751,6 +4832,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price" │ │ } │ ├── doGenerate [llm] @@ -4779,9 +4861,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ }, @@ -4792,9 +4875,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ } @@ -4810,9 +4894,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-result" │ │ }, @@ -4823,9 +4908,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-result" │ │ } @@ -4898,9 +4984,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "apply_discount", │ │ "type": "tool-call" │ │ } @@ -4956,6 +5043,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "apply_discount" │ │ } │ └── doGenerate [llm] @@ -4984,9 +5072,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4997,9 +5086,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -5015,9 +5105,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -5028,9 +5119,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -5046,9 +5138,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -5064,9 +5157,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -5202,6 +5296,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5209,7 +5304,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5229,6 +5324,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5240,7 +5336,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5287,6 +5383,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5298,7 +5395,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5345,6 +5442,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5356,7 +5454,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5403,6 +5501,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5414,7 +5513,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5461,6 +5560,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5535,6 +5635,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5616,6 +5717,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ │ metrics: { @@ -5643,6 +5745,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5660,6 +5763,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -5674,6 +5778,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5755,6 +5860,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ │ metrics: { @@ -5782,6 +5888,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5799,6 +5906,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -5811,6 +5919,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5828,6 +5937,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -5842,6 +5952,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5923,6 +6034,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ │ metrics: { @@ -5950,6 +6062,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5967,6 +6080,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -5979,6 +6093,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5996,6 +6111,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6008,6 +6124,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6025,6 +6142,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6039,6 +6157,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6120,6 +6239,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } │ metrics: { @@ -6145,6 +6265,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6152,7 +6273,7 @@ span_tree: "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6172,6 +6293,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6183,7 +6305,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6230,6 +6352,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6241,7 +6364,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6288,6 +6411,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6299,7 +6423,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6346,6 +6470,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6357,7 +6482,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6404,6 +6529,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6478,6 +6604,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6559,6 +6686,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } │ metrics: { @@ -6586,6 +6714,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6603,6 +6732,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6617,6 +6747,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6698,6 +6829,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } │ metrics: { @@ -6725,6 +6857,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6742,6 +6875,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6754,6 +6888,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6771,6 +6906,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6785,6 +6921,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6866,6 +7003,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } │ metrics: { @@ -6893,6 +7031,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6910,6 +7049,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6922,6 +7062,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6939,6 +7080,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6951,6 +7093,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6968,6 +7111,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -6982,6 +7126,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7063,6 +7208,7 @@ span_tree: "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } metrics: { diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.json index 8467f650d..a495d4aa3 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.json @@ -1065,9 +1065,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1126,6 +1127,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1149,9 +1151,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1167,9 +1170,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1212,9 +1216,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1273,6 +1278,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1296,9 +1302,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1314,9 +1321,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1331,9 +1339,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1349,9 +1358,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1394,9 +1404,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1455,6 +1466,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1478,9 +1490,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1496,9 +1509,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1513,9 +1527,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1531,9 +1546,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1548,9 +1564,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1566,9 +1583,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1611,9 +1629,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1672,6 +1691,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } } @@ -1720,9 +1740,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1734,9 +1755,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1746,9 +1768,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1760,9 +1783,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1772,9 +1796,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1786,9 +1811,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1798,9 +1824,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1812,9 +1839,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1822,7 +1850,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1836,9 +1864,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1854,9 +1883,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1878,9 +1908,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1892,9 +1923,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1906,7 +1938,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1920,9 +1952,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1938,9 +1971,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1988,9 +2022,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2002,9 +2037,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2016,7 +2052,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2030,9 +2066,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2048,9 +2085,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2098,9 +2136,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2112,9 +2151,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2126,7 +2166,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2140,9 +2180,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2158,9 +2199,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2208,9 +2250,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2222,9 +2265,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2236,7 +2280,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2250,9 +2294,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2268,9 +2313,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2318,9 +2364,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2330,9 +2377,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2342,9 +2390,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2354,9 +2403,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2370,9 +2420,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2384,9 +2435,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2398,9 +2450,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2412,9 +2465,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -4201,9 +4255,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4214,9 +4269,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4276,6 +4332,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4293,6 +4350,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4325,9 +4383,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4338,9 +4397,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4356,9 +4416,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4369,9 +4430,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4444,9 +4506,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4506,6 +4569,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "apply_discount" } }, @@ -4538,9 +4602,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4551,9 +4616,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4569,9 +4635,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4582,9 +4649,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4600,9 +4668,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4618,9 +4687,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4817,9 +4887,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4830,9 +4901,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4845,9 +4917,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4860,9 +4933,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4873,9 +4947,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4888,16 +4963,17 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4907,7 +4983,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4918,7 +4994,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4943,9 +5019,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4956,9 +5033,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4971,9 +5049,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4986,9 +5065,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5000,7 +5080,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5015,9 +5095,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5028,9 +5109,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5046,9 +5128,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5059,9 +5142,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5110,9 +5194,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5125,9 +5210,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5139,7 +5225,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5154,9 +5240,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5172,9 +5259,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5219,7 +5307,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5233,7 +5321,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5244,7 +5332,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5295,9 +5383,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5308,9 +5397,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5321,9 +5411,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5338,9 +5429,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5353,9 +5445,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5368,9 +5461,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5456,9 +5550,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5546,6 +5641,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -5573,6 +5671,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5590,6 +5689,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5608,9 +5708,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5698,6 +5799,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -5725,6 +5829,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5742,6 +5847,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5754,6 +5860,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5771,6 +5878,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5789,9 +5897,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5879,6 +5988,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -5906,6 +6018,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5923,6 +6036,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5935,6 +6049,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5952,6 +6067,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5964,6 +6080,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -5981,6 +6098,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -5999,9 +6117,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6089,6 +6208,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } } ], @@ -6121,6 +6243,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6138,6 +6261,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6150,6 +6274,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6167,6 +6292,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6179,6 +6305,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6196,6 +6323,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6208,6 +6336,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6225,6 +6354,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6234,12 +6364,13 @@ ], "steps": [ { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6254,7 +6385,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6278,6 +6409,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6310,12 +6442,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6330,7 +6463,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6354,6 +6487,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6386,12 +6520,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6406,7 +6541,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6430,6 +6565,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6462,12 +6598,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6482,7 +6619,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6506,6 +6643,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6543,6 +6681,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6557,6 +6696,7 @@ "location": "Paris, France", "temperatureC": 22 }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6640,9 +6780,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6730,6 +6871,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -6757,6 +6901,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6774,6 +6919,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6792,9 +6938,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6882,6 +7029,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -6909,6 +7059,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6926,6 +7077,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6938,6 +7090,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6955,6 +7108,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6973,9 +7127,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7063,6 +7218,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } }, { @@ -7090,6 +7248,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7107,6 +7266,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7119,6 +7279,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7136,6 +7297,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7148,6 +7310,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7165,6 +7328,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7183,9 +7347,10 @@ "input": "{\"location\":\"Paris, France\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7273,6 +7438,9 @@ "condition": "sunny", "location": "Paris, France", "temperatureC": 22 + }, + "metadata": { + "toolCallId": "" } } ], @@ -7301,6 +7469,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7318,6 +7487,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7330,6 +7500,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7347,6 +7518,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7359,6 +7531,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7376,6 +7549,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7388,6 +7562,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7405,6 +7580,7 @@ "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -7414,12 +7590,13 @@ ], "steps": [ { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7434,7 +7611,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7458,6 +7635,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7490,12 +7668,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7510,7 +7689,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7534,6 +7713,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7566,12 +7746,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7586,7 +7767,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7610,6 +7791,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7642,12 +7824,13 @@ "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7662,7 +7845,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -7686,6 +7869,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7723,6 +7907,7 @@ "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -7737,6 +7922,7 @@ "location": "Paris, France", "temperatureC": 22 }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.txt index bd6500d55..883a191e7 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-explicit.span-tree.txt @@ -981,9 +981,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -995,9 +996,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1007,9 +1009,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1021,9 +1024,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1033,9 +1037,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1047,9 +1052,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1059,9 +1065,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1073,9 +1080,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1083,7 +1091,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1097,9 +1105,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1115,9 +1124,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1139,9 +1149,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1153,9 +1164,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1167,7 +1179,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1181,9 +1193,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1199,9 +1212,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1249,9 +1263,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1263,9 +1278,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1277,7 +1293,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1291,9 +1307,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1309,9 +1326,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1359,9 +1377,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1373,9 +1392,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1387,7 +1407,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1401,9 +1421,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1419,9 +1440,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1469,9 +1491,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1483,9 +1506,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1497,7 +1521,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1511,9 +1535,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1529,9 +1554,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1579,9 +1605,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1591,9 +1618,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1603,9 +1631,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1615,9 +1644,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1631,9 +1661,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1645,9 +1676,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1659,9 +1691,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1673,9 +1706,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1761,9 +1795,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1818,6 +1853,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1837,9 +1873,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1855,9 +1892,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -1900,9 +1938,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1957,6 +1996,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1976,9 +2016,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1994,9 +2035,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2011,9 +2053,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2029,9 +2072,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2074,9 +2118,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2131,6 +2176,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2150,9 +2196,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2168,9 +2215,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2185,9 +2233,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2203,9 +2252,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2220,9 +2270,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2238,9 +2289,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2283,9 +2335,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2340,6 +2393,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } ├── generateText [function] @@ -3990,9 +4044,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4003,9 +4058,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4018,9 +4074,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4033,9 +4090,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4046,9 +4104,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ }, @@ -4061,16 +4120,17 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ }, │ { │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4080,7 +4140,7 @@ span_tree: │ "finishReason": "stop", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4091,7 +4151,7 @@ span_tree: │ { │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4116,9 +4176,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4129,9 +4190,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4144,9 +4206,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4159,9 +4222,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4173,7 +4237,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4188,9 +4252,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4201,9 +4266,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4219,9 +4285,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4232,9 +4299,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4283,9 +4351,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ }, @@ -4298,9 +4367,10 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4312,7 +4382,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4327,9 +4397,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -4345,9 +4416,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4392,7 +4464,7 @@ span_tree: │ { │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4406,7 +4478,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -4417,7 +4489,7 @@ span_tree: │ { │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, │ "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4468,9 +4540,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4481,9 +4554,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4494,9 +4568,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -4511,9 +4586,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4526,9 +4602,10 @@ span_tree: │ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4541,9 +4618,10 @@ span_tree: │ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -4667,9 +4745,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ }, @@ -4680,9 +4759,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ } @@ -4738,6 +4818,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price" │ │ } │ ├── get_store_price [tool] @@ -4751,6 +4832,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price" │ │ } │ ├── doGenerate [llm] @@ -4779,9 +4861,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ }, @@ -4792,9 +4875,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-call" │ │ } @@ -4810,9 +4894,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-result" │ │ }, @@ -4823,9 +4908,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_store_price", │ │ "type": "tool-result" │ │ } @@ -4898,9 +4984,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "apply_discount", │ │ "type": "tool-call" │ │ } @@ -4956,6 +5043,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "apply_discount" │ │ } │ └── doGenerate [llm] @@ -4984,9 +5072,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4997,9 +5086,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -5015,9 +5105,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -5028,9 +5119,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -5046,9 +5138,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -5064,9 +5157,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-result" │ } @@ -5217,6 +5311,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5234,6 +5329,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -5246,6 +5342,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5263,6 +5360,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -5275,6 +5373,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5292,6 +5391,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -5304,6 +5404,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5321,6 +5422,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -5330,12 +5432,13 @@ span_tree: │ ], │ "steps": [ │ { - │ "callId": "", + │ "callId": "", │ "content": [ │ { │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5350,7 +5453,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5374,6 +5477,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5406,12 +5510,13 @@ span_tree: │ "warnings": [] │ }, │ { - │ "callId": "", + │ "callId": "", │ "content": [ │ { │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5426,7 +5531,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5450,6 +5555,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5482,12 +5588,13 @@ span_tree: │ "warnings": [] │ }, │ { - │ "callId": "", + │ "callId": "", │ "content": [ │ { │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5502,7 +5609,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5526,6 +5633,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5558,12 +5666,13 @@ span_tree: │ "warnings": [] │ }, │ { - │ "callId": "", + │ "callId": "", │ "content": [ │ { │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5578,7 +5687,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -5602,6 +5711,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5639,6 +5749,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -5653,6 +5764,7 @@ span_tree: │ "location": "Paris, France", │ "temperatureC": 22 │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -5719,9 +5831,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5806,6 +5919,9 @@ span_tree: │ │ "location": "Paris, France", │ │ "temperatureC": 22 │ │ } + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doStream [llm] │ │ input: { │ │ "messages": [ @@ -5828,6 +5944,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5845,6 +5962,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -5863,9 +5981,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5950,6 +6069,9 @@ span_tree: │ │ "location": "Paris, France", │ │ "temperatureC": 22 │ │ } + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doStream [llm] │ │ input: { │ │ "messages": [ @@ -5972,6 +6094,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -5989,6 +6112,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6001,6 +6125,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6018,6 +6143,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6036,9 +6162,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6123,6 +6250,9 @@ span_tree: │ │ "location": "Paris, France", │ │ "temperatureC": 22 │ │ } + │ │ metadata: { + │ │ "toolCallId": "" + │ │ } │ ├── doStream [llm] │ │ input: { │ │ "messages": [ @@ -6145,6 +6275,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6162,6 +6293,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6174,6 +6306,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6191,6 +6324,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6203,6 +6337,7 @@ span_tree: │ │ "input": { │ │ "location": "Paris, France" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6220,6 +6355,7 @@ span_tree: │ │ "temperatureC": 22 │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -6238,9 +6374,10 @@ span_tree: │ │ "input": "{\"location\":\"Paris, France\"}", │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -6325,6 +6462,9 @@ span_tree: │ "location": "Paris, France", │ "temperatureC": 22 │ } + │ metadata: { + │ "toolCallId": "" + │ } └── ai-sdk-workflow-agent-stream-prompt-operation metadata: { "operation": "workflow-agent-stream-prompt", @@ -6356,6 +6496,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6373,6 +6514,7 @@ span_tree: "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6385,6 +6527,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6402,6 +6545,7 @@ span_tree: "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6414,6 +6558,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6431,6 +6576,7 @@ span_tree: "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6443,6 +6589,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6460,6 +6607,7 @@ span_tree: "temperatureC": 22 } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6469,12 +6617,13 @@ span_tree: ], "steps": [ { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6489,7 +6638,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6513,6 +6662,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6545,12 +6695,13 @@ span_tree: "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6565,7 +6716,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6589,6 +6740,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6621,12 +6773,13 @@ span_tree: "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6641,7 +6794,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6665,6 +6818,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6697,12 +6851,13 @@ span_tree: "warnings": [] }, { - "callId": "", + "callId": "", "content": [ { "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6717,7 +6872,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -6741,6 +6896,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6778,6 +6934,7 @@ span_tree: "input": { "location": "Paris, France" }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -6792,6 +6949,7 @@ span_tree: "location": "Paris, France", "temperatureC": 22 }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -6858,9 +7016,10 @@ span_tree: │ "input": "{\"location\":\"Paris, France\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6945,6 +7104,9 @@ span_tree: │ "location": "Paris, France", │ "temperatureC": 22 │ } + │ metadata: { + │ "toolCallId": "" + │ } ├── doStream [llm] │ input: { │ "messages": [ @@ -6967,6 +7129,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -6984,6 +7147,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7002,9 +7166,10 @@ span_tree: │ "input": "{\"location\":\"Paris, France\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7089,6 +7254,9 @@ span_tree: │ "location": "Paris, France", │ "temperatureC": 22 │ } + │ metadata: { + │ "toolCallId": "" + │ } ├── doStream [llm] │ input: { │ "messages": [ @@ -7111,6 +7279,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7128,6 +7297,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7140,6 +7310,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7157,6 +7328,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7175,9 +7347,10 @@ span_tree: │ "input": "{\"location\":\"Paris, France\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7262,6 +7435,9 @@ span_tree: │ "location": "Paris, France", │ "temperatureC": 22 │ } + │ metadata: { + │ "toolCallId": "" + │ } ├── doStream [llm] │ input: { │ "messages": [ @@ -7284,6 +7460,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7301,6 +7478,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7313,6 +7491,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7330,6 +7509,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7342,6 +7522,7 @@ span_tree: │ "input": { │ "location": "Paris, France" │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7359,6 +7540,7 @@ span_tree: │ "temperatureC": 22 │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -7377,9 +7559,10 @@ span_tree: │ "input": "{\"location\":\"Paris, France\"}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -7464,3 +7647,6 @@ span_tree: "location": "Paris, France", "temperatureC": 22 } + metadata: { + "toolCallId": "" + } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.json index 2d9a12695..cd82f5b3d 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.json @@ -1086,9 +1086,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1150,6 +1151,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1173,9 +1175,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1191,9 +1194,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1236,9 +1240,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1300,6 +1305,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1323,9 +1329,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1341,9 +1348,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1358,9 +1366,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1376,9 +1385,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1421,9 +1431,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1485,6 +1496,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1508,9 +1520,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1526,9 +1539,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1543,9 +1557,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1561,9 +1576,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1578,9 +1594,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1596,9 +1613,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1641,9 +1659,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1705,6 +1724,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } } @@ -1753,9 +1773,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1767,9 +1788,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1779,9 +1801,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1793,9 +1816,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1805,9 +1829,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1819,9 +1844,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1831,9 +1857,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1845,9 +1872,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1855,7 +1883,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1869,9 +1897,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1887,9 +1916,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1911,9 +1941,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1925,9 +1956,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1939,7 +1971,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1953,9 +1985,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1971,9 +2004,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2023,9 +2057,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2037,9 +2072,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2051,7 +2087,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2065,9 +2101,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2083,9 +2120,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2135,9 +2173,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2149,9 +2188,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2163,7 +2203,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2177,9 +2217,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2195,9 +2236,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2247,9 +2289,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2261,9 +2304,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2275,7 +2319,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2289,9 +2333,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2307,9 +2352,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2359,9 +2405,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2371,9 +2418,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2383,9 +2431,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2395,9 +2444,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2411,9 +2461,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2425,9 +2476,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2439,9 +2491,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2453,9 +2506,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -4268,9 +4322,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4281,9 +4336,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4346,6 +4402,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4363,6 +4420,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4395,9 +4453,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4408,9 +4467,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4426,9 +4486,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4439,9 +4500,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4514,9 +4576,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4579,6 +4642,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "apply_discount" } }, @@ -4611,9 +4675,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4624,9 +4689,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4642,9 +4708,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4655,9 +4722,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4673,9 +4741,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4691,9 +4760,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4893,9 +4963,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4906,9 +4977,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4921,9 +4993,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4936,9 +5009,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4949,9 +5023,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4964,16 +5039,17 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4983,7 +5059,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4994,7 +5070,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5019,9 +5095,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5032,9 +5109,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5047,9 +5125,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5062,9 +5141,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5076,7 +5156,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5091,9 +5171,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5104,9 +5185,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5122,9 +5204,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5135,9 +5218,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5188,9 +5272,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5203,9 +5288,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5217,7 +5303,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5232,9 +5318,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5250,9 +5337,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5299,7 +5387,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5313,7 +5401,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5324,7 +5412,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5377,9 +5465,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5390,9 +5479,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5403,9 +5493,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5420,9 +5511,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5435,9 +5527,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5450,9 +5543,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.txt index 7872c5950..e23d0fed6 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-auto-hook.span-tree.txt @@ -1001,9 +1001,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1015,9 +1016,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1027,9 +1029,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1041,9 +1044,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1053,9 +1057,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1067,9 +1072,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1079,9 +1085,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1093,9 +1100,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1103,7 +1111,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1117,9 +1125,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1135,9 +1144,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1159,9 +1169,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1173,9 +1184,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1187,7 +1199,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1201,9 +1213,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1219,9 +1232,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1271,9 +1285,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1285,9 +1300,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1299,7 +1315,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1313,9 +1329,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1331,9 +1348,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1383,9 +1401,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1397,9 +1416,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1411,7 +1431,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1425,9 +1445,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1443,9 +1464,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1495,9 +1517,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1509,9 +1532,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1523,7 +1547,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1537,9 +1561,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1555,9 +1580,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1607,9 +1633,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1619,9 +1646,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1631,9 +1659,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1643,9 +1672,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1659,9 +1689,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1673,9 +1704,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1687,9 +1719,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1701,9 +1734,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1791,9 +1825,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1851,6 +1886,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1870,9 +1906,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1888,9 +1925,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -1933,9 +1971,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1993,6 +2032,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2012,9 +2052,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2030,9 +2071,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2047,9 +2089,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2065,9 +2108,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2110,9 +2154,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2170,6 +2215,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2189,9 +2235,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2207,9 +2254,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2224,9 +2272,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2242,9 +2291,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2259,9 +2309,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2277,9 +2328,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2322,9 +2374,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2382,6 +2435,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } ├── generateText [function] @@ -4056,9 +4110,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4069,9 +4124,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4084,9 +4140,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4099,9 +4156,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4112,9 +4170,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4127,16 +4186,17 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4146,7 +4206,7 @@ span_tree: "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4157,7 +4217,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4182,9 +4242,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4195,9 +4256,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4210,9 +4272,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4225,9 +4288,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4239,7 +4303,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4254,9 +4318,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4267,9 +4332,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4285,9 +4351,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4298,9 +4365,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4351,9 +4419,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4366,9 +4435,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4380,7 +4450,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4395,9 +4465,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4413,9 +4484,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4462,7 +4534,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4476,7 +4548,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4487,7 +4559,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4540,9 +4612,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4553,9 +4626,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4566,9 +4640,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4583,9 +4658,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4598,9 +4674,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4613,9 +4690,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4741,9 +4819,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4754,9 +4833,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4815,6 +4895,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_store_price" │ } ├── get_store_price [tool] @@ -4828,6 +4909,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_store_price" │ } ├── doGenerate [llm] @@ -4856,9 +4938,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4869,9 +4952,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4887,9 +4971,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4900,9 +4985,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4975,9 +5061,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -5036,6 +5123,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "apply_discount" │ } └── doGenerate [llm] @@ -5064,9 +5152,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5077,9 +5166,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5095,9 +5185,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5108,9 +5199,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5126,9 +5218,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5144,9 +5237,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.json b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.json index 2d9a12695..cd82f5b3d 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.json +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.json @@ -1086,9 +1086,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1150,6 +1151,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1173,9 +1175,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1191,9 +1194,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1236,9 +1240,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1300,6 +1305,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1323,9 +1329,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1341,9 +1348,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1358,9 +1366,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1376,9 +1385,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1421,9 +1431,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1485,6 +1496,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } }, @@ -1508,9 +1520,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1526,9 +1539,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1543,9 +1557,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1561,9 +1576,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1578,9 +1594,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1596,9 +1613,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1641,9 +1659,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1705,6 +1724,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_weather" } } @@ -1753,9 +1773,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1767,9 +1788,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1779,9 +1801,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1793,9 +1816,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1805,9 +1829,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1819,9 +1844,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -1831,9 +1857,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1845,9 +1872,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1855,7 +1883,7 @@ "finishReason": "tool-calls", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1869,9 +1897,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1887,9 +1916,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1911,9 +1941,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -1925,9 +1956,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -1939,7 +1971,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -1953,9 +1985,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -1971,9 +2004,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2023,9 +2057,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2037,9 +2072,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2051,7 +2087,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2065,9 +2101,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2083,9 +2120,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2135,9 +2173,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2149,9 +2188,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2163,7 +2203,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2177,9 +2217,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2195,9 +2236,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2247,9 +2289,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2261,9 +2304,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2275,7 +2319,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -2289,9 +2333,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2307,9 +2352,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -2359,9 +2405,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2371,9 +2418,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2383,9 +2431,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" }, @@ -2395,9 +2444,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-call" } @@ -2411,9 +2461,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2425,9 +2476,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2439,9 +2491,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" }, @@ -2453,9 +2506,10 @@ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_weather", "type": "tool-result" } @@ -4268,9 +4322,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4281,9 +4336,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4346,6 +4402,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4363,6 +4420,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "get_store_price" } }, @@ -4395,9 +4453,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4408,9 +4467,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4426,9 +4486,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4439,9 +4500,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4514,9 +4576,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4579,6 +4642,7 @@ "integration_name": "ai-sdk", "sdk_language": "typescript" }, + "toolCallId": "", "toolName": "apply_discount" } }, @@ -4611,9 +4675,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4624,9 +4689,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4642,9 +4708,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4655,9 +4722,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4673,9 +4741,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4691,9 +4760,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4893,9 +4963,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4906,9 +4977,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4921,9 +4993,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4936,9 +5009,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4949,9 +5023,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4964,16 +5039,17 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4983,7 +5059,7 @@ "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4994,7 +5070,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5019,9 +5095,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5032,9 +5109,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5047,9 +5125,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5062,9 +5141,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5076,7 +5156,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5091,9 +5171,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5104,9 +5185,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5122,9 +5204,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5135,9 +5218,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5188,9 +5272,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -5203,9 +5288,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5217,7 +5303,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5232,9 +5318,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5250,9 +5337,10 @@ }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -5299,7 +5387,7 @@ { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5313,7 +5401,7 @@ }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -5324,7 +5412,7 @@ { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -5377,9 +5465,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5390,9 +5479,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5403,9 +5493,10 @@ }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5420,9 +5511,10 @@ "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5435,9 +5527,10 @@ "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5450,9 +5543,10 @@ "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.txt b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.txt index 7872c5950..e23d0fed6 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.txt +++ b/e2e/scenarios/ai-sdk-instrumentation/__snapshots__/ai-sdk-v7-latest-explicit.span-tree.txt @@ -1001,9 +1001,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1015,9 +1016,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1027,9 +1029,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1041,9 +1044,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1053,9 +1057,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1067,9 +1072,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1079,9 +1085,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1093,9 +1100,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1103,7 +1111,7 @@ span_tree: │ "finishReason": "tool-calls", │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1117,9 +1125,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1135,9 +1144,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1159,9 +1169,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1173,9 +1184,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1187,7 +1199,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1201,9 +1213,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1219,9 +1232,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1271,9 +1285,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1285,9 +1300,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1299,7 +1315,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1313,9 +1329,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1331,9 +1348,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1383,9 +1401,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1397,9 +1416,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1411,7 +1431,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1425,9 +1445,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1443,9 +1464,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1495,9 +1517,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1509,9 +1532,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1523,7 +1547,7 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "responseId": "", + │ "responseId": "", │ "serviceTier": "default" │ } │ }, @@ -1537,9 +1561,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1555,9 +1580,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1607,9 +1633,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1619,9 +1646,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1631,9 +1659,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ }, @@ -1643,9 +1672,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-call" │ } @@ -1659,9 +1689,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1673,9 +1704,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1687,9 +1719,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ }, @@ -1701,9 +1734,10 @@ span_tree: │ "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_weather", │ "type": "tool-result" │ } @@ -1791,9 +1825,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1851,6 +1886,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -1870,9 +1906,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1888,9 +1925,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -1933,9 +1971,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -1993,6 +2032,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2012,9 +2052,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2030,9 +2071,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2047,9 +2089,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2065,9 +2108,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2110,9 +2154,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2170,6 +2215,7 @@ span_tree: │ │ "integration_name": "ai-sdk", │ │ "sdk_language": "typescript" │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather" │ │ } │ ├── doGenerate [llm] @@ -2189,9 +2235,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2207,9 +2254,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2224,9 +2272,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2242,9 +2291,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2259,9 +2309,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2277,9 +2328,10 @@ span_tree: │ │ }, │ │ "providerOptions": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-result" │ │ } @@ -2322,9 +2374,10 @@ span_tree: │ │ }, │ │ "providerMetadata": { │ │ "openai": { - │ │ "itemId": "" + │ │ "itemId": "" │ │ } │ │ }, + │ │ "toolCallId": "", │ │ "toolName": "get_weather", │ │ "type": "tool-call" │ │ } @@ -2382,6 +2435,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_weather" │ } ├── generateText [function] @@ -4056,9 +4110,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4069,9 +4124,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4084,9 +4140,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4099,9 +4156,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4112,9 +4170,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4127,16 +4186,17 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" }, { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4146,7 +4206,7 @@ span_tree: "finishReason": "stop", "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4157,7 +4217,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4182,9 +4242,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4195,9 +4256,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4210,9 +4272,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4225,9 +4288,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4239,7 +4303,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4254,9 +4318,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4267,9 +4332,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -4285,9 +4351,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4298,9 +4365,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -4351,9 +4419,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" }, @@ -4366,9 +4435,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4380,7 +4450,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4395,9 +4465,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4413,9 +4484,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4462,7 +4534,7 @@ span_tree: { "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4476,7 +4548,7 @@ span_tree: }, "providerMetadata": { "openai": { - "responseId": "", + "responseId": "", "serviceTier": "default" } }, @@ -4487,7 +4559,7 @@ span_tree: { "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, "text": "Here are the prices for the laptop:\n\n- **Store A**: $999\n- **Store B**: $1099\n\nThe cheaper price is from **Store A** at $999. After applying the discount code **SAVE20**, the final total is **$799.20**.", @@ -4540,9 +4612,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4553,9 +4626,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -4566,9 +4640,10 @@ span_tree: }, "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -4583,9 +4658,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":999,\"store\":\"StoreA\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4598,9 +4674,10 @@ span_tree: "output": "{\"item\":\"laptop\",\"price\":1099,\"store\":\"StoreB\"}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -4613,9 +4690,10 @@ span_tree: "output": "{\"discountCode\":\"SAVE20\",\"finalTotal\":799.2,\"originalTotal\":999}", "providerMetadata": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } @@ -4741,9 +4819,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4754,9 +4833,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4815,6 +4895,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_store_price" │ } ├── get_store_price [tool] @@ -4828,6 +4909,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "get_store_price" │ } ├── doGenerate [llm] @@ -4856,9 +4938,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ }, @@ -4869,9 +4952,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-call" │ } @@ -4887,9 +4971,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ }, @@ -4900,9 +4985,10 @@ span_tree: │ }, │ "providerOptions": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "get_store_price", │ "type": "tool-result" │ } @@ -4975,9 +5061,10 @@ span_tree: │ }, │ "providerMetadata": { │ "openai": { - │ "itemId": "" + │ "itemId": "" │ } │ }, + │ "toolCallId": "", │ "toolName": "apply_discount", │ "type": "tool-call" │ } @@ -5036,6 +5123,7 @@ span_tree: │ "integration_name": "ai-sdk", │ "sdk_language": "typescript" │ }, + │ "toolCallId": "", │ "toolName": "apply_discount" │ } └── doGenerate [llm] @@ -5064,9 +5152,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" }, @@ -5077,9 +5166,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-call" } @@ -5095,9 +5185,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" }, @@ -5108,9 +5199,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "get_store_price", "type": "tool-result" } @@ -5126,9 +5218,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-call" } @@ -5144,9 +5237,10 @@ span_tree: }, "providerOptions": { "openai": { - "itemId": "" + "itemId": "" } }, + "toolCallId": "", "toolName": "apply_discount", "type": "tool-result" } diff --git a/e2e/scenarios/ai-sdk-instrumentation/assertions.ts b/e2e/scenarios/ai-sdk-instrumentation/assertions.ts index dd1686ded..bbe3a7dc6 100644 --- a/e2e/scenarios/ai-sdk-instrumentation/assertions.ts +++ b/e2e/scenarios/ai-sdk-instrumentation/assertions.ts @@ -292,16 +292,11 @@ function findRerankTrace(events: CapturedLogEvent[]) { function findToolTrace(events: CapturedLogEvent[]) { const operation = findLatestSpan(events, "ai-sdk-tool-operation"); const parent = findParentSpan(events, "generateText", operation?.span.id); - const toolSpans = findAllSpans(events, "get_weather").filter( - (event) => event.span.rootId === operation?.span.rootId, - ); - const modelChildren = events - .filter((event) => event.span.rootId === operation?.span.rootId) - .filter((event) => { - const name = event.span.name ?? ""; - return name === "doGenerate" || name === "doStream"; - }) - .filter((event) => event.span.parentIds[0] !== parent?.span.id); + const toolSpans = findChildSpans(events, "get_weather", parent?.span.id); + const modelChildren = [ + ...findChildSpans(events, "doGenerate", parent?.span.id), + ...findChildSpans(events, "doStream", parent?.span.id), + ]; return { modelChildren, @@ -1010,6 +1005,31 @@ export function defineAISDKInstrumentationAssertions(options: { expect(trace.toolSpans.length).toBeGreaterThanOrEqual(1); expect(trace.toolSpans[0]?.input).toBeDefined(); expect(trace.toolSpans[0]?.output).toBeDefined(); + if (options.sdkMajorVersion >= 6) { + for (const toolSpan of trace.toolSpans) { + const toolCallId = toolSpan.metadata?.toolCallId; + expect(toolCallId).toEqual(expect.any(String)); + const messages = expect.arrayContaining([ + expect.objectContaining({ + role: "tool", + content: expect.arrayContaining([ + expect.objectContaining({ + type: "tool-result", + toolName: toolSpan.span.name, + toolCallId, + }), + ]), + }), + ]); + expect(trace.parent?.output).toMatchObject({ + steps: expect.arrayContaining([ + expect.objectContaining({ + response: expect.objectContaining({ messages }), + }), + ]), + }); + } + } expect(collectToolCallNames(trace.parent?.output)).toContain( "get_weather", ); @@ -1339,7 +1359,12 @@ export function defineAISDKInstrumentationAssertions(options: { await matchSpanTreeSnapshot(events, spanSnapshotPath, { normalize: { additionalProviderIdKeys: ["callId"], - omittedKeys: ["id", "performance", "prompt_cache_key", "toolCallId"], + omittedKeys: [ + "id", + "performance", + "prompt_cache_key", + ...(options.sdkMajorVersion < 6 ? ["toolCallId"] : []), + ], }, }); }); diff --git a/js/src/instrumentation/plugins/ai-sdk-plugin.streaming.test.ts b/js/src/instrumentation/plugins/ai-sdk-plugin.streaming.test.ts index 8803708c3..5427d5ca0 100644 --- a/js/src/instrumentation/plugins/ai-sdk-plugin.streaming.test.ts +++ b/js/src/instrumentation/plugins/ai-sdk-plugin.streaming.test.ts @@ -50,6 +50,61 @@ describe("AI SDK streaming instrumentation", () => { _exportsForTestingOnly.clearTestBackgroundLogger(); }); + describe.each(["promise", "generator"])("%s tool execution", (kind) => { + test.each([ + { options: { toolCallId: "tool-1" }, expectedId: "tool-1" }, + { options: undefined, expectedId: undefined }, + { options: null, expectedId: undefined }, + { options: {}, expectedId: undefined }, + { options: { toolCallId: 123 }, expectedId: undefined }, + ])("logs toolCallId from $options", async ({ options, expectedId }) => { + const input = { location: "Paris" }; + const output = { temperature: 22 }; + const params = { + tools: { + get_weather: { + execute: + kind === "generator" + ? async function* (..._args: unknown[]) { + yield { temperature: 20 }; + yield output; + } + : async (..._args: unknown[]) => output, + }, + }, + }; + + await aiSDKChannels.generateText.tracePromise( + async () => { + const result = params.tools.get_weather.execute(input, options); + if (Symbol.asyncIterator in result) { + const values = []; + for await (const value of result) { + values.push(value); + } + expect(values).toEqual([{ temperature: 20 }, output]); + } else { + expect(await result).toEqual(output); + } + return { text: "done" }; + }, + { arguments: [params] } as any, + ); + + const spans = (await backgroundLogger.drain()) as any[]; + const toolSpans = spans.filter( + (span) => span.span_attributes?.type === "tool", + ); + expect(toolSpans).toHaveLength(1); + expect(toolSpans[0]).toMatchObject({ input, output }); + if (expectedId === undefined) { + expect(toolSpans[0].metadata ?? {}).not.toHaveProperty("toolCallId"); + } else { + expect(toolSpans[0].metadata).toMatchObject({ toolCallId: expectedId }); + } + }); + }); + test("generateText child span logs missing usage diagnostic when output has no usage", async () => { expect(await backgroundLogger.drain()).toHaveLength(0); diff --git a/js/src/instrumentation/plugins/ai-sdk-plugin.ts b/js/src/instrumentation/plugins/ai-sdk-plugin.ts index ec5e3a76b..bfe41694c 100644 --- a/js/src/instrumentation/plugins/ai-sdk-plugin.ts +++ b/js/src/instrumentation/plugins/ai-sdk-plugin.ts @@ -2625,6 +2625,15 @@ function prepareAISDKChildTracing( return result; } + const executionOptions = args[1]; + const toolCallId = isObject(executionOptions) + ? executionOptions.toolCallId + : undefined; + const toolInput = { + input: serializeToolExecutionInput(args), + ...(typeof toolCallId === "string" ? { metadata: { toolCallId } } : {}), + }; + if (isAsyncGenerator(result)) { return (async function* () { const span = activeEntry.parentSpan.startSpan( @@ -2638,7 +2647,7 @@ function prepareAISDKChildTracing( INSTRUMENTATION_NAMES.AI_SDK, ), ); - span.log({ input: serializeToolExecutionInput(args) }); + span.log(toolInput); try { let lastValue: unknown; @@ -2658,7 +2667,7 @@ function prepareAISDKChildTracing( return activeEntry.parentSpan.traced( async (span) => { - span.log({ input: serializeToolExecutionInput(args) }); + span.log(toolInput); const awaitedResult = await result; span.log({ output: awaitedResult }); return awaitedResult; From 4562415eb9eb1d878573ccc3a012ed91f56f4690 Mon Sep 17 00:00:00 2001 From: lforst <8118419+lforst@users.noreply.github.com> Date: Tue, 8 Sep 2026 18:13:50 +0000 Subject: [PATCH 2/2] Update PR #2447 --- .changeset/ai-sdk-v6-tool-call-ids.md | 5 +++++ .../__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.json | 3 +++ .../__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.txt | 3 +++ .../cloudflare-ai-chat-v0-latest-auto.span-tree.json | 3 +++ .../cloudflare-ai-chat-v0-latest-auto.span-tree.txt | 3 +++ .../cloudflare-ai-chat-v0-latest-manual.span-tree.json | 3 +++ .../cloudflare-ai-chat-v0-latest-manual.span-tree.txt | 3 +++ .../cloudflare-ai-chat-v0-manual.span-tree.json | 3 +++ .../__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.txt | 3 +++ 9 files changed, 29 insertions(+) create mode 100644 .changeset/ai-sdk-v6-tool-call-ids.md diff --git a/.changeset/ai-sdk-v6-tool-call-ids.md b/.changeset/ai-sdk-v6-tool-call-ids.md new file mode 100644 index 000000000..25c8bf985 --- /dev/null +++ b/.changeset/ai-sdk-v6-tool-call-ids.md @@ -0,0 +1,5 @@ +--- +"braintrust": patch +--- + +feat: Track tool ids for ai SDK v6 diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.json b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.json index 39829462b..ca33c34e7 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.json +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.json @@ -300,6 +300,9 @@ "city": "Vienna", "condition": "sunny", "marker": "WEATHER_TOOL_EXECUTED" + }, + "metadata": { + "toolCallId": "" } } ], diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.txt b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.txt index 248aaa22f..2d48a919c 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.txt +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-auto.span-tree.txt @@ -743,6 +743,9 @@ span_tree: │ "condition": "sunny", │ "marker": "WEATHER_TOOL_EXECUTED" │ } +│ metadata: { +│ "toolCallId": "" +│ } └── cloudflare-ai-chat-error-root [task] metadata: { "mode": "auto", diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.json b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.json index 39829462b..ca33c34e7 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.json +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.json @@ -300,6 +300,9 @@ "city": "Vienna", "condition": "sunny", "marker": "WEATHER_TOOL_EXECUTED" + }, + "metadata": { + "toolCallId": "" } } ], diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.txt b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.txt index 248aaa22f..2d48a919c 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.txt +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-auto.span-tree.txt @@ -743,6 +743,9 @@ span_tree: │ "condition": "sunny", │ "marker": "WEATHER_TOOL_EXECUTED" │ } +│ metadata: { +│ "toolCallId": "" +│ } └── cloudflare-ai-chat-error-root [task] metadata: { "mode": "auto", diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.json b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.json index 5340dbf01..d43ba95f6 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.json +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.json @@ -300,6 +300,9 @@ "city": "Vienna", "condition": "sunny", "marker": "WEATHER_TOOL_EXECUTED" + }, + "metadata": { + "toolCallId": "" } } ], diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.txt b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.txt index 5da7fbbdc..50113d8ff 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.txt +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-latest-manual.span-tree.txt @@ -743,6 +743,9 @@ span_tree: │ "condition": "sunny", │ "marker": "WEATHER_TOOL_EXECUTED" │ } +│ metadata: { +│ "toolCallId": "" +│ } └── cloudflare-ai-chat-error-root [task] metadata: { "mode": "manual", diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.json b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.json index 5340dbf01..d43ba95f6 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.json +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.json @@ -300,6 +300,9 @@ "city": "Vienna", "condition": "sunny", "marker": "WEATHER_TOOL_EXECUTED" + }, + "metadata": { + "toolCallId": "" } } ], diff --git a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.txt b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.txt index 5da7fbbdc..50113d8ff 100644 --- a/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.txt +++ b/e2e/scenarios/cloudflare-ai-chat-instrumentation/__snapshots__/cloudflare-ai-chat-v0-manual.span-tree.txt @@ -743,6 +743,9 @@ span_tree: │ "condition": "sunny", │ "marker": "WEATHER_TOOL_EXECUTED" │ } +│ metadata: { +│ "toolCallId": "" +│ } └── cloudflare-ai-chat-error-root [task] metadata: { "mode": "manual",