I can't understand the documentation. How are the interactive elements embedded in the chat? Are they just iFrames?
The docs mention returning resources, and the example is returning a rust file as a resource, which is nonsensical.
This seems similar to MCP UI in result but it's not clear how it works internally.