using a trigger in Verse code working with items not gold

code is IsHoldingItem[Agent] works fine with items but not gold is it the wrong call?