AI agent doesn’t turn layers into components when asked

I asked AI to create a radio group style behavior to a button I imported. It didn’t tie it into a component and add the functionality, it just dumped all the triggers and responses in the scene 😂. It had th right idea using a unique id but obviously it was never gonna work. Also it over engineered to whole thing. Thought I’d share.