tools in your request; the model returns tool_calls when needed, which you execute and feed back.
After the model returns
tool_calls, run the function in your code, send the result back as a role: "tool" message, and the model produces the final answer.