New York Site views —Page views —
← All series

Function and tool calling

Connect a language model to local functions and route requests among tools.

Reading order

  1. Function calling in practice: invoking a local Python function
  2. Calling a calculator to avoid confident arithmetic errors
  3. Routing requests when several tools are available