#Calling multiple functions at once?

2 messages · Page 1 of 1 (latest)

keen roost
#

I've set up a test restaurant customer assistance bot and a fed it my functions that should provide it all the necessary tools to answer any customer query.
However, when presented with a complex question that requires the use of more than 1 function it only calls 1 function. Can I make it call multiple functions at once?

Here's the response it gives:

  "id": "...",
  "object": "chat.completion",
  "created": 1687002990,
  "model": "gpt-4-0613",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": null,
        "function_call": {
          "name": "look_up",
          "arguments": "{\n  \"weekly_opening_hours\": true\n}"
        }
      },
      "finish_reason": "function_call"
    }
  ],
  "usage": {
    "prompt_tokens": 864,
    "completion_tokens": 17,
    "total_tokens": 881
  }
}```

It is good that it looks up the opening hours, but it should also call the function "take_customer_complaint(urgency, complaint)
I think I saw somewhere that it can call multiple back to back, how?
#

The question it was fed:

           "insufferable vocal fry. Bottom of the barrel employee, will not return. Also, I tried coming back today at 22:00 and the place was closed? Why is that?"