目前Function Calling应该是不支持嵌套调用的
下面提供了一种简单的解决方案:给ChatGPT“获取当前位置”以及“查询温度”的函数,让他告诉我今天该穿什么衣服。
Here are some tools: getLocalLocation() : String city getTemperture(String city): String temperature The first request is: 我今天出门该穿什么衣服? Let's think from a general view. If you find it impossible to answer based on tools, answer it on your own, and ignore the following prompts. Let's think step by step. If you need more information, call the function by outputing the function, and I will give you the response of this function. Each time you could only return 1 function. Just return the result or function directly, without anything else.