|
1 | 1 | { |
2 | 2 | "_comment": "Bundled D5 (e2e-deep) fixtures. Source files: showcase/harness/fixtures/d5/*.json (auto-merged). Uses hasToolResult matching for multi-turn disambiguation. Loaded by aimock before feature-parity.json for match precedence. The first 7 entries below are the open-gen-ui (4) and open-gen-ui-advanced (3) pill fixtures — they emit deterministic generateSandboxedUi tool calls and intentionally appear before everything else so they win first-match-wins ordering against the showcase-assistant 'hi' catch-all in feature-parity.json. Verbatim pill messages are owned by langgraph-python/src/app/demos/open-gen-ui/suggestions.ts and open-gen-ui-advanced/suggestions.ts. Source-of-truth: showcase/harness/fixtures/d5/gen-ui-open.json.", |
3 | 3 | "fixtures": [ |
| 4 | + { |
| 5 | + "_comment": "tool-rendering pill: Chain tools — emit 3 tool calls in one assistant turn (get_weather Tokyo + search_flights SFO->Tokyo + roll_d20=11). MUST appear before the bare 'weather in Tokyo' fixture below; substring match would otherwise leak into this prompt.", |
| 6 | + "match": { |
| 7 | + "userMessage": "Chain a few tools in this single turn", |
| 8 | + "hasToolResult": false |
| 9 | + }, |
| 10 | + "response": { |
| 11 | + "toolCalls": [ |
| 12 | + { |
| 13 | + "id": "call_tr_chain_weather_001", |
| 14 | + "name": "get_weather", |
| 15 | + "arguments": "{\"location\":\"Tokyo\"}" |
| 16 | + }, |
| 17 | + { |
| 18 | + "id": "call_tr_chain_flights_001", |
| 19 | + "name": "search_flights", |
| 20 | + "arguments": "{\"origin\":\"SFO\",\"destination\":\"Tokyo\"}" |
| 21 | + }, |
| 22 | + { |
| 23 | + "id": "call_tr_chain_roll_001", |
| 24 | + "name": "roll_d20", |
| 25 | + "arguments": "{\"value\":11}" |
| 26 | + } |
| 27 | + ] |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "match": { |
| 32 | + "userMessage": "Chain a few tools in this single turn", |
| 33 | + "hasToolResult": true |
| 34 | + }, |
| 35 | + "response": { |
| 36 | + "content": "Done — Tokyo is sunny, three flights found, and the d20 came up 11." |
| 37 | + } |
| 38 | + }, |
| 39 | + { |
| 40 | + "_comment": "tool-rendering pill: Weather in SF — verbatim pill prompt, deterministic San Francisco values.", |
| 41 | + "match": { |
| 42 | + "userMessage": "What's the weather in San Francisco?", |
| 43 | + "hasToolResult": false |
| 44 | + }, |
| 45 | + "response": { |
| 46 | + "toolCalls": [ |
| 47 | + { |
| 48 | + "id": "call_tr_weather_sf_001", |
| 49 | + "name": "get_weather", |
| 50 | + "arguments": "{\"location\":\"San Francisco\"}" |
| 51 | + } |
| 52 | + ] |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "match": { |
| 57 | + "userMessage": "What's the weather in San Francisco?", |
| 58 | + "hasToolResult": true |
| 59 | + }, |
| 60 | + "response": { |
| 61 | + "content": "San Francisco is currently 68°F and sunny with light winds." |
| 62 | + } |
| 63 | + }, |
| 64 | + { |
| 65 | + "_comment": "tool-rendering pill: Find flights — verbatim pill prompt, dedicated search_flights fixture. MUST take precedence over the a2ui beautiful-chat fixture below (which uses the same tool name with non-flight-list args shape).", |
| 66 | + "match": { |
| 67 | + "userMessage": "Find flights from SFO to JFK.", |
| 68 | + "hasToolResult": false |
| 69 | + }, |
| 70 | + "response": { |
| 71 | + "toolCalls": [ |
| 72 | + { |
| 73 | + "id": "call_tr_flights_sfo_jfk_001", |
| 74 | + "name": "search_flights", |
| 75 | + "arguments": "{\"origin\":\"SFO\",\"destination\":\"JFK\"}" |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + }, |
| 80 | + { |
| 81 | + "match": { |
| 82 | + "userMessage": "Find flights from SFO to JFK.", |
| 83 | + "hasToolResult": true |
| 84 | + }, |
| 85 | + "response": { |
| 86 | + "content": "Three flights from SFO to JFK — United UA231 at 08:15 ($348), Delta DL412 at 11:20 ($312), and JetBlue B6722 at 17:05 ($289)." |
| 87 | + } |
| 88 | + }, |
| 89 | + { |
| 90 | + "_comment": "tool-rendering pill: Stock price — verbatim pill prompt, AAPL with deterministic price/change.", |
| 91 | + "match": { |
| 92 | + "userMessage": "What's the current price of AAPL?", |
| 93 | + "hasToolResult": false |
| 94 | + }, |
| 95 | + "response": { |
| 96 | + "toolCalls": [ |
| 97 | + { |
| 98 | + "id": "call_tr_stock_aapl_001", |
| 99 | + "name": "get_stock_price", |
| 100 | + "arguments": "{\"ticker\":\"AAPL\"}" |
| 101 | + } |
| 102 | + ] |
| 103 | + } |
| 104 | + }, |
| 105 | + { |
| 106 | + "match": { |
| 107 | + "userMessage": "What's the current price of AAPL?", |
| 108 | + "hasToolResult": true |
| 109 | + }, |
| 110 | + "response": { |
| 111 | + "content": "AAPL is trading at $338.37, down 2.96% on the day." |
| 112 | + } |
| 113 | + }, |
| 114 | + { |
| 115 | + "_comment": "tool-rendering pill: Roll a d20 — exactly 5 sequential roll_d20 calls returning [7, 14, 3, 19, 20]. Disambiguated by turnIndex (count of assistant messages so far) so the sequence is stateless across test runs.", |
| 116 | + "match": { |
| 117 | + "userMessage": "Roll a 20-sided die.", |
| 118 | + "turnIndex": 0, |
| 119 | + "hasToolResult": false |
| 120 | + }, |
| 121 | + "response": { |
| 122 | + "toolCalls": [ |
| 123 | + { |
| 124 | + "id": "call_tr_d20_seq_001", |
| 125 | + "name": "roll_d20", |
| 126 | + "arguments": "{\"value\":7}" |
| 127 | + } |
| 128 | + ] |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "match": { |
| 133 | + "userMessage": "Roll a 20-sided die.", |
| 134 | + "turnIndex": 1, |
| 135 | + "hasToolResult": true |
| 136 | + }, |
| 137 | + "response": { |
| 138 | + "toolCalls": [ |
| 139 | + { |
| 140 | + "id": "call_tr_d20_seq_002", |
| 141 | + "name": "roll_d20", |
| 142 | + "arguments": "{\"value\":14}" |
| 143 | + } |
| 144 | + ] |
| 145 | + } |
| 146 | + }, |
| 147 | + { |
| 148 | + "match": { |
| 149 | + "userMessage": "Roll a 20-sided die.", |
| 150 | + "turnIndex": 2, |
| 151 | + "hasToolResult": true |
| 152 | + }, |
| 153 | + "response": { |
| 154 | + "toolCalls": [ |
| 155 | + { |
| 156 | + "id": "call_tr_d20_seq_003", |
| 157 | + "name": "roll_d20", |
| 158 | + "arguments": "{\"value\":3}" |
| 159 | + } |
| 160 | + ] |
| 161 | + } |
| 162 | + }, |
| 163 | + { |
| 164 | + "match": { |
| 165 | + "userMessage": "Roll a 20-sided die.", |
| 166 | + "turnIndex": 3, |
| 167 | + "hasToolResult": true |
| 168 | + }, |
| 169 | + "response": { |
| 170 | + "toolCalls": [ |
| 171 | + { |
| 172 | + "id": "call_tr_d20_seq_004", |
| 173 | + "name": "roll_d20", |
| 174 | + "arguments": "{\"value\":19}" |
| 175 | + } |
| 176 | + ] |
| 177 | + } |
| 178 | + }, |
| 179 | + { |
| 180 | + "match": { |
| 181 | + "userMessage": "Roll a 20-sided die.", |
| 182 | + "turnIndex": 4, |
| 183 | + "hasToolResult": true |
| 184 | + }, |
| 185 | + "response": { |
| 186 | + "toolCalls": [ |
| 187 | + { |
| 188 | + "id": "call_tr_d20_seq_005", |
| 189 | + "name": "roll_d20", |
| 190 | + "arguments": "{\"value\":20}" |
| 191 | + } |
| 192 | + ] |
| 193 | + } |
| 194 | + }, |
| 195 | + { |
| 196 | + "match": { |
| 197 | + "userMessage": "Roll a 20-sided die.", |
| 198 | + "turnIndex": 5, |
| 199 | + "hasToolResult": true |
| 200 | + }, |
| 201 | + "response": { |
| 202 | + "content": "Rolled the d20 five times — landed on 20 on the final roll." |
| 203 | + } |
| 204 | + }, |
4 | 205 | { |
5 | 206 | "match": { |
6 | 207 | "userMessage": "3D axis visualization (model airplane)" |
|
0 commit comments