Presumably the AI is maximizing gold, but when I trade, I try to avoid loss. I also balance some for each AI as "good will". The "mood" indicator of AI being Guarded, Friendly, etc. lists reasons like same ideology, same friends, but I don't think it mentions trade.