@dxos/assistant 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/lib/neutral/chunk-2TBLG3XY.mjs +1793 -0
- package/dist/lib/neutral/chunk-2TBLG3XY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/extraction/index.mjs +219 -0
- package/dist/lib/neutral/extraction/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +537 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +111 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +155 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/context.test.d.ts +2 -0
- package/dist/types/src/conversation/context.test.d.ts.map +1 -0
- package/dist/types/src/conversation/index.d.ts +2 -1
- package/dist/types/src/conversation/index.d.ts.map +1 -1
- package/dist/types/src/conversation/session.d.ts +78 -0
- package/dist/types/src/conversation/session.d.ts.map +1 -0
- package/dist/types/src/conversation/session.test.d.ts.map +1 -0
- package/dist/types/src/diff.d.ts +17 -0
- package/dist/types/src/diff.d.ts.map +1 -0
- package/dist/types/src/diff.test.d.ts +2 -0
- package/dist/types/src/diff.test.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +67 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/execution-graph.d.ts +85 -0
- package/dist/types/src/execution-graph.d.ts.map +1 -0
- package/dist/types/src/execution-graph.test.d.ts +2 -0
- package/dist/types/src/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +1066 -215
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/index.d.ts +0 -1
- package/dist/types/src/extraction/index.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +3 -3
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +2 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/services.d.ts +17 -0
- package/dist/types/src/functions/services.d.ts.map +1 -0
- package/dist/types/src/functions.test.d.ts +2 -0
- package/dist/types/src/functions.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +7 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/AgentService.d.ts +75 -0
- package/dist/types/src/service/AgentService.d.ts.map +1 -0
- package/dist/types/src/service/AgentService.test.d.ts +2 -0
- package/dist/types/src/service/AgentService.test.d.ts.map +1 -0
- package/dist/types/src/service/agent-process.d.ts +21 -0
- package/dist/types/src/service/agent-process.d.ts.map +1 -0
- package/dist/types/src/service/index.d.ts +3 -0
- package/dist/types/src/service/index.d.ts.map +1 -0
- package/dist/types/src/session/artifact-diff.d.ts +27 -0
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/session/error-handling.d.ts +4 -0
- package/dist/types/src/session/error-handling.d.ts.map +1 -0
- package/dist/types/src/session/format.d.ts +16 -0
- package/dist/types/src/session/format.d.ts.map +1 -0
- package/dist/types/src/session/format.test.d.ts +2 -0
- package/dist/types/src/session/format.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +5 -1
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +23 -0
- package/dist/types/src/session/observer.d.ts.map +1 -0
- package/dist/types/src/session/request.d.ts +106 -0
- package/dist/types/src/session/request.d.ts.map +1 -0
- package/dist/types/src/session/request.test.d.ts +2 -0
- package/dist/types/src/session/request.test.d.ts.map +1 -0
- package/dist/types/src/session/session-ollama.test.d.ts +2 -0
- package/dist/types/src/session/session-ollama.test.d.ts.map +1 -0
- package/dist/types/src/session/toolkit.d.ts +16 -0
- package/dist/types/src/session/toolkit.d.ts.map +1 -0
- package/dist/types/src/session/version-pin.d.ts +5 -5
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +2 -0
- package/dist/types/src/templates/index.d.ts.map +1 -0
- package/dist/types/src/templates/system.d.ts +17 -0
- package/dist/types/src/templates/system.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -2
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/layer.d.ts +40 -0
- package/dist/types/src/testing/layer.d.ts.map +1 -0
- package/dist/types/src/tracing.d.ts +223 -0
- package/dist/types/src/tracing.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +28 -0
- package/dist/types/src/types/artifact.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +60 -29
- package/src/conversation/context.test.ts +52 -0
- package/src/conversation/context.ts +403 -0
- package/src/conversation/index.ts +2 -1
- package/src/conversation/session.test.ts +58 -0
- package/src/conversation/session.ts +300 -0
- package/src/diff.test.ts +74 -0
- package/src/diff.ts +93 -0
- package/src/errors.ts +15 -0
- package/src/execution-graph.test.ts +740 -0
- package/src/execution-graph.ts +509 -0
- package/src/extraction/extraction-ner-function/index.ts +0 -1
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
- package/src/extraction/extraction.ts +44 -15
- package/src/extraction/index.ts +0 -1
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +6 -7
- package/src/functions/index.ts +5 -0
- package/src/functions/services.ts +214 -0
- package/src/functions.conversations.json +1 -0
- package/src/functions.test.ts +88 -0
- package/src/index.ts +7 -5
- package/src/service/AgentService.conversations.json +1 -0
- package/src/service/AgentService.test.ts +169 -0
- package/src/service/AgentService.ts +184 -0
- package/src/service/agent-process.ts +364 -0
- package/src/service/index.ts +6 -0
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +41 -0
- package/src/session/format.test.ts +132 -0
- package/src/session/format.ts +149 -0
- package/src/session/index.ts +5 -1
- package/src/session/observer.ts +62 -0
- package/src/session/request.conversations.json +1 -0
- package/src/session/request.test.ts +195 -0
- package/src/session/request.ts +344 -0
- package/src/session/session-ollama.test.ts +81 -0
- package/src/session/toolkit.ts +47 -0
- package/src/session/version-pin.ts +12 -12
- package/src/templates/index.ts +5 -0
- package/src/templates/instructions/format.tpl +57 -0
- package/src/templates/instructions/system.tpl +85 -0
- package/src/templates/system.ts +42 -0
- package/src/testing/index.ts +2 -8
- package/src/testing/layer.ts +236 -0
- package/src/tracing.ts +43 -0
- package/src/types/artifact.ts +89 -0
- package/src/types/index.ts +5 -0
- package/src/typings.d.ts +5 -0
- package/dist/lib/browser/index.mjs +0 -2019
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2021
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/bin/chat.d.ts +0 -2
- package/dist/types/bin/chat.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.d.ts +0 -41
- package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprint/index.d.ts +0 -3
- package/dist/types/src/blueprint/index.d.ts.map +0 -1
- package/dist/types/src/blueprint/registry.d.ts +0 -7
- package/dist/types/src/blueprint/registry.d.ts.map +0 -1
- package/dist/types/src/context/binder.d.ts +0 -34
- package/dist/types/src/context/binder.d.ts.map +0 -1
- package/dist/types/src/context/binding.d.ts +0 -38
- package/dist/types/src/context/binding.d.ts.map +0 -1
- package/dist/types/src/context/index.d.ts +0 -3
- package/dist/types/src/context/index.d.ts.map +0 -1
- package/dist/types/src/conversation/conversation.d.ts +0 -44
- package/dist/types/src/conversation/conversation.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -208
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
- package/dist/types/src/research/exa.d.ts +0 -7
- package/dist/types/src/research/exa.d.ts.map +0 -1
- package/dist/types/src/research/graph.d.ts +0 -41
- package/dist/types/src/research/graph.d.ts.map +0 -1
- package/dist/types/src/research/graph.test.d.ts +0 -2
- package/dist/types/src/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/research/index.d.ts +0 -4
- package/dist/types/src/research/index.d.ts.map +0 -1
- package/dist/types/src/research/research.d.ts +0 -10
- package/dist/types/src/research/research.d.ts.map +0 -1
- package/dist/types/src/research/research.test.d.ts +0 -2
- package/dist/types/src/research/research.test.d.ts.map +0 -1
- package/dist/types/src/session/session.d.ts +0 -283
- package/dist/types/src/session/session.d.ts.map +0 -1
- package/dist/types/src/session/session.test.d.ts.map +0 -1
- package/dist/types/src/session/version-pin.test.d.ts +0 -2
- package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
- package/dist/types/src/summarization/summarization.test.d.ts +0 -2
- package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -3
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/blueprint/blueprint.ts +0 -75
- package/src/blueprint/index.ts +0 -6
- package/src/blueprint/registry.ts +0 -15
- package/src/context/binder.ts +0 -101
- package/src/context/binding.ts +0 -31
- package/src/context/index.ts +0 -6
- package/src/conversation/conversation.ts +0 -103
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -95
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -66
- package/src/extraction/extraction-llm-function/index.ts +0 -5
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -115
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -54
- package/src/research/exa.ts +0 -100
- package/src/research/graph.test.ts +0 -15
- package/src/research/graph.ts +0 -337
- package/src/research/index.ts +0 -7
- package/src/research/instructions-research.tpl +0 -97
- package/src/research/research.test.ts +0 -190
- package/src/research/research.ts +0 -90
- package/src/session/session.test.ts +0 -275
- package/src/session/session.ts +0 -582
- package/src/session/version-pin.test.ts +0 -26
- package/src/summarization/summarization.test.ts +0 -221
- package/src/testing/exa-search-1748337321991.ts +0 -131
- package/src/testing/exa-search-1748337331526.ts +0 -144
- package/src/testing/exa-search-1748337344119.ts +0 -133
- package/src/typedefs.d.ts +0 -8
- package/src/types.ts +0 -8
- /package/dist/types/src/{session → conversation}/session.test.d.ts +0 -0
- /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"conversations": [{"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "user", "content": "Hello world!", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_017uwtKswqvfkbAWcbhvqC4C", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "This is a simple greeting. The user", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " is", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " saying \"Hello world!\" which is a", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " common programming reference", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " an", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d also just", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " a friendly", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " greeting", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ". I should respond in a warm", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ", friendly", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " manner", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "Et0CCkYICxgCKkCdNXMJ2XlhcT2JaidKOD95WAUCmsGVKt4lBZS6WzzEO+nRk3t2VSMYzI2y8j1W8Vo9e23S7msWD/GyCvFCmUSTEgxCkIK4hDt94dX/NscaDJjA28lvZl0Ne717ryIw1SWQvyJjlU12gCD/g8ZMJG4DvWe8ZbzyUWJA0vF96hlxfAHy4REOzYUcdMwqU4eXKsQBJsFiFgDcxjwTpq+NsK2xansfoTZHS243MvBnDiFuQ2DcDsxNaAA6dLMlmfpO3xT7BLgEJjGvfooVAYs2gs8Ew+tHNGpFJzebZNzdwZ+BGrWYQm7lHDecS6AelQAQSvgiQYgCXr8u+ZgPuPOojoj3FkwzGBrXiJBk2zaX5AmbbCnyV/snVE2ZDWJovGwy/31Mh7UrGke9baTws0FmGaWoDrqXocBJjDk5RqPb/EhSPlc4vV06EYuYQWc/2p/TjA6VhmDoghgB"}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "Hello! ", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "\ud83d\udc4b It's nice", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " to meet you. How are you doing", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " today?", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 39, "outputTokens": 67, "totalTokens": 106}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 39, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 30?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_012rNz1xGkUFW2DgQCG1kv3i", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is asking for", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " a", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " simple calculation: 10 + ", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "30. I have access", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to a Calculator", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " tool", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " that can perform", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " this", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " calculation", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " I", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " nee", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d to use the Calculator function with the input", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " \"10 + 30\".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EuQCCkYICxgCKkDCaQH/XgXQY671pbNNWj6taybrqZ3Y7GESqvy5W7628w3Cnu6h/lTA4OLFIYH+e0zk41gjqms8n3/i3OsqVnWHEgxRchr+8QIACHJJMY0aDCHMkDM2ij2mqYpU1iIwTI/oHXwFtEwLFSW2JTNpA/167J0LSA+syc2lRuurdVzaTnDp1b7AdqfJJhz3CxwGKssB2JNFsVzNONC7d48c2BkCk6jkzLTLFYy4ncFYXTQ7CmWLUPIER2qew+Uf46f8xyFnip5Azhjo8Z/gqRbls2QcL3pRGILnoMyZyI2P9HEsN698Vm4fDZsZ86nuq1IGcGNw8ATATH0plAkQPP+4f1r3W974KxOpM12c5KSf+6wF06B6tpvD2G61cCKB0vaVeNbBTL9XIkXB+zeIyUirsX3QiMhRzvlkk4bBQDZqiGMSa8gzGFLgUwdPdmMEobyH/fzHRXaoZkBSq20vetgYAQ=="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "I", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "'ll help", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " you calculate that.", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "tool-params-start", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "name": "Calculator", "providerExecuted": false, "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "delta": "", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "delta": "{\"", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "delta": "input\": \"", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "delta": "10 + 30\"}", "metadata": {}}, {"type": "tool-params-end", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "metadata": {}}, {"type": "tool-call", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "name": "Calculator", "params": {"input": "10 + 30"}, "providerExecuted": false, "metadata": {}}, {"type": "finish", "reason": "tool-calls", "usage": {"inputTokens": 424, "outputTokens": 117, "totalTokens": 541}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 424, "output_tokens": 5, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 30?", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking for a simple calculation: 10 + 30. I have access to a Calculator tool that can perform this calculation. I need to use the Calculator function with the input \"10 + 30\".", "options": {}}, {"type": "text", "text": "I'll help you calculate that.", "options": {}}, {"type": "tool-call", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "name": "Calculator", "params": {"input": "10 + 30"}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01RkWnXmu3kpGRuJvSSwXTAw", "name": "Calculator", "isFailure": false, "result": {"result": 40}, "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_019G9T2pTH1sGre6wyK7x77d", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "10 + 30 =", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " 40", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 473, "outputTokens": 12, "totalTokens": 485}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 473, "output_tokens": 7, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking me to intentionally make an incorrect tool call by omitting the required \"input\" parameter when calling the Calculator tool. This is for testing error handling. \n\nAccording to the schema, the Calculator tool requires an \"input\" parameter of type string. The user wants me to call it without providing this required parameter to see how the system handles this error.\n\nI should make the tool call without the input parameter as requested.", "options": {}}, {"type": "text", "text": "I'll make a Calculator tool call without the required \"input\" parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_017r1n7RCMfHtzEP5bgKCJKu", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_017r1n7RCMfHtzEP5bgKCJKu", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01LwcnKy2BAxT5EsE8q8Pfa8", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "As expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " returne", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d an error indicating", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" parameter is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator tool call. The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error message shows that the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expects an object", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " with a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" property of", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " type string, an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parsing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " failed because this", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " was not", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " provided.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 601, "outputTokens": 59, "totalTokens": 660}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 601, "output_tokens": 2, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to call the Calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. I should do exactly what they're asking - call the Calculator tool without providing the required input parameter.", "options": {}}, {"type": "text", "text": "I'll call the Calculator tool without the required input parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_01Xhu7F8btMmV9W1rHuxtRZt", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01Xhu7F8btMmV9W1rHuxtRZt", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_014Q8swcEVZXry1hVJuTAnpH", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expected, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the error", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d returned a detaile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d error message indicating that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call. The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error shows:\n\n1", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ". It", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " failed to decode the tool call parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n2. The specific", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " issue is", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the \"input\" fiel", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d is missing\n3. The error type", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " is \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "M", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "alformedOutput\"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " with", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " a neste", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "ParseError\"\n\nThis demonstrates", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " validation is working correctly an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d will", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " reject", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " calls", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that don't match", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d schema.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 598, "outputTokens": 109, "totalTokens": 707}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 598, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking me to intentionally call the Calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. I should do exactly what they asked - make a tool call without the required parameter.", "options": {}}, {"type": "text", "text": "I'll make the calculator tool call without the required input parameter as you requested:", "options": {}}, {"type": "tool-call", "id": "toolu_01Cj6NpsjAN3jog6e2EQaF1h", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01Cj6NpsjAN3jog6e2EQaF1h", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01VZkgASUpXGFq2qw9nkTzdV", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " returne", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d a M", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "alformedOutput error indicating", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the tool call. The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error message clearly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " shows that the Calculator tool expects", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " an object", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " with a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" property of", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " type string, an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parsing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " failed because this", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter was not provided in", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the function call.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 595, "outputTokens": 71, "totalTokens": 666}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 595, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to intentionally call the Calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. I should do exactly what they're asking - make a tool call without the required parameter.", "options": {}}, {"type": "text", "text": "I'll intentionally call the Calculator tool without the required \"input\" parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_01U8MHzVVAsEtED1skwMMLGx", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01U8MHzVVAsEtED1skwMMLGx", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01E1ZCajrbTCFUw1DKMNnPmW", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "As expected, this", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " cause", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d an error because the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is required according to the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "'s", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " schema but", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " was not", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " provided.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " The error message clearly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " indicates that the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing from the function", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " call.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 602, "outputTokens": 47, "totalTokens": 649}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 602, "output_tokens": 4, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is specifically asking me to intentionally make an error by calling the calculator tool without providing the required \"input\" parameter. This is for testing error handling. I should do exactly as they ask - call the Calculator function but omit the input parameter.", "options": {}}, {"type": "text", "text": "I'll call the calculator tool without the required input parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_01CVBkZhcEYZikyNaaH2z9mS", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01CVBkZhcEYZikyNaaH2z9mS", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01N8WsmrXjnPKG22vDuHm57j", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expected, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the error", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d returned a detaile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d error message indicating", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ". The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error shows", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ":", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\n1. It", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "'s", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " a \"MalformedOutput\"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error\n2. The tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameters faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode\n3.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " Specifically, the \"input\" parameter is", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " missing (", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "as", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " shown", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " in", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the schema", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " validation", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error)", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\nThis demonstrates that the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parsing correctly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " validates", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " against", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the schema and provides", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " helpful", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error messages when required parameters are om", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "itted.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 598, "outputTokens": 110, "totalTokens": 708}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 598, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to make an incorrect tool call for testing purposes. They want me to call the Calculator tool but intentionally omit the required \"input\" parameter to see how the system handles this error.\n\nI should do exactly as they ask - call the Calculator tool without providing the input parameter.", "options": {}}, {"type": "text", "text": "I'll call the Calculator tool without the required input parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_01726iiTkhXnF7sK3novVpQD", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01726iiTkhXnF7sK3novVpQD", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01B3E3XdtmyBssmLNfBDLcMD", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "As expected, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " returne", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error indicating", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" parameter is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ". The error message shows that the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expects an object", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " with a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" property of", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " type string, an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parser", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " detecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d that this", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " property was", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " not", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " provided in", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the empty", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " set", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " I", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " sent", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 598, "outputTokens": 66, "totalTokens": 664}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 598, "output_tokens": 5, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to call the calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. I should do exactly what they asked - call the tool without the input parameter.", "options": {}}, {"type": "text", "text": "I'll call the calculator tool without the input parameter as requested for your error handling test:", "options": {}}, {"type": "tool-call", "id": "toolu_011JJQC9oxAckyRM91rstDhx", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_011JJQC9oxAckyRM91rstDhx", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_016gJRaPtRkr9tPDL8tHzHfy", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expected, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the missing required parameter an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d returned an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error message clearly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " indicates that:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\n1. The tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " for", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator tool\n2. The specific", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " issue is", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n3. The \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d (", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "as define", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d in the schema where", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " it's liste", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d in", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the \"required\" array)\n\nThis", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " demonstrates that the error handling is working correctly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " - it validates", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " against", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the define", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d schema and provides", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " inform", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "ative error messages when require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d parameters are om", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "itted.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 597, "outputTokens": 116, "totalTokens": 713}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 597, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to make an incorrect tool call for testing purposes. They want me to call the Calculator function but deliberately omit the required \"input\" parameter to test error handling.\n\nI should do exactly what they asked - call the Calculator tool without providing the input parameter.", "options": {}}, {"type": "text", "text": "I'll call the Calculator tool without the required input parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_01KgYHncH8KeSeEXKaS8v1nk", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01KgYHncH8KeSeEXKaS8v1nk", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01HyNQFkeRifAfdbn2PKA9Wp", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! The error handling is working as expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d. The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the required \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter was", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " missing and returned a detaile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d error message indicating:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n- The tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n- The specific fiel", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" is missing\n- The expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d schema", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " requires a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " readonly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " input", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " string", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\nThis demonstrates that the parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " validation is properly enforcing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " schema requirements.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 598, "outputTokens": 78, "totalTokens": 676}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 598, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to make an incorrect tool call by omitting the required \"input\" parameter from the Calculator function. This is for testing error handling. I'll make the function call without the input parameter as requested.", "options": {}}, {"type": "text", "text": "I understand you want me to intentionally make an incorrect tool call for testing purposes. I'll call the Calculator tool without the required \"input\" parameter:", "options": {}}, {"type": "tool-call", "id": "toolu_01W2EJ2Pqp2tAj1hDrVCeobt", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01W2EJ2Pqp2tAj1hDrVCeobt", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_015NnS1UfNwCsAyN6dWCfCsj", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error handling is working correctly.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " detecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" parameter was", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d returned a detaile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d error message indicating:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\n1", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ". The tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode\n2. The specific missing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameter:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " \"input\"\n3. The expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d schema", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " structure", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ":", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " `{ readonly input: string }`", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\nThis error", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " response", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " confirms", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the parameter validation", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " is functioning", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " as expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d when", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d parameters are om", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "itted.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 610, "outputTokens": 94, "totalTokens": 704}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 610, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is specifically asking me to intentionally call the calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. They want me to make an invalid tool call on purpose.\n\nI should do exactly what they asked - call the Calculator function without providing the required \"input\" parameter.", "options": {}}, {"type": "text", "text": "I understand you want me to intentionally make an incorrect tool call for testing purposes. I'll call the Calculator function without the required \"input\" parameter:", "options": {}}, {"type": "tool-call", "id": "toolu_016cxVEiPd9t8mhq7bXVFwgT", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_016cxVEiPd9t8mhq7bXVFwgT", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01M4DAqgcjAUmjuShAhMAbqK", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " handling is working correctly.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d \"input\" parameter was missing and returne", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d a detaile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d error message explaining", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ":", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\n1. The tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n2. The specific", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " missing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " fiel", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " \"input\"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " \n3. The expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d schema", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " structure", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ":", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " `{", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " readonly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " input: string }`\n\nThis demonstrates", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " validation", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " is properly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " checking against", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "'s JSON", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " schema and rej", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "ecting calls", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " don't include", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " all required parameters.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 610, "outputTokens": 98, "totalTokens": 708}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 610, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to intentionally call the calculator tool incorrectly by omitting the required \"input\" parameter. This is for testing error handling. I should do exactly as they ask - call the Calculator function without providing the input parameter.", "options": {}}, {"type": "text", "text": "I'll call the calculator tool without the required input parameter as requested for your error handling test:", "options": {}}, {"type": "tool-call", "id": "toolu_012AjotXs8rRcN3ifCgfDzfo", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_012AjotXs8rRcN3ifCgfDzfo", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01MkUfXu1fN2higVMbKKMVah", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expected, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " returne", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d a `MalformedOutput`", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error indicating", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " require", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" is missing from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the tool call. The", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error message clearly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " shows:", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "\n\n1. The tool call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " faile", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d to decode\n2. The specific issue", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ":", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " `[\"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\"]", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " \u2514\u2500 is missing`\n3", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ". The parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " schema", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " shows", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " `", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "`", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " is a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " required string parameter\n\nThis demonstrates", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " that the error handling is", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " working correctly - when a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " required parameter is om", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "itted from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call, the system properly catches", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " this an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d returns a", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " descript", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "ive error rather", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " than proce", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "eding with an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " invalid call", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 598, "outputTokens": 126, "totalTokens": 724}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 598, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is explicitly asking me to make an incorrect tool call for testing purposes. They want me to call the Calculator tool but omit the required \"input\" parameter, which would violate the tool's schema. This is a testing scenario where they want to see how the system handles errors.\n\nI should do exactly what they're asking - make the tool call without the required parameter.", "options": {}}, {"type": "text", "text": "I'll intentionally call the Calculator tool without the required \"input\" parameter as you requested for testing error handling:", "options": {}}, {"type": "tool-call", "id": "toolu_013D15z5B8mUNG9ocMsNyLA9", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_013D15z5B8mUNG9ocMsNyLA9", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01PSXo5qG6jEaehv6c7sCK22", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "Perfect", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "! As", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " expecte", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d, the system", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " caught", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the missing required parameter", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " and returned an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " The error message clearly indicates that the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is missing", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " from", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the Calculator", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool call, which viol", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "ates the tool's schema that", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " requires this parameter.", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " This is the", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " correct behavior for error handling when", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " don", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "'t match", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " the expected schema.", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 602, "outputTokens": 69, "totalTokens": 671}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 602, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_0195DbxUY7oVbrs7QAUP6YLS", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " asking me to intent", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "ionally create", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " an error by calling", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " the Calculator tool without", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " providing the required \"", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "input\" parameter.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " They want to test", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " error handling in tool parameter parsing.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "\n\nSince", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " they", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "'re", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " explicitly", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " asking me", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to omit a", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " required parameter to", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " test error handling, I should ", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "do exactly", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " that -", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " call the Calculator function", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " without including", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " the \"input\" parameter.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EqQECkYICxgCKkCmOPj7JooxBf0AyUOHaXqqCPWM8owD1CuCDoT3UAYaJZg/bNtiSV2h9cN9xtQ6rxgo6e47q91ce1l6UALCh5jFEgzNvzFUUvy1Tyc29XEaDDqZkD3ULvixDmGomSIw8TYIr+sXVdFxil1YFtzhEJpJEscdlQFCTvDIv/KJiyJJGaJZtEEJ61+W8nv9T53lKosDKqCWCn6yyh3VNAOoZ00WwMDoJyfC8nOz66b+wvSJQXV+7FBDGvHzdk15QBNk/lsxH/ehgZXdmev29vD2/oasg8QwnwBy0wSmoSSD84hmRMtoK3JU6piYoFfX0FdruVcI/I6RtBllze6y25gVDbt30rbm4kqQoy5uzVnqMF+4ueEk9sk+bw5KQymrYHE0sfrSAYK4HX23LUtOyYujk0GWkdHwVpQEPL7VRcU9PWdP22fe2Q+fm3oQGUDNZpi5gTxBMQYK6RxscZ5gfJDbCAxh8MEquCnMxyk0qmj8CN1KyO344L56gTY7t8FvuzZFuitkt9byovMwFIe5ulr+r3U5DRSywEkv6O+gCRH6llYufPXnnkO5ahz4zMDUmCeHEhI+UX7+ceCZgC2e7gOxq9RWgoWrSHwJ9pzHxlexdFohNlT+uwcgPmNFiWQptMZPWFH7J3NOnr0O/v3/886qDjkwpllzNmSfv/1l4Ivmoe/Kn5nprh7YVgGDoyLAVPxs2X91K3f5lqWq/39Xm9cYAQ=="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "I understan", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "d you want to test error handling by", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " having", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " me make", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " an", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " invali", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "d tool", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " call. I'll call the Calculator tool", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " without the required \"input\" parameter:", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "tool-params-start", "id": "toolu_01M5a1PVAQFXNv46cwDyWi7z", "name": "Calculator", "providerExecuted": false, "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01M5a1PVAQFXNv46cwDyWi7z", "delta": "", "metadata": {}}, {"type": "tool-params-end", "id": "toolu_01M5a1PVAQFXNv46cwDyWi7z", "metadata": {}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "I am testing error handling in tool paramter parsing. I want you to call the calculator tool but omit the input parameter to intentionally differ from the tool schema.", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking me to intentionally create an error by calling the Calculator tool without providing the required \"input\" parameter. They want to test error handling in tool parameter parsing.\n\nSince they're explicitly asking me to omit a required parameter to test error handling, I should do exactly that - call the Calculator function without including the \"input\" parameter.", "options": {}}, {"type": "text", "text": "I understand you want to test error handling by having me make an invalid tool call. I'll call the Calculator tool without the required \"input\" parameter:", "options": {}}, {"type": "tool-call", "id": "toolu_01M5a1PVAQFXNv46cwDyWi7z", "name": "Calculator", "params": {}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01M5a1PVAQFXNv46cwDyWi7z", "name": "Calculator", "isFailure": true, "result": "MalformedOutput: { \"module\": \"Toolkit\", \"method\": \"Calculator.handle\", \"description\": \"Failed to decode tool call parameters for tool 'Calculator' from:\\n'{}'\", \"cause\": { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing }\ncaused by:\nParseError: { readonly input: string }\n\u2514\u2500 [\"input\"]\n \u2514\u2500 is missing", "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01BeXiK9yEhEQrs9zPYNem6C", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "As expected, this", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " generate", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d an", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " error because the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" parameter is required according", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " to the tool", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "'s", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " schema,", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " but", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " I om", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "itted it. The error message clearly", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " indicates that the \"", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "input\" fiel", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "d is missing from the tool call parameters", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 610, "outputTokens": 50, "totalTokens": 660}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 610, "output_tokens": 4, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 50?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01P8Jjb6PP8sqW7QUXNRFWZ8", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is asking me to calculate ", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "10 + 50. I", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " shoul", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d use the Calculator tool to perform this calculation", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EpECCkYICxgCKkAtCgU/96dFh259BvXX7s3DlOwCAY8uxZF+Sbp45qM7SsFGvD0tkGctt7b37fCprUjiuO7Qad33Owiz89PqhQZmEgy7vK880tNkCwy4XLEaDLM5Rz7FTgWQRBTnuCIwk2D4trjdhlFtgCvK3Beimgkkf9fThGac70LTNmeUGS4uc2pN+UR3Go4F5qBVpFt9KnlBraJol7YEeoRPZaew9Sy4JyER++uZOZAIR18Mnc1clcsxiiqxAO7H6exDujURG7FlGgLwonP/UzjXROAcYI6AOKGZB5Dh2FRNb5a7fjKKMSjHUTSezTLyCA+D8vkSldwfTSRHEli1gJke8h+6iZkJDPrn8Sfng6IQGAE="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "I", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "'ll calculate 10 + 50", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " for you using", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " the calculator tool", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": ".", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "tool-params-start", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "name": "Calculator", "providerExecuted": false, "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "delta": "", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "delta": "{\"in", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "delta": "put", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "delta": "\": \"10 + 50", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "delta": "\"}", "metadata": {}}, {"type": "tool-params-end", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "metadata": {}}, {"type": "finish", "reason": "tool-calls", "usage": {"inputTokens": 424, "outputTokens": 106, "totalTokens": 530}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 424, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 50?", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking me to calculate 10 + 50. I should use the Calculator tool to perform this calculation.", "options": {}}, {"type": "text", "text": "I'll calculate 10 + 50 for you using the calculator tool.", "options": {}}, {"type": "tool-call", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "name": "Calculator", "params": {"input": "10 + 50"}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_014Hhb8NDqYc4UyfnhBWJ7h4", "name": "Calculator", "isFailure": false, "result": {"result": 60}, "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_0115qPyD9ACSvwJDoTNV1JRT", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "10 + 50 =", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": " 60", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 483, "outputTokens": 12, "totalTokens": 495}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 483, "output_tokens": 7, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 60?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01GkgHuofjzhiyVsWN1wYiwS", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is asking me to calculate ", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "10 + 60. I", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " have access to a Calculator", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " tool that can perform basic calculations", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ". I", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " should use it", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to compute this sum.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EsECCkYICxgCKkDFkcJd14jlXOiS+uF4sixr/8SYkZJUgj2Yvs8QWnOOzsGw8Z0FJ3kKpQhB4KDIcH38wvWjyPwRSWD1oISQs+mnEgzbITX8fjNReieC3kwaDCQddQDre+f/sYawXiIwZ+N8h/Kor9UIh/BSG2PN6SkxLP/4elXOBvMt9XCRGTc9mK/XRfrweSEWrrd5XSzBKqgBPbbWRcym8wgQ2QQowp9kt/wM2SezTybB95YY1qvQW40ywWvn+7GWVVqlTgwROWDd0xcoPaa1+8nnQzQvBJLVaURqcSXNMhkUIvOzgGzAuGwOdU8S2ructOx6ZuIBrYK4WiPVqW95YaqEhmOYimxm+Nl4qOOrn7zqhD3pQwXB5khACLSLKgA7lfsGvkQeMF38NeR4ba516VbktyLX0FR41zSCKaNNNOB/GAE="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "tool-params-start", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "name": "Calculator", "providerExecuted": false, "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "delta": "", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "delta": "{\"input\": \"", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "delta": "10 + 60", "metadata": {}}, {"type": "tool-params-delta", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "delta": "\"}", "metadata": {}}, {"type": "tool-params-end", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "metadata": {}}, {"type": "finish", "reason": "tool-calls", "usage": {"inputTokens": 424, "outputTokens": 99, "totalTokens": 523}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 424, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": [{"name": "Calculator", "description": "Basic calculator tool", "inputSchema": {"type": "object", "required": ["input"], "properties": {"input": {"type": "string", "description": "The calculation to perform."}}, "additionalProperties": false}}]}, "prompt": {"content": [{"role": "user", "content": "What is 10 + 60?", "options": {}}, {"role": "assistant", "content": [{"type": "reasoning", "text": "The user is asking me to calculate 10 + 60. I have access to a Calculator tool that can perform basic calculations. I should use it to compute this sum.", "options": {}}, {"type": "tool-call", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "name": "Calculator", "params": {"input": "10 + 60"}, "providerExecuted": false, "options": {}}], "options": {}}, {"role": "tool", "content": [{"type": "tool-result", "id": "toolu_01NLRgHEwoBu517hffyYeH5e", "name": "Calculator", "isFailure": false, "result": {"result": 70}, "providerExecuted": false, "options": {}}], "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01NVL5mhXQ6D5LH2YqLLEQgx", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "text-start", "id": "0", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "10 + 60 = ", "metadata": {}}, {"type": "text-delta", "id": "0", "delta": "70", "metadata": {}}, {"type": "text-end", "id": "0", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 466, "outputTokens": 12, "totalTokens": 478}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 466, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": false, "tools": []}, "prompt": {"content": [{"role": "system", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `example.com/type/FlightBooking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}, {"role": "user", "content": "How many apples are in the basket?", "options": {}}, {"role": "assistant", "content": "There are 10 apples in the basket.", "options": {}}]}, "response": [{"type": "response-metadata", "id": "msg_01LbRo1ukWSjHx3tuDWgpBpc", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 437, "outputTokens": 3, "totalTokens": 440, "cachedInputTokens": 0}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 437, "output_tokens": 3, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary></summary>", "options": {}}, {"role": "user", "content": "Hello world!", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_014mga3XmvqXjLLjMh2baQnM", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " just", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " said \"Hello world!\" which", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " is a common", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " greeting", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ",", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " often", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " used in", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " programming contexts", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " as", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " the", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " first program", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " one", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " writes", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " when learning a new language.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " I shoul", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d respond in a friendly and helpful manner.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EvoCCkYICxgCKkAhuwTuTQf5Bi93xu0yTw+cJdcdB4gfRV69PWuTGozB7taE4StQT9Q0FdsYZ03zvUrF/oWsf+dmi5KFEwgVhHG0EgxdOKbcXmiGDXkR+1MaDGTWmHVh+4Z26j66WiIwF2SqsyM8eum5HEEgL/S2Upw6DXHPPmxzDgaxm/Rbw75PVR5j3uPr5bsp2gbS1JXgKuEBfpFtr3n1YLLjpSghnmefQI6bPi7pd4SmqrMq9uBa50NjlcVNI2g9gRM+bTa5PDeCT3KHiA0LJoGmO0olgUIer/4FFkk24tmctc8l4ACmNV46z6rD/1GAbO2FX1P/z4mbsXLY0UW4hOeRY3t/uC86RDa7ZTQ/CWaxqiBxtXepG9KhEZa1w9V5q3hZ3ItyykeRQe2QfM7CPgUVlWYGPi/f9Qucc5478V/Fdyqvm9E+ujakJhB1hpYUYWLAaXharf6GBDfW++jPlIoDSFb6ZYxqsZ6GXCdPAipgH0XtYbMa+l+8GAE="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "Hello! It's great to meet you", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": ". Is", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " there anything I can help you with today", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "? Whether you have questions, need assistance", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " with a task, or just want to", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " chat, I'm here to help!", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 59, "outputTokens": 94, "totalTokens": 153}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 59, "output_tokens": 2, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary></summary>", "options": {}}, {"role": "user", "content": "What did we talk about yesterday?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01AKhaRcpwB432m2oyFJXR83", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The human is asking me what we talke", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d about yesterday. However, I don't", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " have access", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to any previous conversations", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " or", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " chat", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " history.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " Each conversation with me starts fresh -", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " I don't retain", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " information from past interactions. I should pol", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "itely explain", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " this", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " the human.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "ErQDCkYICxgCKkBYkjcUHc2p4QBmPj7bGn/FkZMzmgiTvd+0pgOvX893kD7FSrFga/Vw0PDXexoVZ8WjFxRSTfk+y4hmbvlrE8BXEgyAZtj5QWK2hwGPw3YaDDTTW2WAmy1PlmihASIwMVkuPQdVboFG6dO2V3SPQfkb2DAOt9PvUj0PyUieokgzvDK2kTFmtmyZiMEI35doKpsC8uqNvAVuYWcyRnkFIY3ylH78MR9Tl4RrUeXgC0UzQ2TOt6C4ndKot8eGxTwSSDQVB6Jr7LJpOKFn4tqffJyKJ4/rAnKH0xOU+99kojylwMzTS12bJi5Mk+t55yDUZDliYF8s9R2XasJ2Fjv91Lux9aMqUy3dQY496TmnaCdpq3S+kAVFx7PtpuOvU0TutH1HuJv0Ie3/A/F5yl/aarHuLG9LT1NKrsPCiLkoJ1pWdGjFIaZproX29JSG9htKeFj11Ez5n1WCJkILs44vJwS3z7+nheBr+nT5G6Sju2HH9AZun4e95uAnKUL7dbuwdblVEG4VO+Y2i/hfH8AI6XICr46bad6GWPUNlSH6eY9zy6Rma9Tc9HeezJK02RgB"}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "I don't have access", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " to our previous conversations. Each time we", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " chat, it's a", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " fresh", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " start for me - I don", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "'t retain information from past interactions", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " or have memory of what", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " we discussed yesterday", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " or", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " on", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " any", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " other", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " day. \n\nIs", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " there something specific you'd like to discuss", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " or revis", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "it from", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " a", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " previous conversation?", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " I'd be happy to help with", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " that topic", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " again", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "!", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 63, "outputTokens": 138, "totalTokens": 201}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 63, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": false, "tools": []}, "prompt": {"content": [{"role": "system", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `example.com/type/FlightBooking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}, {"role": "user", "content": "How many apples are in the basket?", "options": {}}, {"role": "assistant", "content": "There are 10 apples in the basket.", "options": {}}, {"role": "user", "content": "<empty user message>", "options": {}}]}, "response": [{"type": "response-metadata", "id": "msg_01PUbboSwBNM8miqzim6AQzp", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning", "text": "The user is asking me to summarize a conversation. Let me look at what happened:\n\n1. User asked \"How many apples are in the basket?\"\n2. I responded \"There are 10 apples in the basket.\"\n\nThis is a very simple exchange about the quantity of apples in a basket. The key information is:\n- Topic: Counting apples in a basket\n- Answer: 10 apples\n\nSince this is a very short conversation, the summary will be brief.", "metadata": {"anthropic": {"type": "thinking", "signature": "EsEECkYICxgCKkBxIM3PRtINfenen42QSXZ+B6CqOeaYmKeIgiqKkZPHscjgNW9KR6u15PD7wlzbhB+rP/tpFZP1lXSsif5YgvQ4Egwgx7LWajHhPPt3z48aDKU8X9uStHVB/oBC9iIwJCosUsWWgCAt/JISzYKY36R3D4t4sOvkf5vJCOU5TrKEMHOoOWI6EMckZ+QmCPsiKqgDG3msQoE1VPyEbKiUsxxkwbLcwH9OilCunRgOO0XIVT/mwhhRyX0B3gPCnsoP9Z5G3mfO80cgePuifFOEneuP3hggRlyvo2u9agXvAo65PBTvNLNPypDnm8qsjRSqEypiqpYRM7pqoEy7fmShodImJnzcXEUl+QVdGSyfhhdk+7NZbSq/ucGBveN1/jsyKHKqFcr0d0IReWzAPe4UDRL3ioyRAIp1zdLdATTCMs/W1Rbd7iTTX/iBbHShOG+6KtqKln4BYj4+lKA8xYLOWU41IdToJuTM8Fk+U+YNysPhEi++zB7wl9xuvYpMfieqP0nQDD5xX46VPyKqsKaDHMKCYY/vXT5H7ML8DLreIbRqmJoNrGEFHqOGqnJ47dbtfjy6rsLHwFP/GBTwrnAcX54PKiBWetmd8NvItzMagybQiqW5QydyI6kv6jF9e1dItXcPXKOVMT6uqwD+Rr6gHNzVx3dwDRYUxTx6W0sF0QUjwbbp3Ntzom9kP1O+dgyYNYNrhh62JIY256tItN2ZWHiL8ram0xpGi8LjxjOG87+svGT0VUbMueb/2BgB"}}}, {"type": "text", "text": "The user asked about the number of apples in a basket. I confirmed there are 10 apples in the basket.", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 478, "outputTokens": 144, "totalTokens": 622, "cachedInputTokens": 0}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 478, "output_tokens": 144, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary>The user asked about the number of apples in a basket. I confirmed there are 10 apples in the basket.</summary>", "options": {}}, {"role": "user", "content": "What did we talk about yesterday?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_01Y9PN9sHY2V1bC5X2LDYbUb", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " user", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " is asking what we talked about yesterday.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " However, I don't have any memory", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " of previous conversations beyon", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d the current conversation.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " The", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " summary", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " I was", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " given appears to be from", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " the current", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " conversation (", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "about", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " ap", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "ples in a basket), not", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " from yesterday", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ". I should clarify that", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " I don't have access to past", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " conversations from", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " previous", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " days.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "Ev8DCkYICxgCKkDhv65HoOZ+4V+g8bUl90pXHA1P5dxMkMJNSDLi/tcxo95LnKEiHtMQfvkRRO0s0MJdwCN3aEXxCVTAEsyOZVOoEgyNenca4N+bbA+Ic7waDL8BfOvCIyABs40W/iIwewKGhOxvcILT4cY57yPaW57EEpgRMas5n/2MYx8M9O96WJ0cb8OGDztpdVxwil8aKuYCpBAwTM357Um6ymog7GEyutTNnaFroYb+smVByjPQ+ZkhVW458sHfLr1+YO1ttIBNHlDMa+AypK6bGnWbBLC5+XaDOa/0D8CludP8CWuS8kN++N4TTbSWzaqaFnYOpsUL5c4r6obQV2om63Tvm9G7OvAMPgjsKNlOGHZaB6T3kMO7kvI8m1Qr3iAol9FLIlXhihgymO3NgHPGL1UMahsJB8YtVxT4utiUG7fC8bgCKtXwPGZY48+8R5XerGt4yn9d5tLoRXYlWTl1Rkr1nRtXISv1Twb9K49wStCca9OCVevS7zgKCI3bwpflZI1RODlbeWGmCFeR2NrfFsvqDEw1aVJxqgrAS9CY5/QiwHRHK7LsRcWJGBGiM4n2OZ34CyGIULJvCWSRoq1yFxS1Z3in9Exu8hj+zRYa9K0x6JP0+pyzksqU2EPD5hfjUcUrhXxF31D2iHok9KqpuwTe6M6xYN5IqbQm+hgB"}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "I don't have any", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " record of our", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " conversation", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " from yesterday. I", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " can only access", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " our current conversation,", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " which according", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " to my summary was", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " about the", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " number of apples in a basket (", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "10 apples). ", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "\n\nEach", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " conversation I", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " have is", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " independent -", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " I don't retain information from previous conversations", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " or", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " previous", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " days. Is", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " there something specific from", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " yesterday you", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "'d like to discuss again", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " today", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "?", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 89, "outputTokens": 154, "totalTokens": 243}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 89, "output_tokens": 1, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary>The user asked about the number of apples in a basket. I confirmed there are 10 apples in the basket.</summary>", "options": {}}, {"role": "user", "content": "What did we talk about?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_011BiGMtgiWTwuZkAsCach1v", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " is asking me", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " recall what we talked about in our conversation", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ". According", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to the", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " summary provide", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d, we discussed the number of apples", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " in a basket,", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " and I confirmed there were 10 ", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "apples in the basket.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EvgCCkYICxgCKkCNeiWwPpDzd2siyrllSKZxA6rRkye7eba+KUJherzsvcUC/bBYs4N2BCcIsvCu9HBVixhzKXprl//IQVwLfT0cEgzLsi4OMUz+RfV+IXgaDDvgEScy6W98hqVLBCIwAVAQeVPWQVUE3dEy18pPXt2bZlr0dRR6DYSpL46UhIztpgZs/i6phgosGO4dItKFKt8BuTcOJ4Lk3tcviVfY+Toy0GzRJ4YsOuKiudJk8pLsaTtEz4JhFuH53tSPmY3Bcw5t67Oeat4dzzuUaTP0tCyxMvOjEsPkKGjmYmdBUs+y3l9qaEhWbQz8Qa7LzSYkHL+iSAzEm/CeAlF2iBIdk2twlwCsLZFjOAi33BthsKkBlKZtccjakHKFW/Nv3XCS7oXMJFCybAX7oLL6DpQGq7ZPZBmvpXcILF3pcy0C7U370QG1SOygyuEi+bC/osUV8rtsuE7aL/eTJXy2wEBxbskpNH4lsxP7mS5WMJZvyc1rvRgB"}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "We talked about the number of apples", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " in a basket. You aske", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "d about", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " it", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": ",", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " and I confirmed that there were 10", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " apples in the basket.", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 88, "outputTokens": 89, "totalTokens": 177}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 88, "output_tokens": 2, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": false, "tools": []}, "prompt": {"content": [{"role": "system", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n It is very important you maintain unchanged ECHO DXNs and IDs of the objects.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `example.com/type/FlightBooking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}, {"role": "user", "content": "How many apples are in the basket?", "options": {}}, {"role": "assistant", "content": "There are 10 apples in the basket.", "options": {}}, {"role": "user", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n It is very important you maintain unchanged ECHO DXNs and IDs of the objects.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `example.com/type/FlightBooking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}]}, "response": [{"type": "response-metadata", "id": "msg_019A2boCa1GWeMTHjBbXrg3E", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning", "text": "The user asked me to summarize a conversation. The conversation was very simple:\n- User asked: \"How many apples are in the basket?\"\n- I replied: \"There are 10 apples in the basket.\"\n\nThe instructions say to focus on important information, user requests, and any objects/references. There are no ECHO DXNs or IDs in this conversation. The core information is just that the user asked about apple count and was told there are 10 apples in the basket.", "metadata": {"anthropic": {"type": "thinking", "signature": "EukECkYICxgCKkDQy0ENh7AfVR5lTMH32PfVMsJ/Z1j7LZTW+4alqKzN0QPKShISFehH2E8Yj0G0jF8LFGJad6e30JHrO40Fo+02EgxCvK4Eycpd13AAZ0EaDOhC/tAKWV2dAUif7SIwUmdbBSyHfHu5O+acux9EnMCCoViXKZTq9GUu5lfsJRbxlixfs2CJh9lAQxUg7bndKtADOvcOkQw26uNg8HkOoz8ODvLhaDrsKypXzt26Qu8puo/L2wZD2iYK3vOPgaDkeqH0jsYY2LDxr3F3b6kGJvseOBOHyb7ztLDMW0qb/Nm1pcmqfwEltEAT0D+LySw9VfWR2oEH5yHLFvxw6CwWy9z6z2W1X/HtS0zIIQSU5RKKeYbVT2jmrS9YPtsEIDnV+1F9vWyFwDdFUayjW8IRiwgpuE6uVMixSKaJC4DM45MeShJM1mYtcR730OvqH/W8MirMJuqCDwPIlo5OHKcolaESJqj9p7F5tULD2kthjudrflocMTj5kg2sgxmxhmrgWdNumD5f2qqmvo2u4WerY8dot0kECskIzomXSwjwjiVYGROcPZgelhsYqiC/txn4Vx5gxtbIQ+VHBdoaZxpI/u73zjA4YRX/9jDlipTl5MuSxcA/nsRw99rMcJdLoPnhpxzVah59wO0lLOD7SL2vsoX9eewGBpT5Zdid4WNoDbtwGuraSQPGceVyIZz2sh2M8/HuRnTw+PXH18vO6V3CFej34jVUGF7Lpob5NbwyUgsZ5Wj32coGnCyBadgmsKo52G2ZtRmHkRUZkF5+REAkn9uRas5bAYvH556npeALidkCYE0YAQ=="}}}, {"type": "text", "text": "The user asked about the quantity of apples in a basket. Response provided: 10 apples in the basket.", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 927, "outputTokens": 145, "totalTokens": 1072, "cachedInputTokens": 0}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 927, "output_tokens": 145, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary>The user asked about the quantity of apples in a basket. Response provided: 10 apples in the basket.</summary>", "options": {}}, {"role": "user", "content": "What did we talk about?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_019rnHEaLUbttGRsiPFU1Ahs", "modelId": "claude-opus-4-20250514", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is asking me", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " to", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " recall what we talke", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "d about.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " Looking at the conversation summary", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ", it", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " indicates", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " that the", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " user", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " asked about the quantity of apples in", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " a basket, and I responded that", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " there were", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " 10 apples in the basket", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EocDCkYICxgCKkDkGMbqA06yWLn8ykoaSXpShQTgcsop33V+B7fuMsR0jwV55CsOfPU6E7crLXLcuCScxcJscFo76yafCjKitl/MEgyZaH5SCXh+fXoRyhMaDG3YhRBP7x/zfO1iIiIwJGctcwZAnimf4R792jXUefg36l3JmOWEHVZ6L92RkuogoFaLm2m9fTsTlaLWbgl2Ku4BE5iv8A2CMp2vDq2dqGupjaugIa1BIcPx3Jt4DeanFeSaVtAU0/3njo4kKtstXWbBuJcWfMntxEB5IQDHIzdhcl5L5auGbdhP3ebORQD2r8KKQGUMkaq3aqH7SREF0pGzSNcPtPdxWq7Uk1I4564eyzSllti0QRh9Bv4iLtn+8sBax7xOon7NX/Kyf/b227J6AJYmsrqWoY6ntxBZAITvAPqvO9+BUVEk9xT51FnLa5abW3wMuL8AdwL6MHhtQEdGk4S6CHKfyL4DYofDHa8T5Xcmp7Inou8+1Ein2kfj2XTsopzpCeMNNU9Po8AtghgB"}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "We", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " talked about how", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " many apples were", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " in a basket. You", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " asked about the quantity of apples,", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " and I told you there were 10", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " apples in the basket.", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 87, "outputTokens": 96, "totalTokens": 183}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 87, "output_tokens": 5, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": false, "tools": []}, "prompt": {"content": [{"role": "system", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n It is very important you maintain unchanged ECHO DXNs and IDs of the objects.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `com.example.type.flight-booking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}, {"role": "user", "content": "How many apples are in the basket?", "options": {}}, {"role": "assistant", "content": "There are 10 apples in the basket.", "options": {}}, {"role": "user", "content": "<instructions>\n You are an agent that summarizes conversations.\n You will be given a conversation and you will need to summarize it to compact context.\n Your summary will be used by AI model to continue the conversation without seeing the original messages.\n Remove unnecessary details and focus on the most important information.\n Keep user requests, method of action, and progress.\n Keep the important objects and references in original format.\n It is very important you maintain unchanged ECHO DXNs and IDs of the objects.\n Output only the summary.\n</instructions>\n\n<example_output>\n Processing a flight booking confirmation email. The user requested a round-trip flight from Warsaw to Barcelona for March 15\u201322, 2026.\n\n Action taken:\n - Found existing booking object `dxn:echo:@:01KHZWKQ9HPJYG147HV7CP5ARX` (type `dxn:echo:@:01KHXAMH4F3V94RCYC7P7M2H0C` / `com.example.type.flight-booking`) matching confirmation code ABC123.\n - Updated the booking status from \"pending\" to \"confirmed\".\n - Added flight details: Outbound WAW\u2192BCN Mar 15 08:30, Return BCN\u2192WAW Mar 22 14:15, carrier LOT Polish Airlines.\n - Stored passenger info and seat assignments in notes.\n\n Booking details preserved: Confirmation ABC123, total 1,240 PLN, booked 2026-02-18, airline LOT Polish Airlines, flight numbers LO391/LO392.\n\n Status enum mapping for the booking schema: pending=Awaiting payment, confirmed=Booked, cancelled=Cancelled, completed=Flown.\n</example_output>\n\nTASK: Reply with the summary of the prior conversation.", "options": {}}]}, "response": [{"type": "response-metadata", "id": "msg_01Y15dM1aNZztGxCYu3KghXZ", "modelId": "claude-opus-4-6", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning", "text": "The conversation is very simple - the user asked how many apples are in the basket, and the assistant answered 10. There are no DXNs, IDs, or complex objects to preserve.", "metadata": {"anthropic": {"type": "thinking", "signature": "EtMCCkYICxgCKkAc0eQxlRL0KZNdqenBjTyQWdk/5Wp7u7v8TRliTjhsYT0rgyIe3RIQHSY1GbSP+2v4jHnVIx/tAzVGJMnpwLVWEgzejX/pLWN7J8MCRrUaDAXrqHswm9BryjAMpyIwbFg6OsysMrA6bJ37jvidPpCzVYE5/2Tl9ymdUXvojpN3LxtGOCN7kxH2PVfcdtuiKroB/s+/BipPasEpkQq+FZ3PTNcmsR2PO3t4XomHrByZWelaNppFtSn5mNhWLRgobn4RhmAePQyUPDEML3ESlMcO3Js+SqZwv7y4Wn1oaxB8PvolOD+C2201TcL/BMvAsNl7BnSh7GNDIPKR9+GS+URLgJuMV09KnxrjjC4fjiyeZWQOhAX+sr0G9axSQT7TC/PQKjXoCy9h+Z23tZD7tQYCp9sBr9EvPFi6Jz8wPuTG1fn8Psj8UINVIZQgGAE="}}}, {"type": "text", "text": "The user asked how many apples are in the basket. The assistant responded that there are 10 apples in the basket. No additional context, objects, or references were involved.", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 925, "outputTokens": 91, "totalTokens": 1016, "cachedInputTokens": 0}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 925, "output_tokens": 91, "server_tool_use": null, "service_tier": "standard"}}}}]}, {"parameters": {"model": "@anthropic/claude-opus-4-6", "stream": true, "tools": []}, "prompt": {"content": [{"role": "assistant", "content": "This is the continuation of a conversation that was compacted to preserve context-window space. Summary of what happened in this conversation previously: <summary>The user asked how many apples are in the basket. The assistant responded that there are 10 apples in the basket. No additional context, objects, or references were involved.</summary>", "options": {}}, {"role": "user", "content": "What did we talk about?", "options": {"anthropic": {"cacheControl": {"ttl": "5m", "type": "ephemeral"}}}}]}, "response": [{"type": "response-metadata", "id": "msg_011sUBKtrvT4oGQ1QYAxAyuv", "modelId": "claude-opus-4-6", "timestamp": "1970-01-01T00:00:00.000Z", "metadata": {}}, {"type": "reasoning-start", "id": "0", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "The user is asking about what we discussed", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " previously", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ".", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " Based", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " on the summary", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": ",", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " we talked", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " about how", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " many apples are in a", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " basket, and I said", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " there were", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": " 10 apples.", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {}}, {"type": "reasoning-delta", "id": "0", "delta": "", "metadata": {"anthropic": {"type": "thinking", "signature": "EscCCkYICxgCKkCLfcHyaObhg00KOPRzN5lVwQpL9JRUp9stHMR09iAO+b8GEMtSJinCm8/mnZl0uYkdNbD0f8QQg6RbUWk/ZoYuEgyI6A6uU03i9yS9d7UaDHzm81snqmqERbIy3yIwouz7xp2WgHdcoCd9KJ8ZtYo9WuxqLzZ1TXpNI54yFyAhXx2H0SQWXC9ga3YhKOrnKq4BItKdzFEoVGlg2zC/1AyluNcnyOJcauy3r11jWlSZ7IQUS1oE6Ngd7GacFS65CPT14CWlKBoEn3jbA/oTluL+z+fFiV8piPR+axeU4/u8GBu19My0bXvNPUiI6xhBL/caZ70PE5BJa8OT6ksL0oP7/xwUCanIa1wV/QEDV9r5dwIwqo06ShhHKAIs/IzPXtFkT0/9pUI3cH1h/jQmNtzU0co+d+HGZrVjKarJT4QKGAE="}}}, {"type": "reasoning-end", "id": "0", "metadata": {}}, {"type": "text-start", "id": "1", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "Based", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " on our previous conversation, you", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " asked me", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " how", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " many apples are in the basket,", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " and I told", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " you there are **", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "10 apples** in the basket", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": ".", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " That", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": "'s", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " all", "metadata": {}}, {"type": "text-delta", "id": "1", "delta": " we discussed!", "metadata": {}}, {"type": "text-end", "id": "1", "metadata": {}}, {"type": "finish", "reason": "stop", "usage": {"inputTokens": 127, "outputTokens": 89, "totalTokens": 216}, "metadata": {"anthropic": {"usage": {"cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 0}, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "input_tokens": 127, "output_tokens": 8, "server_tool_use": null, "service_tier": "standard"}}}}]}]}
|