https://arxiv.org/abs/2210.03629
This method gives Large language models the ability to take action in the world by providing them with a set of tools they can elect to deploy by emitting appropriate special tokens in their output. For example, a language model can be given a four-function calculator, or the ability to query Wikipedia.