[Program-aided Language Model(PAL)](/docs/agents/pal) (@gao2023pal) is a method that uses code as intermediate reasoning.