mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
7b1f43fd9f
Adds per-pill aimock fixtures backing the Phase-2B genuine D5 probes: - agent-config: 6 fixtures (3 knob pairs) so concise vs detailed responses differ deterministically; satisfies the new probe's text-diff + length-diff assertions. - frontend-tools: 3 per-pill fixtures (sunset/forest/cosmic) emitting change_background tool calls with family-specific gradient hexes. - frontend-tools-async: query_notes tool call so the NotesCard mounts. - gen-ui-agent: 3 per-pill set_steps tool calls with distinct step content so the per-pill content-fingerprint assertion catches fixture-drift. - gen-ui-declarative: 4 per-pill generate_a2ui calls + render_a2ui fixture for the secondary LLM call that paints the catalog. - gen-ui-a2ui-fixed: SFO/JFK display_flight tool call. - gen-ui-interrupt: 2 per-pill schedule_meeting tool calls with distinct time-slot payloads. - gen-ui-open: generateSandboxedUi tool call with a non-trivial HTML payload so the iframe[srcdoc]-mount assertion has ≥ 100 chars to observe. - shared-state-streaming: 3 per-pill write_document tool calls with substantive content payloads (≥ 100 chars each). - readonly-state-context: pill-prompt fixture; the probe's network- payload assertion checks the request body, not the response. d5-all.json is updated with the new entries prepended so first-match precedence routes specific pill prompts to their per-pill fixtures ahead of the generic adjacent matches.
29 lines
878 B
JSON
29 lines
878 B
JSON
{
|
|
"_comment": "D5 fixture for /demos/a2ui-fixed-schema. The pill prompt 'Find me a flight from SFO to JFK on United for $289.' triggers the `display_flight` tool which returns an a2ui_operations container; the renderer materializes the fixed-schema component tree.",
|
|
"fixtures": [
|
|
{
|
|
"match": { "userMessage": "SFO to JFK" },
|
|
"response": {
|
|
"content": "Here is the SFO to JFK flight on United.",
|
|
"toolCalls": [
|
|
{
|
|
"name": "display_flight",
|
|
"arguments": {
|
|
"origin": "SFO",
|
|
"destination": "JFK",
|
|
"airline": "United",
|
|
"price": "$289"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"match": { "userMessage": "render the a2ui schema" },
|
|
"response": {
|
|
"content": "The A2UI fixed-schema component was rendered."
|
|
}
|
|
}
|
|
]
|
|
}
|