mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
c414fbad23
Refresh d6 fixtures across the rollout cohort: ag2, built-in-agent,
claude-sdk-{python,typescript}, crewai-crews, google-adk, langgraph-fastapi,
langgraph-typescript, langroid, llamaindex, mastra, ms-agent-{dotnet,python},
pydantic-ai, strands. Companion d4/{langgraph-typescript,mastra,ms-agent-dotnet}
chat.json refreshes. Add the missing ms-agent-python/gen-ui-custom.json
to bring the integration up to the standard pill set.
Also narrow aimock/shared/common.json's generic 'hello' fixture to
'hello world' so it no longer shadows D6 pills whose prompts contain
'hello' as a substring (e.g. langgraph-python headless-simple sends
'Say hello in one short sentence.'). 'hello world' is unused by any
current demo pill, so the fixture remains a manual-typing fallback
without poisoning fixture matching.
This is a mid-rollout snapshot — fixture coverage is uneven across
integrations and rides alongside the conveyance shims landed earlier
in this branch.
42 lines
2.2 KiB
JSON
42 lines
2.2 KiB
JSON
{
|
|
"_meta": {
|
|
"description": "D6 fixtures for ms-agent-python / gen-ui-custom (pie chart path)",
|
|
"sourceFile": "harness/fixtures/d5/gen-ui-custom.json",
|
|
"copiedFrom": "langgraph-python",
|
|
"created": "2026-05-29"
|
|
},
|
|
"fixtures": [
|
|
{
|
|
"_comment": "gen-ui-custom pie chart — first leg: emit render_pie_chart tool call. hasToolResult:false ensures this only matches when there's no prior tool result in the conversation. Includes narration content (with 'pie chart' tokens) inline so the D5 probe's last-assistant-text assertion passes even when the runtime does not re-invoke the LLM after a frontend tool result returns (the second-leg fixture below remains a safety net for runtimes that DO loop back). chunkSize: 9999 guards against partial-tool-call JSON.parse classes.",
|
|
"match": {
|
|
"userMessage": "Show me a pie chart of revenue by category",
|
|
"hasToolResult": false,
|
|
"context": "ms-agent-python"
|
|
},
|
|
"response": {
|
|
"content": "Pie chart rendered above — Electronics is the largest slice, followed by Clothing, Food, and Books.",
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_render_pie_chart_001",
|
|
"name": "render_pie_chart",
|
|
"arguments": "{\"title\":\"Revenue by Category\",\"description\":\"Revenue breakdown by product category (Q4)\",\"data\":[{\"label\":\"Electronics\",\"value\":42000},{\"label\":\"Clothing\",\"value\":28000},{\"label\":\"Food\",\"value\":18000},{\"label\":\"Books\",\"value\":12000}]}"
|
|
}
|
|
]
|
|
},
|
|
"chunkSize": 9999
|
|
},
|
|
{
|
|
"_comment": "gen-ui-custom pie chart — second leg: narration after the pie chart tool result lands. Kept as a safety net when the runtime DOES loop back to the LLM. The follow-up text contains 'pie' and 'chart' tokens — the D5 probe asserts their presence.",
|
|
"match": {
|
|
"userMessage": "Show me a pie chart of revenue by category",
|
|
"hasToolResult": true,
|
|
"context": "ms-agent-python"
|
|
},
|
|
"response": {
|
|
"content": "Pie chart rendered above — Electronics is the largest slice, followed by Clothing, Food, and Books."
|
|
},
|
|
"chunkSize": 9999
|
|
}
|
|
]
|
|
}
|