refactor(codegen): check for generate_content before calling

Replaces the try/except block with an explicit hasattr check for the generate_content method on component handlers.

This avoids logging an AttributeError for every handler that does not yet implement the new direct generation pattern. It cleans up the logs and makes the fallback to the legacy engine an expected path rather than an exception case.

Merge request reports

Loading