#84 Optional Imports are not handled correctly in Agents