Foundation Models For Decision Making: Algorithms, Frameworks, And Application