Files
copilotkit__copilotkit/showcase/aimock/d6/langgraph-python/tool-rendering-named-override.json
2026-06-24 12:20:39 -07:00

77 lines
2.5 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for langgraph-python / tool-rendering-named-override",
"sourceFile": "d5-tool-rendering-named-override.ts",
"created": "2026-06-18"
},
"fixtures": [
{
"_comment": "tool-rendering-named-override — weather follow-up. A named get_weather renderer returns null, so final text appears without a weather tool card.",
"match": {
"userMessage": "named override weather suppression case",
"toolCallId": "call_d6_named_weather_001",
"context": "langgraph-python"
},
"response": {
"content": "Tokyo is 22°C and partly cloudy."
}
},
{
"_comment": "tool-rendering-named-override — first weather turn emits get_weather, which is suppressed by the exact-name renderer.",
"match": {
"userMessage": "named override weather suppression case",
"toolName": "get_weather",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_named_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"_comment": "tool-rendering-named-override — fallback when no get_weather tool is registered.",
"match": {
"userMessage": "named override weather suppression case",
"turnIndex": 0,
"context": "langgraph-python"
},
"response": {
"content": "Tokyo is 22°C and partly cloudy."
}
},
{
"_comment": "tool-rendering-named-override — stock follow-up. get_stock_price is not named-overridden, so the built-in catch-all should render it.",
"match": {
"userMessage": "named override stock fallthrough case",
"toolCallId": "call_d6_named_stock_001",
"context": "langgraph-python"
},
"response": {
"content": "AAPL is trading at $189.42, up 1.27% on the day."
}
},
{
"_comment": "tool-rendering-named-override — second turn emits get_stock_price, proving the catch-all still handles other tools.",
"match": {
"userMessage": "named override stock fallthrough case",
"toolName": "get_stock_price",
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_named_stock_001",
"name": "get_stock_price",
"arguments": "{\"ticker\":\"AAPL\"}"
}
]
}
}
]
}