forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool-rendering-default-catchall.json
More file actions
48 lines (48 loc) · 1.88 KB
/
Copy pathtool-rendering-default-catchall.json
File metadata and controls
48 lines (48 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"_meta": {
"description": "D6 fixtures for langgraph-python / tool-rendering-default-catchall",
"sourceFile": "d5-tool-rendering-default-catchall.ts",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "tool-rendering-default-catchall \u2014 weather in Tokyo follow-up. After get_weather tool result returns, emit narrated content. MUST come before the tool-emitting fixture so iteration 2 hits this branch. The built-in default renderer renders [data-testid='copilot-tool-render'][data-tool-name='get_weather'] with a status pill [data-testid='copilot-tool-render-status'].",
"match": {
"userMessage": "check Tokyo weather forecast",
"toolCallId": "call_d6_dc_weather_001",
"context": "langgraph-python"
},
"response": {
"content": "Tokyo is 22\u00b0C and partly cloudy \u2014 the default catchall renderer displayed the tool card above."
}
},
{
"_comment": "tool-rendering-default-catchall \u2014 weather in Tokyo (first turn). Emits get_weather tool call that the built-in default catchall renderer handles.",
"match": {
"userMessage": "check Tokyo weather forecast",
"toolName": "get_weather",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_dc_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"_comment": "tool-rendering-default-catchall \u2014 weather in Tokyo fallback when no get_weather tool registered.",
"match": {
"userMessage": "check Tokyo weather forecast",
"turnIndex": 0,
"context": "langgraph-python"
},
"response": {
"content": "The weather in Tokyo is currently 22\u00b0C with partly cloudy skies and light easterly winds."
}
}
]
}