forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend-tools.json
More file actions
93 lines (93 loc) · 2.97 KB
/
Copy pathfrontend-tools.json
File metadata and controls
93 lines (93 loc) · 2.97 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"_meta": {
"description": "D6 fixtures for langgraph-python / frontend-tools",
"sourceFile": "d5-all.json",
"created": "2026-05-21"
},
"fixtures": [
{
"match": {
"userMessage": "Make the background a sunset gradient",
"toolCallId": "call_d5_change_background_sunset",
"context": "langgraph-python"
},
"response": {
"content": "Done — sunset gradient is live."
}
},
{
"_comment": "frontend-tools 'Sunset' pill — 1st leg: emit change_background tool call only. The toolCallId-keyed follow-up fixture above is ordered first, so it catches the second-leg request (after tool result). This fixture only matches the first-leg request (before tool execution). No turnIndex gate — the 3-pill probe sends sequential turns; turnIndex would restrict to the first turn.",
"match": {
"userMessage": "Make the background a sunset gradient",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_change_background_sunset",
"name": "change_background",
"arguments": {
"background": "linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #ff6b6b 100%)"
}
}
]
}
},
{
"match": {
"userMessage": "deep green forest gradient",
"toolCallId": "call_d5_change_background_forest",
"context": "langgraph-python"
},
"response": {
"content": "Done — forest gradient is live."
}
},
{
"_comment": "frontend-tools 'Forest' pill — 1st leg: emit change_background tool call only. No turnIndex gate — multi-turn probe.",
"match": {
"userMessage": "deep green forest gradient",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_change_background_forest",
"name": "change_background",
"arguments": {
"background": "linear-gradient(135deg, #0a3d2e 0%, #166534 50%, #059669 100%)"
}
}
]
}
},
{
"match": {
"userMessage": "navy → magenta cosmic gradient",
"toolCallId": "call_d5_change_background_cosmic",
"context": "langgraph-python"
},
"response": {
"content": "Done — cosmic gradient is live."
}
},
{
"_comment": "frontend-tools 'Cosmic' pill — 1st leg: emit change_background tool call only. No turnIndex gate — multi-turn probe.",
"match": {
"userMessage": "navy → magenta cosmic gradient",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_change_background_cosmic",
"name": "change_background",
"arguments": {
"background": "linear-gradient(135deg, #1e3a8a 0%, #6b21a8 50%, #9333ea 100%)"
}
}
]
}
}
]
}