mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
4df07816b8
Adds per-integration D6 fixtures for claude-sdk-python and claude-sdk-typescript with Anthropic-style request/response shapes.
78 lines
2.7 KiB
JSON
78 lines
2.7 KiB
JSON
{
|
|
"_meta": {
|
|
"description": "D6 fixtures for claude-sdk-python / tool-rendering-custom-catchall",
|
|
"sourceScript": "d5-tool-rendering-custom-catchall.ts",
|
|
"created": "2026-05-22"
|
|
},
|
|
"fixtures": [
|
|
{
|
|
"_comment": "custom-catchall: weather in Tokyo \u2014 follow-up content after get_weather tool result. MUST come before the tool-emitting fixture below (first-match-wins).",
|
|
"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": "custom-catchall: weather in Tokyo \u2014 first leg: emit get_weather tool call. The custom wildcard renderer fires for this tool since no per-tool renderer is registered.",
|
|
"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": "custom-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."
|
|
}
|
|
},
|
|
{
|
|
"_comment": "custom-catchall: AAPL stock price \u2014 follow-up content after get_stock_price tool result. MUST come before the tool-emitting fixture below (first-match-wins).",
|
|
"match": {
|
|
"userMessage": "lookup AAPL ticker",
|
|
"toolCallId": "call_d5_get_stock_price_001",
|
|
"context": "claude-sdk-python"
|
|
},
|
|
"response": {
|
|
"content": "AAPL is trading at $189.42, up 1.27% on the day."
|
|
}
|
|
},
|
|
{
|
|
"_comment": "custom-catchall: AAPL stock price \u2014 first leg: emit get_stock_price tool call. The custom wildcard renderer fires for this tool too, proving the catchall handles multiple distinct tools.",
|
|
"match": {
|
|
"userMessage": "lookup AAPL ticker",
|
|
"turnIndex": 0,
|
|
"context": "claude-sdk-python"
|
|
},
|
|
"response": {
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_get_stock_price_001",
|
|
"name": "get_stock_price",
|
|
"arguments": "{\"ticker\":\"AAPL\"}"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|