mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
b1f19bdc80
The previous 'weather in Tokyo' rename (388c69e68) was a substring of the
main tool-rendering chain pill prompt 'Chain a few tools in this single
turn: get the weather in Tokyo, search flights from SFO to Tokyo, and roll
a d20.' Because aimock loads fixtures alphabetically per integration dir
and uses substring match with first-match-wins, the catchall fixture
(loaded before tool-rendering.json) was intercepting chain pill matches
across 16 integrations.
Rename catchall fixture userMessage to 'forecast for Tokyo' — a phrase
not contained in any other pill prompt. Update the corresponding D5
catchall probe inputs in d5-tool-rendering-{default,custom}-catchall.ts
and the test assertions that pin those inputs.
Call-Site Enumeration: 'weather in Tokyo' remains intentionally in
page.tsx suggestions.ts pills (user-visible UX) and inside the chain
pill prompt itself — neither is in the substring-match path now.
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"_meta": {
|
|
"description": "D6 fixtures for ms-agent-python / tool-rendering-default-catchall",
|
|
"sourceFile": "harness/fixtures/d5/tool-rendering.json",
|
|
"created": "2026-05-22"
|
|
},
|
|
"fixtures": [
|
|
{
|
|
"_comment": "default-catchall: weather in Tokyo \u2014 follow-up content after get_weather tool ran. The built-in default renderer renders the tool card; this fixture provides the narration follow-up. MUST come before tool-emitting fixture (first-match-wins).",
|
|
"match": {
|
|
"userMessage": "forecast for Tokyo",
|
|
"toolCallId": "call_d5_get_weather_001",
|
|
"context": "ms-agent-python"
|
|
},
|
|
"response": {
|
|
"content": "Tokyo is 22\u00b0C and partly cloudy."
|
|
}
|
|
},
|
|
{
|
|
"_comment": "default-catchall: weather in Tokyo \u2014 emit get_weather tool call. The CopilotKit built-in default renderer will catch this tool call since no user-supplied per-tool renderer is registered.",
|
|
"match": {
|
|
"userMessage": "forecast for Tokyo",
|
|
"hasToolResult": false,
|
|
"context": "ms-agent-python"
|
|
},
|
|
"response": {
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_get_weather_001",
|
|
"name": "get_weather",
|
|
"arguments": "{\"location\":\"Tokyo\"}"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|