Get the LLM to interact with external APIs!
tool
param, and set tool_choice
to auto. So, based on the user messages, the LLM will decide if it should do a function call to fulfill the request. Here, it will choose to do that, and we’ll see the following output:
tool_call
made by the LLM, and pass it to our getWeather
function - it should return a proper response to our query. We then take that response and send it to our LLM to complete the loop:
Function Calling Workflow
tool_calls
, each with a unique identifier. For more details, see the parallel function calling documentation.