forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool-rendering-custom-catchall.json
More file actions
65 lines (65 loc) · 2.17 KB
/
Copy pathtool-rendering-custom-catchall.json
File metadata and controls
65 lines (65 loc) · 2.17 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
{
"_meta": {
"description": "D6 fixtures for ms-agent-python / tool-rendering-custom-catchall",
"sourceFile": "harness/fixtures/d5/tool-rendering.json",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "custom-catchall turn 1: weather in Tokyo \u2014 follow-up content after get_weather tool ran. MUST come before tool-emitting fixture (first-match-wins).",
"match": {
"userMessage": "check Tokyo weather forecast",
"toolCallId": "call_d5_get_weather_001",
"context": "ms-agent-python"
},
"response": {
"content": "Tokyo is 22\u00b0C and partly cloudy."
}
},
{
"_comment": "custom-catchall turn 1: weather in Tokyo \u2014 emit get_weather tool call. The custom wildcard renderer will catch this since there is no per-tool renderer registered.",
"match": {
"userMessage": "check Tokyo weather forecast",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_get_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"_comment": "custom-catchall turn 2: AAPL stock price \u2014 follow-up content after get_stock_price tool ran. MUST come before tool-emitting fixture.",
"match": {
"userMessage": "current price of AAPL",
"toolCallId": "call_d5_get_stock_price_001",
"context": "ms-agent-python"
},
"response": {
"content": "AAPL is trading at $189.42, up 1.27% on the day."
}
},
{
"_comment": "custom-catchall turn 2: AAPL stock price \u2014 emit get_stock_price tool call. The custom wildcard renderer catches this as the second tool through the same testid.",
"match": {
"userMessage": "current price of AAPL",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_get_stock_price_001",
"name": "get_stock_price",
"arguments": "{\"ticker\":\"AAPL\"}"
}
]
}
}
]
}