Files
copilotkit__copilotkit/showcase/harness/fixtures/d5/tool-rendering.json
Jordan Ritter 8d0bc3cd93 fix(showcase): migrate D5 fixtures from turnIndex to hasToolResult
hasToolResult checks whether tool-role messages exist in the request,
correctly disambiguating multi-turn fixtures regardless of the backend
AG-UI implementation's re-invocation behavior.
2026-04-29 19:40:10 -07:00

30 lines
845 B
JSON

{
"_comment": "D5 fixture for /demos/tool-rendering against LangGraph Python (LGP). Uses hasToolResult matching: aimock checks for role:tool messages in the request to disambiguate multi-turn fixtures sharing the same userMessage. Fixtures ordered by hasToolResult false→true for readability.",
"fixtures": [
{
"match": {
"userMessage": "weather in Tokyo",
"hasToolResult": false
},
"response": {
"toolCalls": [
{
"id": "call_d5_get_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"match": {
"userMessage": "weather in Tokyo",
"hasToolResult": true
},
"response": {
"content": "Tokyo is 22°C and partly cloudy."
}
}
]
}