AI‐Driven Resource Allocation and Beamforming in 6G Terahertz Networks | Synapse