Program of Thoughts — AI Glossary

Program of thoughts is a reasoning technique in which the model generates code — typically Python — to solve a numerical or logical problem, then executes the code to obtain the answer. It separates reasoning from computation: the language model handles the plan and the interpreter handles the arithmetic.