Files
copilotkit__copilotkit/showcase/aimock/d6/claude-sdk-python/tool-rendering-default-catchall.json
Jordan Ritter 4df07816b8 feat(showcase-aimock): D6 fixtures for Claude SDK integrations
Adds per-integration D6 fixtures for claude-sdk-python and
claude-sdk-typescript with Anthropic-style request/response shapes.
2026-05-26 14:02:17 -07:00

50 lines
1.7 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for claude-sdk-python / tool-rendering-default-catchall",
"sourceScript": "d5-tool-rendering-default-catchall.ts",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "default-catchall: weather in Tokyo \u2014 follow-up content after get_weather tool result. MUST come before the tool-emitting fixture below (first-match-wins). The built-in default renderer (copilot-tool-render testid) fires for get_weather since no user-supplied renderer is registered.",
"match": {
"userMessage": "check Tokyo weather forecast",
"toolCallId": "call_d5_get_weather_001",
"context": "claude-sdk-python"
},
"response": {
"content": "Tokyo is 22\u00b0C and partly cloudy."
}
},
{
"_comment": "default-catchall: weather in Tokyo \u2014 first leg: emit get_weather tool call.",
"match": {
"userMessage": "check Tokyo weather forecast",
"toolName": "get_weather",
"context": "claude-sdk-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_get_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
],
"content": "Looking up the weather in Tokyo for you."
}
},
{
"_comment": "default-catchall: weather in Tokyo \u2014 fallback when get_weather tool not registered.",
"match": {
"userMessage": "check Tokyo weather forecast",
"turnIndex": 0,
"context": "claude-sdk-python"
},
"response": {
"content": "The weather in Tokyo is currently 22\u00b0C with partly cloudy skies and light easterly winds."
}
}
]
}