forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend-tools-async.json
More file actions
129 lines (129 loc) · 5.7 KB
/
Copy pathfrontend-tools-async.json
File metadata and controls
129 lines (129 loc) · 5.7 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"_meta": {
"description": "D6 fixtures for ms-agent-python / frontend-tools-async",
"sourceFile": "d5-all.json",
"created": "2026-05-21",
"copiedFrom": "langgraph-python"
},
"fixtures": [
{
"match": {
"userMessage": "auth check turn 1",
"turnIndex": 0,
"context": "ms-agent-python"
},
"response": {
"content": "Authenticated session is active. The runtime accepted your request because the Authorization header carried the demo bearer token."
}
},
{
"match": {
"userMessage": "fetch the async metric",
"turnIndex": 0,
"context": "ms-agent-python"
},
"response": {
"content": "The async tool resolved with the requested metric. The frontend handler awaited completion before forwarding the result back to the agent \u2014 async-streaming behavior confirmed."
}
},
{
"_comment": "frontend-tools-async \u2014 project-planning pill, follow-up content keyed on the prior tool's id. Comes BEFORE the tool-emitting fixture so iteration 2 (after the async handler returns) hits this branch instead of re-emitting query_notes. hasToolResult gates were dropped because they broke after the user clicked another tool-using pill earlier in the same thread.",
"match": {
"userMessage": "Find my notes about project planning",
"toolCallId": "call_d5_query_notes_project_planning_001",
"context": "ms-agent-python"
},
"response": {
"content": "You have notes on project planning: \"Q2 project planning kickoff\" and \"Project planning retrospective notes\". Let me know if you want a summary of either."
}
},
{
"_comment": "frontend-tools-async \u2014 project-planning pill. 1st turn: query_notes tool call. Specific match wins over the broad 'plan' fixture in feature-parity.json (d5-all.json loads first). turnIndex gate dropped \u2014 the multi-pill sequential e2e (frontend-tools-async.spec.ts:149) clicks earlier pills first, leaving prior tool/assistant turns in the thread, so this user message is no longer at turnIndex 0. The toolCallId-keyed follow-up fixture above still wins for iteration 2 (last message is tool with that id); this fixture only fires when last-message.role=user.",
"match": {
"userMessage": "Find my notes about project planning",
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_query_notes_project_planning_001",
"name": "query_notes",
"arguments": "{\"keyword\":\"project planning\"}"
}
]
}
},
{
"_comment": "frontend-tools-async \u2014 auth pill, follow-up content keyed on the prior tool's id. Must come BEFORE the tool-emitting fixture.",
"match": {
"userMessage": "Search my notes for anything related to auth",
"toolCallId": "call_d5_query_notes_auth_001",
"context": "ms-agent-python"
},
"response": {
"content": "You have one note related to auth: \"Planning: migrate auth to passkeys\" \u2014 it covers WebAuthn library options and a fallback for unsupported browsers."
}
},
{
"_comment": "frontend-tools-async \u2014 auth pill. 1st turn: query_notes tool call. Beats the showcase-assistant catch-all in feature-parity.json by virtue of d5-all.json's load order and a longer specific substring match. turnIndex gate dropped \u2014 multi-pill sequential e2e leaves prior turns in the thread before this pill is clicked, so the prompt is no longer at turnIndex 0. The toolCallId-keyed follow-up above still wins for iteration 2.",
"match": {
"userMessage": "Search my notes for anything related to auth",
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_query_notes_auth_001",
"name": "query_notes",
"arguments": "{\"keyword\":\"auth\"}"
}
]
}
},
{
"_comment": "frontend-tools-async \u2014 reading pill, follow-up content keyed on the prior tool's id. Must come BEFORE the tool-emitting fixture. Locked narration leading phrase per spec test #4 assertion.",
"match": {
"userMessage": "Do I have any notes tagged reading",
"toolCallId": "call_d5_query_notes_reading_001",
"context": "ms-agent-python"
},
"response": {
"content": "You have a note titled \"Book recommendations\" that is tagged with \"reading.\" It includes the following books: Thinking Fast and Slow by Daniel Kahneman, The Design of Everyday Things by Don Norman."
}
},
{
"_comment": "frontend-tools-async \u2014 reading pill. 1st turn: query_notes tool call. turnIndex gate dropped \u2014 multi-pill sequential e2e leaves prior turns in the thread before this pill is clicked, so the prompt is no longer at turnIndex 0. The toolCallId-keyed follow-up above still wins for iteration 2.",
"match": {
"userMessage": "Do I have any notes tagged reading",
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_query_notes_reading_001",
"name": "query_notes",
"arguments": "{\"keyword\":\"reading\"}"
}
]
}
},
{
"match": {
"userMessage": "project planning",
"turnIndex": 0,
"context": "ms-agent-python"
},
"response": {
"content": "I searched your notes and found a few results.",
"toolCalls": [
{
"name": "query_notes",
"arguments": {
"keyword": "project planning"
}
}
]
}
}
]
}