Restricted Agents In Thermodynamics And Quantum Information Theory