Files
copilotkit--copilotkit/showcase/aimock/d6/mastra/tool-rendering-default-catchall.json
2026-07-13 12:58:18 +08:00

49 lines
1.7 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for mastra / tool-rendering-default-catchall. Drives the built-in default catchall renderer with a weather-in-Tokyo prompt. The probe asserts [data-testid='copilot-tool-render'] with data-tool-name='get_weather' and a status pill.",
"sourceFile": "harness/src/probes/scripts/d5-tool-rendering-default-catchall.ts",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "default-catchall \u2014 weather in Tokyo. Follow-up content after get_weather tool ran. Keyed by toolCallId. MUST come before the tool-emitting fixture below.",
"match": {
"userMessage": "forecast for Tokyo",
"toolCallId": "call_d6_mastra_dc_weather_001",
"context": "mastra"
},
"response": {
"content": "Tokyo is 22\u00b0C and partly cloudy."
}
},
{
"_comment": "default-catchall \u2014 weather in Tokyo, emit get_weather. Uses toolName gate.",
"match": {
"userMessage": "forecast for Tokyo",
"toolName": "get_weather",
"context": "mastra"
},
"response": {
"toolCalls": [
{
"id": "call_d6_mastra_dc_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"_comment": "default-catchall \u2014 weather in Tokyo, fallback content when no toolName gate matches.",
"match": {
"userMessage": "forecast for Tokyo",
"turnIndex": 0,
"context": "mastra"
},
"response": {
"content": "The weather in Tokyo is currently 22\u00b0C with partly cloudy skies and light easterly winds."
}
}
]
}