65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"_meta": {
|
|
"description": "D6 fixtures for crewai-crews / tool-rendering-custom-catchall",
|
|
"sourceFile": "harness/fixtures/d5/tool-rendering.json",
|
|
"copiedFrom": "langgraph-python",
|
|
"created": "2026-05-22"
|
|
},
|
|
"fixtures": [
|
|
{
|
|
"_comment": "tool-rendering-custom-catchall sends 'weather in Tokyo' \u2014 first leg emits get_weather tool call. The custom catchall renderer mounts a WeatherCard. toolCallId-keyed follow-up MUST come before the tool-emitting fixture (first-match-wins).",
|
|
"match": {
|
|
"userMessage": "Forecast Tokyo through the wildcard renderer",
|
|
"toolCallId": "call_d5_get_weather_001",
|
|
"context": "crewai-crews"
|
|
},
|
|
"response": {
|
|
"content": "Tokyo is 22\u00b0C and partly cloudy \u2014 rendered through the custom wildcard catchall."
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "Forecast Tokyo through the wildcard renderer",
|
|
"hasToolResult": false,
|
|
"context": "crewai-crews"
|
|
},
|
|
"response": {
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_get_weather_001",
|
|
"name": "get_weather",
|
|
"arguments": "{\"location\":\"Tokyo\"}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"_comment": "tool-rendering-custom-catchall second pill: 'What's the current price of AAPL?' \u2014 emits get_stock_price tool call, custom catchall renderer mounts a StockCard.",
|
|
"match": {
|
|
"userMessage": "Quote AAPL through the wildcard renderer",
|
|
"toolCallId": "call_d5_get_stock_price_001",
|
|
"context": "crewai-crews"
|
|
},
|
|
"response": {
|
|
"content": "AAPL is trading at $338.37, down 2.96% on the day \u2014 rendered through the custom wildcard catchall."
|
|
}
|
|
},
|
|
{
|
|
"_comment": "tool-rendering-custom-catchall AAPL emit. No hasToolResult gate (the Tokyo tool result from the previous prompt makes hasToolResult permanently true here); the toolCallId narration fixture above wins after the stock tool result arrives.",
|
|
"match": {
|
|
"userMessage": "Quote AAPL through the wildcard renderer",
|
|
"context": "crewai-crews"
|
|
},
|
|
"response": {
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_get_stock_price_001",
|
|
"name": "get_stock_price",
|
|
"arguments": "{\"ticker\":\"AAPL\",\"price_usd\":338.37,\"change_pct\":-2.96}"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|