Files
copilotkit__copilotkit/showcase/harness/fixtures/d5/multimodal.json

18 lines
1.2 KiB
JSON

{
"_comment": "D5 fixture for /demos/multimodal. The script clicks [data-testid='multimodal-sample-image-button'] to attach the bundled sample.png, then sends a query about it; second turn does the same with the PDF sample. The aimock response references 'image' / 'document' so the assertion can verify a non-trivial substring lands in the assistant transcript. Substrings 'describe the sample image' and 'summarize the sample document' are unique.",
"fixtures": [
{
"match": { "userMessage": "describe the sample image" },
"response": {
"content": "The image attachment shows a small abstract test pattern used by the multimodal demo to validate the image-upload pipeline. Successful render of this response confirms the binary attachment round-tripped through the runtime."
}
},
{
"match": { "userMessage": "summarize the sample document" },
"response": {
"content": "The PDF document contains a single test page used by the multimodal demo. Its text was flattened by pypdf on the Python side and forwarded as text content to the model. Receiving this response confirms the document upload path works."
}
}
]
}