Home / Figures / Chapter 2

Figure 2.5: Function calling, step by step

Function calling, step by step.
Figure 2.5 Function calling, step by step. Your code sends the question and the list of tools; the model replies not with prose but with a structured request to call one; your code runs the real function (in accent, step 3, the only place a side effect happens); the result goes back to the model, which then writes the final answer. The model proposes; your code disposes.